Re: [Matplotlib-users] Information request

2008-09-11 Thread De Pauw Antoine
Hi Jeff, I have put the code online with a sample of the data here: http://snipplr.com/view/8307/map-plotting-python-code-temporary/ I hope you'll be able to give me some advice as it is quite difficult for someone new in python and scientific computation Antoine De Pauw Collaborateur de recher

[Matplotlib-users] windrose OO

2008-09-11 Thread Lionel Roubeyrie
Hi all, with few free hours, I have modified the windrose file to be O.O. compliant with the 0.98 matplotlib branch and normally bug free. The next posts will be on sourceforge : https://sourceforge.net/project/showfiles.php?group_id=239240&package_id=290902 and to see it in detail, here is the e

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
De Pauw Antoine wrote: > Hi Jeff, > > I have put the code online with a sample of the data here: > > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > I hope you'll be able to give me some advice as it is quite difficult for > someone new in python and scientific computation >

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
De Pauw Antoine wrote: > Hi Jeff, > > I have put the code online with a sample of the data here: > > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > I hope you'll be able to give me some advice as it is quite difficult for > someone new in python and scientific computation > >

Re: [Matplotlib-users] Information request

2008-09-11 Thread De Pauw Antoine
Thanks Jeff, This seems to work with csv file types, and I've been experimenting a bit with it However, when I try to implement this with my original code (with binary files), I get an error like that one: Traceback (most recent call last): File "C:\Python25\Projects\FigPlot\FigPlot.py", line

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
De Pauw Antoine wrote: > Thanks Jeff, > > This seems to work with csv file types, and I've been experimenting a bit > with it > > However, when I try to implement this with my original code (with binary > files), I get an error like that one: > > Traceback (most recent call last): > File "C:\Pyth

Re: [Matplotlib-users] Information request

2008-09-11 Thread De Pauw Antoine
Jeff, The map object is from the Basemap type, the only different thing is the Lon,Lat and Val objects which are from the type array instead of lists Anyway, solutions are slowly showing themselves and I thank you all Have a nice day Antoine De Pauw Collaborateur de recherches, Informatique - R

Re: [Matplotlib-users] Information request

2008-09-11 Thread Jeff Whitaker
De Pauw Antoine wrote: > Jeff, > > The map object is from the Basemap type, the only different thing is the > Lon,Lat and Val objects which are from the type array instead of lists > > Anyway, solutions are slowly showing themselves and I thank you all > > Have a nice day > > Antoine De Pauw > Coll

[Matplotlib-users] squishing a plot axis

2008-09-11 Thread Jonathon Anderson
I've got a pretty standard "plot with a title" set up, but my title is three lines long, and is pushed off the top of the figure by the layout. How can I "squish" (rescale) the y-axis of my axes to give more room above the figure? How can I add padding around the axes in the figure? (For now, I'v

Re: [Matplotlib-users] squishing a plot axis

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 10:19 AM, Jonathon Anderson <[EMAIL PROTECTED]> wrote: > I've got a pretty standard "plot with a title" set up, but my title is > three lines long, and is pushed off the top of the figure by the > layout. > > How can I "squish" (rescale) the y-axis of my axes to give more ro

[Matplotlib-users] matplotlib qt4 backend: QScrollArea

2008-09-11 Thread bernardo martins rocha
Hi everyone, I would like to create a plot in matplotlib using a lot of subplots but I would like to attach QScrollArea to this. Do you guys have any idea of how can I do it? I did it with an image but it doesn't work when I try to include the FigureCanvas object to the QScrollArea. Thanks! Be

[Matplotlib-users] Interactive animation

2008-09-11 Thread Peter Saffrey
I'm trying to develop an application for interactive graph layout using networkx and matplotlib. My idea is to use the usual spring layout, where nodes repel each other and edges act as attractive forces between nodes, but have the layout happen in real time on the screen. The user can also int

Re: [Matplotlib-users] Interactive animation

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 10:51 AM, Peter Saffrey <[EMAIL PROTECTED]> wrote: > I'm trying to develop an application for interactive graph layout using > networkx and matplotlib. My idea is to use the usual spring layout, > where nodes repel each other and edges act as attractive forces between > node

[Matplotlib-users] legend for bar charts

2008-09-11 Thread Jonathon Anderson
I have a multicolor bar chart that I create like this: bar(dates*4, b3 + b2 + b1 + b0, color=(['#9E73C1']*len(dates) + ['#A6DE62']*len(dates) + ['#F35E5A']*len(dates) + ['#4992DE']*len(dates)), width=4) How can I create a legend for this? leg = legend(["98,304 - 1

Re: [Matplotlib-users] legend for bar charts

2008-09-11 Thread Jonathon Anderson
For the record, I also just tried bar(dates, b3, color='#9E73C1', width=4) bar(dates, b2, color='#A6DE62', width=4) bar(dates, b1, color='#F35E5A', width=4) bar(dates, b0, color='#4992DE', width=4) leg = legend(["98,304 - 163,840 Cores", "32768 - 98,303 Cores", "8,192 - 32,

Re: [Matplotlib-users] legend for bar charts

2008-09-11 Thread Jonathon Anderson
I eventually did it with b3l = bar(dates, b3, color='#9E73C1', width=4) b2l = bar(dates, b2, color='#A6DE62', width=4) b1l = bar(dates, b1, color='#F35E5A', width=4) b0l = bar(dates, b0, color='#4992DE', width=4) leg = legend([b3l[0], b2l[0], b1l[0], b0l[0]],["98,304 -

Re: [Matplotlib-users] legend for bar charts

2008-09-11 Thread John Hunter
On Thu, Sep 11, 2008 at 1:33 PM, Jonathon Anderson <[EMAIL PROTECTED]> wrote: > I eventually did it with > >b3l = bar(dates, b3, color='#9E73C1', width=4) >b2l = bar(dates, b2, color='#A6DE62', width=4) >b1l = bar(dates, b1, color='#F35E5A', width=4) >b0l = bar(dates, b0, color='#49

[Matplotlib-users] bug in savefig?

2008-09-11 Thread Michael Hearne
Has anyone reported a bug in the post-script renderer regarding text with backticks in it? I remember that there was a bug fix for single quotes, but I just ran into this one. I'm using 0.98.2 on OS 10.5. A sample script is below. If I try to open the postscript file in Mac's Preview, it att

Re: [Matplotlib-users] bug in savefig?

2008-09-11 Thread Michael Droettboom
Thanks for reporting this. It is now fixed in SVN r6085. If you're not running SVN, you can apply this patch here: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/lib/matplotlib/backends/backend_ps.py?r1=6080&r2=6085 I'll go ahead and fix this on the maintenance branch

[Matplotlib-users] eliminating the top tick on an axis

2008-09-11 Thread j s oishi
Hi, I have a very vexing problem. I am using MPL (both 0.98.1 and 0.91.2) to create a vertical stack of three plots with no space in between. In order to do so, I need to eliminate either the top or bottom tick of each plot. I have chosen to eliminate the top tick, and I am doing something like th

[Matplotlib-users] boxplot on noisy data

2008-09-11 Thread Steve Sullivan
Hi, We're making box plots of weather data, which is notoriously noisy. Different boxes may have different numbers of observations. 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 prog

[Matplotlib-users] Figure Dimension

2008-09-11 Thread Zainal Abidin
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 .. -- Zainal Abidin, S.Si Sub Bidang Informasi Meteorologi Publik Badan Meteorologi dan Geofisika Jl. Angkasa I No

Re: [Matplotlib-users] eliminating the top tick on an axis

2008-09-11 Thread Jae-Joon Lee
Hi, It seems that there is no guarantee that the get_major_ticks() methods returns only ticks within the view interval, i.e., it can return ticks outside the data limit. As far as I see, this is related with the general behavior of locator objects. For example, In [71]: ax.yaxis.get_view_interv