Bug imagesc in Octave 5.1.0.0

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug imagesc in Octave 5.1.0.0

Patrick Scholl
Dear Octave team,


thanks for providing such a nice program.
I am quite familiar with Matlab and some months ago I switched to Octave.

I just found one minor bug in the new Octave version. When I updated to Octave 5.1.0.0, one of my programs than was running in earlier Octave versions had a problem with the scaling of one of my pictures in a GUI.

The code I used was:

graphics_toolkit qt

clear h

graphics_toolkit qt
[fig1,map]=imread('sole.jpg');

figure;

imagesc(fig1);

set(gca,'units','normalized','position',[0 0 1 1]);
set(gcf,'units','pixels','position',[600, 20, 1200, 1300]);

Therefore, the figure was not scaling to the new image dimensions. I could resolve the problem by adding a minor pause after the imagesc command:

imagesc(fig1);
pause(0.000001);


Best regards
Patrick



--
Patrick Scholl

novapace

Robert-Bosch-Straße 7 
64293 Darmstadt 
Tel.: +49 157 37621645
Mail: [hidden email] 
www.novapace.de

facebook twitter LinkedIn xing


Reply | Threaded
Open this post in threaded view
|

Re: Bug imagesc in Octave 5.1.0.0

Hartmut
Dear Patrick,

it is good to hear that you use Octave in a professional environment.

I have tried to reproduce your buggy behavior of the imagesc command. But I
could not reproduce it when using some of my own image files.

Could you provide a full working m-code example of this buggy behavior?
Including an image file that shows this behavior when used? If you do this,
it is probably the best thing to directly open a new bug report on the bug
tracker: [1]

Thanks

    Hartmut

[1] https://savannah.gnu.org/bugs/?func=additem&group=octave



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html