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: color contouring log10 of a function
Replies: 3   Last Post: Aug 16, 2008 5:17 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Mike Hoversten

Posts: 13
Registered: 10/27/06
Re: color contouring log10 of a function
Posted: Aug 16, 2008 3:13 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Walter Roberson <> wrote in message
> G. Michael wrote:
> > I am contouring a function that I must put in log10 to
> > the variations. so the valuse go from 1 to 1000 say,
> > contour are from 0 to 3, I want the color scale to have
> > real values ie 1,10,100,1000, how can I do this?
> Color scale -- do you mean you called colorbar() ?
> If so, then find the axes of the colarbar plot (say Cax)

and do
> set(Cax, 'YTickLabel', str2num(10 .^ get(Cax, 'YTick'));
> --
> Q = quotation(rand);
> if isempty(Q); error('Quotation server filesystem

> else sprintf('%s',Q), end

thanks that gets close but not quite. My code is:
ah = colorbar('vert')
title('Rock Resisitivty from Hibernia B16_17');
ylabel('Water Saturation S
hold off;
grid on;

set(ah, 'YTickLabel', num2str(10 .^ get(ah, 'YTick')));

The color bar label are all 10 31.62

It look like it is trying to put all o fthe labels (7 in
all) on each tick mark?

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.