Re: [Matplotlib-users] Problems with imshow logarithmic plot

2008-10-27 Thread John [H2O]
Well, the image is being plotted using: ## create logorithmic scale range_max = int(pl.ceil(dat_max)) step = int(pl.ceil(range_max/10)) logspace = 10.**np.linspace(-1, 4.0, 20) # 50 equally-spaced-in-log points between 1.e-01 and 1.0e03 #plot# im = m.imshow(topodat,cmap=cm.s3pcpn,interpolation=

Re: [Matplotlib-users] Problems with imshow logarithmic plot

2008-10-27 Thread Michael Droettboom
The image is being plot in linear scale, while the scatter point is being plotted with log scale...? John [H2O] wrote: > I should add here also, this doesn't explain for me why the values are > different?? Thoughts on that mtter? > > Thanks!! > > > -- Michael Droettboom Science Software Bran

Re: [Matplotlib-users] Problems with imshow logarithmic plot

2008-10-27 Thread John [H2O]
I should add here also, this doesn't explain for me why the values are different?? Thoughts on that mtter? Thanks!! -- View this message in context: http://www.nabble.com/Problems-with-imshow-logarithmic-plot-tp20152686p20190717.html Sent from the matplotlib - users mailing list archive at Na

Re: [Matplotlib-users] Problems with imshow logarithmic plot

2008-10-27 Thread John [H2O]
Okay, I can't find where I came up with the original solution to use imshow with custom clevs... I think it was a thread on this forum possibly, or in an example. But the point is that I recall there was some development talk about improving the handling of log data for this issue Does anyone

Re: [Matplotlib-users] Problems with imshow logarithmic plot

2008-10-24 Thread Michael Droettboom
imshow doesn't handle logarithmic data. You'll want to use pcolor or pcolormesh instead. As for the graininess, unfortunately, pcolor and pcolormesh don't support any kind of interpolation. (imshow does, but it can only draw uniform data). Mike John [H2O] wrote: > Hello, > > I'm trying to g

[Matplotlib-users] Problems with imshow logarithmic plot

2008-10-24 Thread John [H2O]
Hello, I'm trying to get imshow to plot logarithmic data. I'm having some problems with the colorbar or data?? Note, I plot the max_dat value on the bottom of the figure, but it does not seem to correspond with the values in the plot??? Any ideas? Also, does anyone have some recommendations on h