# HG changeset patch # User Rik # Date 1531326403 25200 # Node ID 0df6454f58ea92293e1f880e38d0fb093f8b12ac # Parent c71d13bf2b63f8844e4830975a6130bd499fb34e print.m: Allow 'tif' to indicate 'tiff' format (bug #54282). * __print_parse_opts__.m: If device is 'tif', change it to 'tiff'. * print.m, saveas.m: Add "tif" as acceptable image type to documentation. Small documentation tweaks to names of file formats to reflect normal usage. diff -r c71d13bf2b63 -r 0df6454f58ea scripts/plot/util/print.m --- a/scripts/plot/util/print.m Wed Jul 11 08:41:10 2018 -0700 +++ b/scripts/plot/util/print.m Wed Jul 11 09:26:43 2018 -0700 @@ -131,7 +131,7 @@ ## @itemx pdfcairolatex ## @itemx epscairolatexstandalone ## @itemx pdfcairolatexstandalone -## Generate Cairo based output when using the Gnuplot graphics toolkit. +## Generate Cairo-based output when using the Gnuplot graphics toolkit. ## The @samp{epscairo} and @samp{pdfcairo} devices are synonymous with ## the @samp{epsc} device. The @LaTeX{} variants generate a @LaTeX{} file, ## @file{@var{filename}.tex}, for the text portions of a plot, and an image @@ -141,7 +141,7 @@ ## ## @item ill ## @itemx @nospell{aifm} -## Adobe Illustrator (Obsolete for Gnuplot versions > 4.2) +## Adobe Illustrator (obsolete for Gnuplot versions > 4.2) ## ## @item canvas ## Javascript-based drawing on HTML5 canvas viewable in a web browser @@ -188,16 +188,20 @@ ## Metafont ## ## @item png -## Portable network graphics +## Portable Network Graphics ## ## @item pbm ## PBMplus ## ## @item pdf -## Portable document format +## Portable Document Format ## ## @item svg -## Scalable vector graphics +## Scalable Vector Graphics +## +## @item tif +## @itemx tiff +## TIFF image, compressed ## ## @item tikz ## @itemx tikzstandalone diff -r c71d13bf2b63 -r 0df6454f58ea scripts/plot/util/private/__print_parse_opts__.m --- a/scripts/plot/util/private/__print_parse_opts__.m Wed Jul 11 08:41:10 2018 -0700 +++ b/scripts/plot/util/private/__print_parse_opts__.m Wed Jul 11 09:26:43 2018 -0700 @@ -211,6 +211,8 @@ arg_st.devopt = "emf"; elseif (strcmp (arg_st.devopt, "jpg")) arg_st.devopt = "jpeg"; + elseif (strcmp (arg_st.devopt, "tif")) + arg_st.devopt = "tiff"; endif persistent dev_list = {"aifm", "corel", "fig", "png", "jpeg", ... diff -r c71d13bf2b63 -r 0df6454f58ea scripts/plot/util/saveas.m --- a/scripts/plot/util/saveas.m Wed Jul 11 08:41:10 2018 -0700 +++ b/scripts/plot/util/saveas.m Wed Jul 11 09:26:43 2018 -0700 @@ -39,10 +39,13 @@ ## JPEG Image ## ## @item png -## PNG Image +## Portable Network Graphics image ## ## @item emf -## Enhanced Meta File +## Enhanced MetaFile +## +## @item tif +## TIFF Image, compressed ## ## @end table ##