Re: [Matplotlib-users] matplotlib CRASHes when saving as a postscript file

2010-01-08 Thread Jae-Joon Lee
I can reproduce this error with the current svn. I doubt if this is a matplotlib issue, because it works fine if the number of axes is small. To me, it seems as some memory error in the ghostscript, but my quick googling did not show any relevant information. So, I hope some postscript expert take

Re: [Matplotlib-users] dividing up subplots?

2010-01-08 Thread Jae-Joon Lee
On Sun, Jan 3, 2010 at 4:30 PM, per freem wrote: > is there a way to do this in matplotlib? With subplots, I believe the answer is no. You may try to fiddle with anchor positions of individual subplots, but this will only work for some limited cases. With axes_grid toolkit, yes. -JJ --

Re: [Matplotlib-users] Tkinter scripts

2010-01-08 Thread Alan G Isaac
On 1/8/2010 3:08 PM, David Arnold wrote: > Does anyone have some Tkinter scripts using matplotlib they can share? You may find the TSPlot and Histogram classes here http://code.google.com/p/econpy/source/browse/trunk/abm/gridworld/gridworld.py to be helpful. fwiw, Alan Isaac --

[Matplotlib-users] Tkinter scripts

2010-01-08 Thread David Arnold
All, Does anyone have some Tkinter scripts using matplotlib they can share? I am just starting to learn Tkinter and I could use some examples. David Arnold College of the Redwoods Department of Mathematics -- This SF.Net

Re: [Matplotlib-users] move annotation

2010-01-08 Thread Charles Roduit
Simply beautiful ! Thank's a lot, it's exactly what I wanted. Le vendredi 08 janvier 2010 à 13:08 -0500, Jae-Joon Lee a écrit : > this_annotation.xytext = (event.x, event.y) -- This SF.Net email is sponsored by the Veri

Re: [Matplotlib-users] [matplotib-users] missing legend-entry using twinx()

2010-01-08 Thread Jae-Joon Lee
This is because "legend" creates a legend only in the current axes. Note that "twinx" creates a separate axes. You need to manually specify which plot items to show in the legend. http://matplotlib.sourceforge.net/users/legend_guide.html Or, you may use axes_grid.parasite_axes which does this jo

Re: [Matplotlib-users] Bug in demo_parasite_axes2 example?

2010-01-08 Thread Jae-Joon Lee
What version of matplotlib are you using? This may be the bug that already have been fixed. Neither with the maintenance branch nor the current svn reproduce this problem, as can be easily seen from the gallery http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html -JJ On

Re: [Matplotlib-users] Proper display of histograms with fixed bar widths

2010-01-08 Thread Jae-Joon Lee
On Wed, Jan 6, 2010 at 5:50 AM, Gergely Ungvary wrote: > I guess I'm not > the only one plotting statistical data with manually specified bins. Yes, and mpl works fine with manually specified bins. On the other hand, I don't see why you want to change the widths of the bar. As far as I can see, t

Re: [Matplotlib-users] move annotation

2010-01-08 Thread Jae-Joon Lee
I think the current method names of Annotation class (originally from the Text class) is a bit confusing. And this needs to be fixed. Anyhow, instead of calling set_position method, you need to set the "xytext" attribute directly. this_annotation.xytext = (event.x, event.y) Regards, -JJ

Re: [Matplotlib-users] need plot advise

2010-01-08 Thread othererik
Mag, Are you looking at time series or just a single value per user? Time series lends itself to a line plot. There are plenty of style options, etc. to highlight each user and the average. If you're looking at a single value per user, a bar chart may be a good choice: http://matplotlib.sourc

[Matplotlib-users] Occlusion with

2010-01-08 Thread Sven Klomp
Hi, I have problems using mpl_toolkits.mplot3d.Axes3D. I plotted two surfaces, one using plot_surface, the other using plot_wireframe. However, no occlusions are handled. One surface is always in front of the other. Sometimes, the surface hides the wireframe, sometimes the other way (see attach

[Matplotlib-users] need plot advise

2010-01-08 Thread Mag Gam
I am new to matplot but I am liking it a lot. I am creating a webpage with Django and I would like to plot a user's usage and average usage. Therefore I am not sure what type of plot is the best type. The data looks like this: user: 13.4 average: 17.5 It would also be nice if I can create a bel

Re: [Matplotlib-users] bar/hist plots, bottom on top or right axis

2010-01-08 Thread Matthias Michler
Hi Renato, I think you have to flip the x-axis of the left plot by for instance ax1 = subplot(121, xlim=(1, 0)) and I think than hist(data, orientation='horizontal') or manually using barh-plots works fine. Kind regards, Matthias On Thursday 07 January 2010 22:12:56 Renato Alves wrote: > What I