[Matplotlib-users] Fwd: WxAgg Figures not updating

2008-09-12 Thread Marshall Tappen
Hello, I am having problems with the WxAgg backend on the Mac not updating figures. Using this test code: import time from pylab import * x = linspace(0,6*pi,255) y = sin(x) h,=plot([0],[0],'g-') show() for i in xrange(250,len(x),25): h.set_data(x[:i],y[:i]) axis([0,6*pi,-2,2]) draw()

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeremy Conlin
On Fri, Sep 12, 2008 at 4:31 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Jeremy Conlin wrote: > >> First question: >> I know I can do pylab.loglog() to get a log-log plot. I would like to >> create a log-linear plot. How can I do this? >> > > semilogx or semilogy: > > > > semilogy < > http:/

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeff Whitaker
Jeremy Conlin wrote: > First question: > I know I can do pylab.loglog() to get a log-log plot. I would like to > create a log-linear plot. How can I do this? semilogx or semilogy: semilogy (*args, **kwargs) Make a plo

[Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeremy Conlin
First question:I know I can do pylab.loglog() to get a log-log plot. I would like to create a log-linear plot. How can I do this? Second question: I would like to plot two sequences on the same figure with two different y-scales, one scale shown on the left and one scale shown on the right. How

[Matplotlib-users] changing axes of contour plot

2008-09-12 Thread johnny_c
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?

Re: [Matplotlib-users] some numpy help for clipping rows/column of masked data

2008-09-12 Thread Pierre GM
Marjolaine, Getting rid of rows/columns in your case might be a bit tricky, as there's nothing to ensure that your domain is actually square. First, create your mask: lon_mask = (lon >= min_lon) & (lon <= max_lon) lat_mask = (lat >= min_lat) & (lat <= max_lat) glb_mask = lon_mask & lat_mask glb_

Re: [Matplotlib-users] box plot on noisy data

2008-09-12 Thread Eric Wertman
>> import pylab as pb >> vals = [ [1,2,3,4,5], [10,20,30,40]] >> pb.boxplot( vals) >> pb.show() >> >> This gives: >> Traceback (most recent call last): ... >> ValueError: setting an array element with a sequence. I had this problem just recently... It wasn't so much the box plot as the numpy array

[Matplotlib-users] some numpy help for clipping rows/column of masked data

2008-09-12 Thread Marjolaine Rouault
Hi, I was wondering if the matplotlib users would be able to help with a numpy problem. I have 2 dimensional arrays of latitudes and longitude named lon and lat and only want to extract lats and lons within a certain domain It is easy to apply the mask lonMask = (lon >= minLon) & (lon <= maxLo

Re: [Matplotlib-users] Information request

2008-09-12 Thread De Pauw Antoine
a complete > set of data: > > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > And here's the picture generated: > > http://www.kirikoo.net/images/5shrad-20080912-105759.png > > I now understand the process and I'm able to reproduce it for other &

Re: [Matplotlib-users] box plot on noisy data

2008-09-12 Thread Christoph T. Weidemann
On Thu, 11 Sep 2008 21:02:30 -0600, Steve Sullivan <[EMAIL PROTECTED]> wrote: > But boxplot seems to demand that each box represent the same > number of values. For example, if day 1 had 5 observations > and day 2 had only 4 obs, we'd have the program: > > import pylab as pb > vals = [ [1,2,3,4,5

Re: [Matplotlib-users] Information request

2008-09-12 Thread Jeff Whitaker
De Pauw Antoine wrote: > Hi Jeff, > > I updated my code snippet and uploaded the image I created with a complete > set of data: > > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > And here's the picture generated: > > http://www.kirikoo.ne

Re: [Matplotlib-users] Information request

2008-09-12 Thread De Pauw Antoine
Hi Jeff, I updated my code snippet and uploaded the image I created with a complete set of data: http://snipplr.com/view/8307/map-plotting-python-code-temporary/ And here's the picture generated: http://www.kirikoo.net/images/5shrad-20080912-105759.png I now understand the process an

Re: [Matplotlib-users] Figure Dimension

2008-09-12 Thread Favre-Nicolin Vincent
On vendredi 12 septembre 2008, Zainal Abidin wrote: > Hi All matplotlib users, > I want to ask a question about figure dimension (pixels), how to set the > figure's dimension that we will create using matlotlib.pyplot.savefig() ? > Thank You .. You create explicitely the figure before doing any