[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText |
Date: |
Fri, 4 Dec 2020 07:04:44 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0 |
Follow-up Comment #7, bug #56958 (project octave):
@Avinoam: If you're happy with the screen resolution you can use "getframe
(gca)" and then "imwrite". Make the figure aspect ratio identical to that of
your image, fill the figure and then getframe/print:
## Make the axes fill the figure
hax = axes ("position", [0 0 1 1]);
imshow ("default.img");
## Scale the figure to match the image aspect ratio
pos = get (gcf, "position");
pba = get (gca, "plotboxaspectratio");
pos(4) = pos(3)*pba(2)/pba(1);
set (gcf, "position", pos, "paperpositionmode", "auto")
im = getframe (gca);
imwrite (im.cdata, "/tmp/toto_getframe.png")
print -r300 /tmp/toto_print.png
When using "print", strangely, I still get empty pixels on the right and at
the bottom.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56958>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Avinoam Kalma, 2020/12/04
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText,
Pantxo Diribarne <=
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Guillaume, 2020/12/04
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Pantxo Diribarne, 2020/12/04
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Avinoam Kalma, 2020/12/06
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Guillaume, 2020/12/06
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Pantxo Diribarne, 2020/12/06
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Guillaume, 2020/12/07
- [Octave-bug-tracker] [bug #56958] [Octave-Forge] (image) Implementation of insertText, Avinoam Kalma, 2020/12/08