[Top][All Lists]

[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: Wed, 13 Mar 2019 14:44:23 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #55907 (project octave):

                  Status:                    None => Works For Me           


Follow-up Comment #1:

The sample code does not execute correctly.

octave:4> clf
octave:5> sombrero 
octave:6> print -dpng ./MyPlot.png -S4000,3000 -r1000 
error: 'r1000' undefined near line 1 column 43

What Octave probably did was produce a plot of the desired size, but the
resolution argument was ignored so it used screen resolution of ~96 DPI.  This
would certainly make any fonts appear very, very small (~100/1000 or 10% of

If you want to set the size of an image for printing use the paperXXX
properties of the figure object.


The properties are inter-related so setting something like "papertype" to
"usletter" will automatically set the "papersize".

>From the command, I think you were trying to get a 4"x3" image at 1000 DPI. 
To do that, set the size for printing and then issue the print command.

set (gcf, "paperunits", "inches", "paperposition", [0, 0, 4, 3]);
print -r1000 MyPlot.png


Reply to this item at:


  Message sent via Savannah

reply via email to

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