octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44187] Bugs and modifications in print() with


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #44187] Bugs and modifications in print() with gnuplot graphics toolkit
Date: Wed, 11 Nov 2015 01:07:42 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7

Follow-up Comment #36, bug #44187 (project octave):

The switch/case block in __gnuplot_print__ was originally added (by me I
think) prior to having a paperunits updater. Now that the updater is present
it should be used. The specific advantage is that the papersize and
paperpostion will be correctly determined for all units, including
"normalized".

I haven't tested it, but something like below should work.


## size settings are handled in __ghostscript__.m for the gs devices
if (! any(strcmp(lower (opts.devopt), opts.ghostscript.device)))
  paperunits = get (opts.figure, "paperunits");
  unwind_protect
    set (opt.figure, "paperunits", "inches");
    paperposition = get (opts.figure, "paperposition");
  unwind_protect_cleanup
    set (opt.figure, "paperunits", paperunits);
  end_unwind_protect
  gp_opts = sprintf ("%s size %3.2fin,%5.3fin", gp_opts, paperposition(3:4));
endif




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44187>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]