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

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

[Octave-bug-tracker] [bug #55999] Display images larger than GL_MAX_TEXT


From: Charles Praplan
Subject: [Octave-bug-tracker] [bug #55999] Display images larger than GL_MAX_TEXTURE_SIZE
Date: Sun, 7 Apr 2019 06:48:20 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #16, bug #55999 (project octave):

Thank you for your help.

The first method you propose works correctly, also to save images (I tried png
and jpg). The saved files correspond to the figure.


However to get a correct output, the size of the figure must be restored
before printing, using


set(gcf, 'Position', [x0 y0 w0 h0])


The reason why the size of the picture changed is illustrated by the 2
appended figures, obtained executing following code from an m-file (not step
by step).
The difference between the 2 pictures is a small delay generated with
pause(0).


x0=200; y0=45; w0=1305; h0=round(w0/sqrt(2));


fig2=figure;
set(gcf, 'Position', [x0 y0 w0 h0]);
subplot('Position',subplot1_pos);
subplot('Position',subplot2_pos);
subplot('Position',subplot3_pos);
subplot('Position',subplot4_pos);

fig3=figure;
pause(0)
set(gcf, 'Position', [x0 y0 w0 h0]);
subplot('Position',subplot1_pos);
subplot('Position',subplot2_pos);
subplot('Position',subplot3_pos);
subplot('Position',subplot4_pos);


Then, executing following code reduces the size of fig2.


figure(fig2)
annotation('textbox', [0.01, 0.01, 0.5, 0.057], 'String', 'Annotation')
figure(fig3)
annotation('textbox', [0.01, 0.01, 0.5, 0.057], 'String', 'Annotation')


I fully agree that this is outside the scope of this report.

Should I post a report for this delay problem?



(file #46732, file #46733)
    _______________________________________________________

Additional Item Attachment:

File name: Screenshot_fig2.png            Size:14 KB
    <https://savannah.gnu.org/file/Screenshot_fig2.png?file_id=46732>

File name: Screenshot_fig3.png            Size:16 KB
    <https://savannah.gnu.org/file/Screenshot_fig3.png?file_id=46733>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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