I using graphics_toolkit('gnuplot')
for Octave.
However, when I use imshow
, the image seems to be darker:
image = imread('Lenna.png')
imshow(image)
The gray version is working well:
pkg load image
gray = rgb2gray(image)
imshow(gray)
What can I do to fix the imshow
problem?
I solve my problem by changing graphics toolkit to qt
:
graphics_toolkit('qt')
And you should use octave
or octave --no-gui
instead of octave-cli
because octave-cli
doesn't link to qt
.