changeset 25582:0df6454f58ea

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.
author Rik <rik@octave.org>
date Wed, 11 Jul 2018 09:26:43 -0700
parents c71d13bf2b63
children 3858334e81c4
files scripts/plot/util/print.m scripts/plot/util/private/__print_parse_opts__.m scripts/plot/util/saveas.m
diffstat 3 files changed, 16 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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", ...
--- 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
 ##