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

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

[Octave-bug-tracker] [bug #54693] Qt/FLTK - export as PNG - wrong image


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #54693] Qt/FLTK - export as PNG - wrong image size and aspect ratio
Date: Wed, 19 Sep 2018 15:30:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Update of bug #54693 (project octave):

                  Status:                    None => Invalid                

    _______________________________________________________

Follow-up Comment #1:

With OpenGL toolkits (qt and fltk) you need to use the figure "paper*"
properties to control the aspect ratio of printed output. In particular,
unless the "paperpositionmode" is "auto"  (which is not the default), the
aspect ratio will be given by "paperposition". 

What you want is something like this


figure ("position", [100 100 600 300], ...
        "paperpositionmode", "auto");
plot (1:10)
print /tmp/toto.png


Those properties are documented here:

https://octave.org/doc/interpreter/Figure-Properties.html#XREFfigurepaperposition

I'll close this report as invalid since what you describe is intended for
Matlab compatibility. Or, do you want to make it a gnuplot toolkit bug :-) ?
 

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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