changeset 26740:3a10bdbe6839 stable

Use "-loose" option for printing by default until bug resolved (bug #48689). * NEWS: Remove paragraph about "-tight" being default. * print.m: Change default in documentation to "-tight". * __print_parse_opts__.m: Change arg_st.tight default to false.
author Rik <rik@octave.org>
date Sat, 16 Feb 2019 16:59:35 -0800
parents fb920b730931
children 57702c4e37d9 b812ed975ea8
files NEWS scripts/plot/util/print.m scripts/plot/util/private/__print_parse_opts__.m
diffstat 3 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Sat Feb 16 22:16:40 2019 +0100
+++ b/NEWS	Sat Feb 16 16:59:35 2019 -0800
@@ -158,12 +158,6 @@
  ** A new printing device is available, -ddumb, which produces ASCII art
     for plots.  This device is only available with the gnuplot toolkit.
 
- ** Printing to EPS files now uses a tight bounding box ("-tight"
-    argument to print) by default.  This makes more sense for EPS
-    files which are normally embedded within other documents, and is
-    Matlab compatible.  If necessary use the "-loose" option to
-    reproduce figures as they appeared in previous versions of Octave.
-
  ** Specifying legend position with a numeric argument is deprecated and
     will be removed in Octave 7.0.  Use a string argument instead.
 
--- a/scripts/plot/util/print.m	Sat Feb 16 22:16:40 2019 +0100
+++ b/scripts/plot/util/print.m	Sat Feb 16 16:59:35 2019 -0800
@@ -189,9 +189,9 @@
 ## Octave interpreter from recognizing the embedded comma (',').  For example,
 ## by writing @w{"-S640,480"}.
 ##
-## @item  -tight
-## @itemx -loose
-##   Force a tight or loose bounding box for EPS files.  The default is tight.
+## @item  -loose
+## @itemx -tight
+##   Force a tight or loose bounding box for EPS files.  The default is loose.
 ##
 ## @item -@var{preview}
 ##   Add a preview to EPS files.  Supported formats are:
--- a/scripts/plot/util/private/__print_parse_opts__.m	Sat Feb 16 22:16:40 2019 +0100
+++ b/scripts/plot/util/private/__print_parse_opts__.m	Sat Feb 16 16:59:35 2019 -0800
@@ -64,7 +64,7 @@
   arg_st.special_flag = "textnormal";
   arg_st.svgconvert = false;
   arg_st.svgconvert_binary = __quote_path__ (__svgconv_binary__ ());
-  arg_st.tight = true;
+  arg_st.tight = false;
   arg_st.use_color = 0; # 0=default, -1=mono, +1=color
 
   if (isunix ())