Menu

#95 colorbar for contour shows wrong scale

closed-fixed
nobody
None
5
2007-03-17
2007-03-06
Kai Habel
No

See the following example:
[x,y,z]=peaks(62);
contour(x,y,z);
colorbar;

It gives me a color scale from 0 to 1

If I add the following

set(gca(),"clim",[min(lev) max(lev)]);

at the end of contour.m I get the right scale (same as matlab).

Bye Kai

Discussion

  • Shai Ayal

    Shai Ayal - 2007-03-17

    Logged In: YES
    user_id=136223
    Originator: NO

    fixed in svn rev 435

     
  • Shai Ayal

    Shai Ayal - 2007-03-17
    • status: open --> closed-fixed
     

Log in to post a comment.