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

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

[Octave-bug-tracker] [bug #45285] printing with "-S..." option messes fi


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #45285] printing with "-S..." option messes figure size and png output
Date: Wed, 8 Nov 2017 11:49:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #9, bug #45285 (project octave):

@juanpi: I'd like to deprecate the "-S" option:
* It is easy to do the same job with the "paperposition" property  and this
technique avoids having to scale figures at very large size.

plot (1:10);
ppos = pos = get (gcf, "paperposition"); ## in inch
## Suppose we want a square figure with 4000 pixels sides
pos(4) = pos(3);
set (gcf, "paperposition", pos)
dpi = 4000/pos(3);
print (sprintf ("-r%d", dpi), "toto.png")

* Matlab does not have it so there is no compatibility problem

Do you have any objection.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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