Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread b b
Hi Lee, That was it. It took me a few more minutes to find out that set_xlim and set_ylim are methods in of the figure but now it's working nicely. I also found that the set_[xy]lim methods have to be called after the bar() method. Updated script: / from py

Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread Jae-Joon Lee
I think it is just that the x-range is wrongly set. Try something like xlim(1, 6) ylim(-1, 2) You will see zero-height rectangles. Currently, zero-height rectangles are ignored for autoscaling x- and y-axis. Regards, -JJ On Thu, Mar 25, 2010 at 6:50 PM, b b wrote: > Hi, > > Here's a version

Re: [Matplotlib-users] where's superpack?

2010-03-25 Thread PHobson
How up-to-date is Macports? This is a reasonable approximation of how I got my OX 10.6 machine set up: http://newmediaandcapitalmarkets.org/component/content/article/68-how-i-got-matplotlib-working-on-my-macbook.html > -Original Message- > From: Christopher Barker [mailto:chris.bar...@noa

Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread b b
Hi, Here's a version that goes to the list too :-) On Fri, Mar 26, 2010 at 9:10 AM, Jae-Joon Lee wrote: > With the current svn, I cannot reproduce the problem, i.e., bars with > 0 height are correctly displayed. The x-range is incorrectly set, but > it is not clear if this is what you meant. Uh

Re: [Matplotlib-users] [SciPy-User] milliseconds in matplotlib.dates?

2010-03-25 Thread Gökhan Sever
On Thu, Mar 25, 2010 at 4:17 PM, Tom Kuiper wrote: > > > Date: Thu, 25 Mar 2010 13:17:01 -0500 > > From: G?khan Sever > > Subject: Re: [SciPy-User] milliseconds in matplotlib.dates? > > To: SciPy Users List > > Cc: Matplotlib Users > > > ... > > Alternatively, you might use just floating-point

Re: [Matplotlib-users] Bar plot, 0 values

2010-03-25 Thread Jae-Joon Lee
With the current svn, I cannot reproduce the problem, i.e., bars with 0 height are correctly displayed. The x-range is incorrectly set, but it is not clear if this is what you meant. Can you post a screenshot of your figure? Also, version of your matplotlib will be helpful. Regards, -JJ On We

[Matplotlib-users] SciPy 2010 Tutorials: brainstorming and call for proposals

2010-03-25 Thread Brian Granger
Greetings everyone, This year, there will be two days of tutorials (June 28th and 29th) before the main SciPy 2010 conference. Each of the two tutorial tracks (intro, advanced) will have a 3-4 hour morning and afternoon session both days, for a total of 4 intro sessions and 4 advanced sessions. T

Re: [Matplotlib-users] Trouble embedding toolbar in Tk using grid

2010-03-25 Thread Friedrich Romstedt
2010/3/24 Jonno : > Well I realized my error with the extra window being caused by the > TopLevel() command. I switched this to Tk.Tk() and it works nicely. > However I still have to pack the frame instead of using grid. I can > work around this but I wonder if there isn't something else I'm > miss

Re: [Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-25 Thread Friedrich Romstedt
You must give a proper :param width: argument: plt.bar(bins, height, 0.01) http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.bar Friedrich 2010/3/25 timothee cezard : > Hi all, > I'm trying to plot a distribution using bar() but when I'm setting the > left variable to

[Matplotlib-users] strange behavior using a mask with Basemap

2010-03-25 Thread Yeates, Mathew C (388D)
Hi I would expect hgt=ma.masked_where(div == 0,hgt) m.contourf(x,y,hgt,15,cmap=plt.cm.jet) to produce a map complementary to the map produced by hgt=ma.masked_where(div != 0,hgt) m.contourf(x,y,hgt,15,cmap=plt.cm.jet) But, this is not the case. What am I missing? Mathew

Re: [Matplotlib-users] [SciPy-User] milliseconds in matplotlib.dates?

2010-03-25 Thread Gökhan Sever
On Wed, Mar 24, 2010 at 1:25 PM, Tom Kuiper wrote: > Greetings, everyone. > > I have some time tagged data spanning about three minutes with 4 ms > resolution. If I plot these with plot_data and focus in on some event > at high resolution I lose the tick marks. It seems that the minimum > tick

[Matplotlib-users] Tick labels in mplot3d?

2010-03-25 Thread Jeff Klukas
I would like to add tick labels to a 3d plot, but so far have had no luck. I would like to start with something like the bars3d example: http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html But I would like to have each bar chart labeled by its tick on the y-axis. The traditional

[Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-25 Thread timothee cezard
Hi all, I'm trying to plot a distribution using bar() but when I'm setting the left variable to as a sequence of float some of the bar look weird. When I replace this sequence by a sequence of int it works fines Does anybody know why this happens and how I can fix it? Here is the code I'm using:

Re: [Matplotlib-users] [matplotlib install] Problem when compiling.

2010-03-25 Thread David Kremer
I finally found a binary package at rpm bones, so all is fine. Thank you very much. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune ap

Re: [Matplotlib-users] contourf creats white-like lines (or gaps) between each two color patches

2010-03-25 Thread Eric Firing
lmkli wrote: > Thank you! > > I just thought there must be a solution. > I saw someone posted he can modified contour.py to fix this, but I failed. > :( > What version of mpl are you using? Are you modifying the default anti-aliasing in the patch collections that contour is creating? Are you

Re: [Matplotlib-users] format yticks

2010-03-25 Thread Ryan May
On Wed, Mar 24, 2010 at 8:03 PM, Angus McMorland wrote: > On 24 March 2010 17:33, Nils Wagner wrote: >> Hi all, >> >> how can I change the output format of yticks from 100 >> to 1.e6 ? > > I'm not sure if there's an easier way still, but this works: > > from matplotlib.ticker import Formatter