help-octave
[Top][All Lists]
Advanced

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

How to wrap the imagesc figure with plot borders?


From: amonterou
Subject: How to wrap the imagesc figure with plot borders?
Date: Fri, 22 Jun 2012 08:02:26 -0700 (PDT)

Hi, I'm trying to plot a matrix through imagesc, the matrix contains data
that should be visualized in a "pixel" view. So I use this code (I'm using a
rand matrix to illustrate the point)

imagesc(rand(17,28));

I tried drawing grid("minor","on") on top of the image shown but the thing
is that it divides in a too granular way, I want to draw my own grid on top
of it, but the issue is that if I use the plot function to draw a line, the
plot origin and area are actually smaller than the image that imagesc
renders so if I draw starting in point 0,0 it actually starts from the
center of the first pixel, I want to be able to draw my grid delineating the
border between each "pixel" of the image. Attached is an image of the corner
of the plot area that shows the issue.
What I would like to be able to do is to draw lines starting from the actual
border of the image. Thanks in advance to any advise you can provide! Have a
nice day!


  http://octave.1599824.n4.nabble.com/file/n4630872/Untitled_picture.png 

--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-to-wrap-the-imagesc-figure-with-plot-borders-tp4630872.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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