The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to find min/max in a figure/colorbar?
Replies: 1   Last Post: Mar 19, 2013 7:11 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 69
Registered: 2/22/12
Re: How to find min/max in a figure/colorbar?
Posted: Mar 19, 2013 7:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Anke " <> wrote in message <khncoe$lq$>...
> I saved figures of some plots during a simulation run. They are imagesc. Is there any way to fin the min/max values just from the figure? Or actually the colorbar.
> I use the image without axes in a .tex document where I use pgfplots to redo the axes and colorbar. So basically I need to know how to accurately remake the colorbar not just by guessing. The ticks on my Matlab colorbar don't go all the way up and down, so right now, guessing is my only option...

CAX = caxis;

This will return a two-element vector of the min and max value, per the colorbar.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.