Octave + Gnuplot rendering image upside down

1k views Asked by At

I am displaying data using function imagesc(). If I set fltk as graphics_toolkit image is displayed correctly.


Can't post images directly(low reputation) https://i.stack.imgur.com/ARiwF.png

If I use gnuplot as plotting program image is rendered upside down. fltk is unusable for me because its window isn't responding while function in octave is running. I also tried plot sine and it was correct plotted through fltk and gnuplot too.

1

There are 1 answers

0
ederag On

There are at least two workarounds:

  • Use axis("xy") or axis("ij") to control the orientation of the y-axis, as decribed in the axis documentation

  • Use set(gca, "ydir", "normal") or set(gca, "ydir", "reverse"), as decribed in the axes properties doc