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

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

[Octave-bug-tracker] [bug #55907] png plot does nor respect dpi and prod


From: Rik
Subject: [Octave-bug-tracker] [bug #55907] png plot does nor respect dpi and produces unreadable results
Date: Fri, 15 Mar 2019 11:32:56 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #3, bug #55907 (project octave):

Are you saying that you don't get an error when you run the print command?


clear all
close all
sombrero
print -dpng ./MyPlot.png -S4000,3000 -r1000


If so, that is a different issue to debug.

The "-r" and "-S" options are for different things.  The "-r" option sets the
resolution (DPI).  It does not set the size of the figure.  If you want a
particular output size, use the paperXXX properties.  See Matlab documentation
(https://www.mathworks.com/help/matlab/ref/print.html) for which Octave has to
maintain compatibility.

The "-S" option is for setting the size of the output in pixels.  Normally,
the number of pixels would be determined automatically by Octave as  


number of pixels = physical_size (in inches) * DPI


But by using the "-S" option you have explicitly said how many pixels you want
and the resolution is irrelevant.  It's not an error to specify the two
options together, although maybe a warning would be useful that the "-S"
option takes precedence.

If this is unclear, you could suggest help text for the print command that
would better document it.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55907>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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