changing axes of contour plot

Hi,

I have a contour plot with a log scale on the x and y axes and I would like
it to read "10^1 10^2 10^3 10^4". How would I go about doing this?

Here's how I'm currently making the plot..

contour( log10(x), log10(y), z )

This only displays something like "0 1 2 3 4".

Any suggestions?

If there is a really obvious solution to this, then I apologize, but I can't
seem to figure it out.
Thanks

···

--
View this message in context: http://www.nabble.com/changing-axes-of-contour-plot-tp19444605p19444605.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

I'm not an expert, but I got the attached script to do what you need ( at
least as I understand it). It isn't quite nice, because I need interactive
mode turned on for proper value in the xtick labels in order to modify them.
Maybe it is a kind of beginning for a good solution or maybe a proper
solution is out there.

regards Matthias

contour_with_10_to_X_labels.py (976 Bytes)

···

On Thursday 11 September 2008 22:59:31 johnny_c wrote:

Hi,

I have a contour plot with a log scale on the x and y axes and I would
like it to read "10^1 10^2 10^3 10^4". How would I go about doing this?

Here's how I'm currently making the plot..

contour( log10(x), log10(y), z )

This only displays something like "0 1 2 3 4".

Any suggestions?

If there is a really obvious solution to this, then I apologize, but I
can't seem to figure it out.
Thanks