[Matplotlib-users] Redrawing a description of axis

2008-10-27 Thread 302302
Hi, I'm dealing with a problem how to redraw just label ticks in one certain subplot with in matplotlib. If I change description of axis in the subplot (by .set_yticks() and .set_yticklabels()) I have to redraw whole figure (figure.canvas.draw()) to see the changes. But I need to redraw either j

Re: [Matplotlib-users] question about figsize keyword of figure(..)

2008-10-27 Thread John Hunter
On Mon, Oct 27, 2008 at 6:48 PM, Eric Firing <[EMAIL PROTECTED]> wrote: >> It appears that the figure gets *bigger* as I make a and b *smaller* !??! >> > > You will need to be more explicit about what you are doing to reach this > conclusion. What he is probably seeing comes from the fact that so

Re: [Matplotlib-users] question about figsize keyword of figure(..)

2008-10-27 Thread Eric Firing
[EMAIL PROTECTED] wrote: > I'm confused about what > > matplotlib.pyplot.figure(figsize = (a,b)) *means* a and b are width and height in inches. For vector backends (svg, ps, pdf), that's all there is to it--unless there is a bug. For non-vector output (screen, *.png), the a, b get translate

Re: [Matplotlib-users] How to plot only points which lie in a certain range

2008-10-27 Thread brett . mcsweeney
You need to use the numpy 'where' functionality import numpy as np x, y, z = np.loadtxt("fileName.dat", unpack=True) # or similar # x, y and z are now numpy arrays and have built in functionality as follows: s = (z < 10.0) & (z**2 > 0.5) # or some other constraint. Produces an array 's' of

[Matplotlib-users] question about figsize keyword of figure(..)

2008-10-27 Thread chris
I'm confused about what matplotlib.pyplot.figure(figsize = (a,b)) *means* It appears that the figure gets *bigger* as I make a and b *smaller* !??! Chris - This SF.Net email is sponsored by the Moblin Your Move Developer'

[Matplotlib-users] How to plot only points which lie in a certain range

2008-10-27 Thread marcusantonius
I'm sorry for this newbie question. I have a data file consisting of 3 columns, and want to plot the first versus the second column, but only if the parameter in the third column lies in a certain range. Does somebody have an idea how to do that? -- View this message in context: http://www.nabbl

Re: [Matplotlib-users] Please help with 3d scatter plot

2008-10-27 Thread Vincent Favre-Nicolin
On lundi 27 octobre 2008, Jeremy Conlin wrote: > Thanks for introducing me to mlab. I had never heard of it before. > > I did: > > mlab.points3d(P[:,0],P[:,1],P[:,2],mode='point') > > > where P is a (1, 3) numpy array. mlab plotted the points, but the > window became unresponsive. I can't im

Re: [Matplotlib-users] changing the size of a plot point

2008-10-27 Thread Mathew Yeates
Thank you! On Mon, Oct 27, 2008 at 2:12 PM, Friedrich Hagedorn <[EMAIL PROTECTED]>wrote: > On Mon, Oct 27, 2008 at 01:53:24PM -0700, Mathew Yeates wrote: > >is there a way, when plotting many points, to decrease the size of the > >point. With the default size I end up with overlapping poi

Re: [Matplotlib-users] changing the size of a plot point

2008-10-27 Thread Friedrich Hagedorn
On Mon, Oct 27, 2008 at 01:53:24PM -0700, Mathew Yeates wrote: >is there a way, when plotting many points, to decrease the size of the >point. With the default size I end up with overlapping points so some are >not displayed. Do you want to change (decrease) the following values? pl

[Matplotlib-users] changing the size of a plot point

2008-10-27 Thread Mathew Yeates
is there a way, when plotting many points, to decrease the size of the point. With the default size I end up with overlapping points so some are not displayed. Mathew - This SF.Net email is sponsored by the Moblin Your Move De

Re: [Matplotlib-users] Saved PDFs default to 4/3 aspect ratio even if do subplots_adjust?

2008-10-27 Thread chris
On Mon, Oct 27, 2008 at 10:59:40AM -0400, Michael Droettboom wrote: > The size of the figure can be adjusted using > > figure(figsize=(width, height)) > > subplots_adjust merely adjusts the margins between multiple subplots > within the same figure. Thanks. subplots_adjust(left=.., bottom=...) se

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] Saved PDFs default to 4/3 aspect ratio even if do subplots_adjust?

2008-10-27 Thread Michael Droettboom
The size of the figure can be adjusted using figure(figsize=(width, height)) subplots_adjust merely adjusts the margins between multiple subplots within the same figure. Hope that helps. Mike [EMAIL PROTECTED] wrote: > I measured the displayed Matplotlib PDF on the screen and noticed it > has

Re: [Matplotlib-users] Please help with 3d scatter plot

2008-10-27 Thread Vincent Favre-Nicolin
On lundi 27 octobre 2008, Jeremy Conlin wrote: > I have a function (shown below) that would take a 3D numpy array and plot > points in 3D. I recently updated my matplotlib with the latest Enthought > Python Distribution and now it doesn't work; I guess matplotlib changed the > api a little bit.

Re: [Matplotlib-users] Please help with 3d scatter plot

2008-10-27 Thread Manuel Metz
Jeremy Conlin wrote: > I have a function (shown below) that would take a 3D numpy array and plot > points in 3D. I recently updated my matplotlib with the latest Enthought > Python Distribution and now it doesn't work; I guess matplotlib changed the > api a little bit. > > The first problem arise

[Matplotlib-users] Please help with 3d scatter plot

2008-10-27 Thread Jeremy Conlin
I have a function (shown below) that would take a 3D numpy array and plot points in 3D. I recently updated my matplotlib with the latest Enthought Python Distribution and now it doesn't work; I guess matplotlib changed the api a little bit. The first problem arises because there is no matplotlib.