Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe

2009-07-11 Thread Christoph Gohlke
There are no obvious problems with the toolbar icons on my system (Python 2.6.2 32-bit, PyGTK 2.12, PyCairo 1.4.12, GTK 2.12.11, Vista 64-bit). Christoph On 07/11/2009 20:21, John Hunter wrote: > On Sat, Jul 11, 2009 at 6:54 PM, Christoph Gohlke wrote: >> Index: lib/matplotlib/backends/backend

Re: [Matplotlib-users] Backend Comparison

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 7:31 PM, Brian Lewis wrote: > Does there exist any big-picture comparisons of the provided backends?  For > example, it would be nice to know what features each backend has or lacks. > It would also be nice to which backends were generally faster...and which > were recommend

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 6:54 PM, Christoph Gohlke wrote: > > Index: lib/matplotlib/backends/backend_gtk.py > === > --- lib/matplotlib/backends/backend_gtk.py      (revision 7257) > +++ lib/matplotlib/backends/backend_gtk.py      (worki

[Matplotlib-users] Backend Comparison

2009-07-11 Thread Brian Lewis
Does there exist any big-picture comparisons of the provided backends? For example, it would be nice to know what features each backend has or lacks. It would also be nice to which backends were generally faster...and which were recommended (WX or WXAgg). --

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe

2009-07-11 Thread Christoph Gohlke
Index: lib/matplotlib/backends/backend_gtk.py === --- lib/matplotlib/backends/backend_gtk.py (revision 7257) +++ lib/matplotlib/backends/backend_gtk.py (working copy) @@ -1148,7 +1148,7 @@ # versions of pygtk, so we have t

Re: [Matplotlib-users] Cannot build matplot on OS X: libfreetype.dylib and libiconv.2.dylib are not of the right architecture

2009-07-11 Thread Michael Lerner
On Sat, Jul 11, 2009 at 9:05 AM, John Hunter wrote: > > It looks like there is an incompatibility with the freetype supplied > in /sw (probably fink supplied). Perhaps it is not configured as a > universal binary. > > You can build mpl from svn the way we do when we make a release, which > will

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread Johann Cohen-Tanugi
thanks a lot! Johann John Hunter wrote: > On Sat, Jul 11, 2009 at 1:15 PM, Eric Firing wrote: > >> John Hunter wrote: >> >>> On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi >>> wrote: >>> Hello, how can I center axis tick labels, so that the labels ends up at the cente

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 1:15 PM, Eric Firing wrote: > John Hunter wrote: >> >> On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi >> wrote: >>> >>> Hello, how can I center axis tick labels, so that the labels ends up at >>> the center between 2 ticks. >>> >> >> There is no support for this, though

Re: [Matplotlib-users] problems with numpoints in legend

2009-07-11 Thread Oliver Tomic
Jae-Joon and John, thank you for your help. Just a few minutes before I read your emails I found a thread in the archives (from a few months back) where Jae-Joon anwered exactly the same question. http://www.nabble.com/legend-bug--td22466216.html#a22466216 Sorry, that I overlooked that last

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread Eric Firing
John Hunter wrote: > On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi > wrote: >> Hello, how can I center axis tick labels, so that the labels ends up at >> the center between 2 ticks. >> > > There is no support for this, though you can left or right align a > label with a single tick:: > >

Re: [Matplotlib-users] half-filled markers

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 9:55 AM, Eli Brosh wrote: > Thanks John, > A kwarg fillstyle with options 'full|top|bottom|left|right' for any marker > is certainly better than what i have done. > I just did not have an idea how to program this kwarg. > Further, I can't see an easy way of generalizing the

Re: [Matplotlib-users] legend outside axes

2009-07-11 Thread Eli Brosh
My version is 0.98.3 This is what comes with ubuntu intrepid. I will try to upgrade from svn. Eli On Sat, Jul 11, 2009 at 4:15 PM, John Hunter wrote: > On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh wrote: > > Hello, > > I encountered a problem when trying to draw a legend outside the axes. > > For

Re: [Matplotlib-users] half-filled markers

2009-07-11 Thread Eli Brosh
Thanks John, A kwarg fillstyle with options 'full|top|bottom|left|right' for any marker is certainly better than what i have done. I just did not have an idea how to program this kwarg. Further, I can't see an easy way of generalizing the half-filling of markers. is there a better way than just pro

Re: [Matplotlib-users] problems with numpoints in legend

2009-07-11 Thread Jae-Joon Lee
The number of points in scatter plot has other keyword argument (scatterpoints). This is true for svn version, but I'm not quite sure if it is also true for 0.98.5.2. Anyhow, the documentation still needs to be updated. Regards, -JJ On Sat, Jul 11, 2009 at 9:46 AM, John Hunter wrote: > On Mon,

Re: [Matplotlib-users] problems with numpoints in legend

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 6:06 AM, Oliver Tomic wrote: > Hi, > > Windows XP > Python 2.5.2 > matplotlib 0.98.5.2 > > I try to use numpoints for a legend my plot, but without luck. I always end > up having three points in the legend despite setting numpoints=1 (see below > towards the end of the code).

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke wrote: > Hi Steve, > > matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. > > If you don't mind trying, I have a build of the matplotlib trunk > available on my homepage that has GTK support enabled: > > http://www.lfd.uci.edu/

Re: [Matplotlib-users] Weighted histograms

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 5:45 PM, Michael Cohen wrote: > Hi all, > I am trying to produce a weighted histogram. > The help text for "hist" here: > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.hist > has a mention of adding weights, but it is not noted in the command line >

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread John Hunter
On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugi wrote: > Hello, how can I center axis tick labels, so that the labels ends up at > the center between 2 ticks. > There is no support for this, though you can left or right align a label with a single tick:: for label in ax.xaxis.get_xticklabel

Re: [Matplotlib-users] 3D Bar (histogram) question

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 1:26 PM, Nicolas Bigaouette wrote: > Hi, > > I compiled matplotlib svn revision 7246 yesterday to try the 3D stuff. > > From mpl's website, an example for 3D bar plotting is shown[1]. I just don't > understand the axes. From the code, shouldn't X values go from 0 to 20, > ins

Re: [Matplotlib-users] Add units to plots?

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 4:06 PM, Joseph Smidt wrote: > I have several plots where the scientific notation exponential > overflows to the top of the plot like this: > http://matplotlib.sourceforge.net/examples/pylab_examples/plotfile_demo.html. > > Is there any way to add units to this?  So that, if

Re: [Matplotlib-users] Tkinter problems

2009-07-11 Thread John Hunter
2009/2/23 Gregor Skrt : >   1.   Where can I find a good tutorial or set of examples for >      embeding  matplotlib in Tkinter ? >   2. Problem: I created a simple test with Tkinter. First I plot my >      graph on __init__ (it works ok). Then I want to clear graph and >      plot on the same canv

Re: [Matplotlib-users] half-filled markers

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 3:43 AM, Eli Brosh wrote: > Hello, > A few weeks earlier I was asking whether it is possible to plot half-filled > markers in matplotlib. > As I got no answers I tried to do it myself. > There are several ways to do it. For example, I considered following the > example in >

Re: [Matplotlib-users] Problem plotting with matplotlib on ActivePython

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 9:53 AM, Voichek wrote: > > Hi everyone, > > I just installed matplotlib (after suffering from Numpy, Scipy, Atlas, > Lapack...), and I have this weird problem. > > When I plot the first time I have no problem, the plot comes out just fine > and the plot window is interactive

Re: [Matplotlib-users] title when using subplot

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 10:35 AM, jcm52 wrote: > > Perhaps this is a new feature since you sent this request, but I just came > across > > pylab.suptitle('my super title') > > Seems to work fairly well, but the font sizes don't appear to behave as well > as I'd like. Just pass in the fontsize kwarg

Re: [Matplotlib-users] Render image to string

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 6:41 PM, Doug Penner wrote: > so instead of doing > >    plt.savefig("some/location.png") > >    return HttpResponse(" />") > > I could do > >    return HttpResponse(plt.image_render('image/png'), mimetype="image/png") > > and not have to worry about deleting the image later

Re: [Matplotlib-users] legend outside axes

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 6:06 AM, Eli Brosh wrote: > Hello, > I encountered a problem when trying to draw a legend outside the axes. > For some reason, when the legend is placed outside the axes, the markers are > not drawn near the labels. > > I attach two scripts and two corresponding figures. > t

Re: [Matplotlib-users] automated labelling in the plot

2009-07-11 Thread John Hunter
On Fri, Jul 10, 2009 at 5:46 AM, Pau wrote: > Hello, > > are there some relative/absolute limits in the plotting area? > > I would like to set some text (labels) in the plot automatically, so > that I do not need to recalculate everytime where they should go. > > I mean some kind of absolute X0, Y0

Re: [Matplotlib-users] Cannot build matplot on OS X: libfreetype.dylib and libiconv.2.dylib are not of the right architecture

2009-07-11 Thread John Hunter
On Thu, Jul 9, 2009 at 4:13 PM, W.P. McNeill wrote: > I am trying to install matplot on an OS X (10.5.7) Intel MacBook.  I > cannot build the matplot lib extensions.  I get the following error: > > > g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk > -bundle -undefined dynami

Re: [Matplotlib-users] Remove box around legend?

2009-07-11 Thread John Hunter
On Thu, Jul 9, 2009 at 5:56 PM, Joseph Smidt wrote: > Thank you!  That did it.  I thought I read the webpage you sent 10 > times, but didn't even notice.  Thanks. > > On Thu, Jul 9, 2009 at 3:38 PM, Chaitanya Krishna wrote: >> Hi, >> >> legend.draw_frame(False) should do the trick. Check out >> htt

Re: [Matplotlib-users] Pluggable Backends

2009-07-11 Thread John Hunter
On Wed, Jul 8, 2009 at 3:49 PM, T J wrote: > Are matplotlib backends pluggable?  That is, can package X provide an > experimental backend and tell matplotlib to use it?  If so, how? Yes, just point to your backend with the syntax: matplotlibrc:: backend : module://mybackend where mybackend is

Re: [Matplotlib-users] : ( Problem With atplotlib.pyplot.plotfile : IndexError: list index out of range

2009-07-11 Thread John Hunter
2009/7/5 s.s C : > when i ploted column data from an ASCII space delimited file : > > import matplotlib.pyplot as plt > plt.plotfile('data.txt',cols=(0,1), delimiter=' ') Works fine for me -- perhaps you can attach your file rather than paste your data and let us know your platform details. Could

Re: [Matplotlib-users] a tiny addition to acorr

2009-07-11 Thread John Hunter
On Fri, Jul 10, 2009 at 3:09 PM, Michael Lerner wrote: > Hi, > > I was looking at the autocorrelation of a time series recently and it was > useful to scale the x-axis (i.e. multiply lags by the timestep of my actual > data). It's a trivial change, but it might be useful for others. Here's a > stan

[Matplotlib-users] Fast plotting of many data points in Python?

2009-07-11 Thread Daniel Platz
Hi, I am programming a oscilloscope module in Python. For this reason, I want to plot very many data points as fast as possible. This can be more than 100 000 at once. So far I have been using the ploting module of wxPython. However, it becomes unstable for more than 25000 points. Can someone reco

Re: [Matplotlib-users] Tkinter problems

2009-07-11 Thread dspmathguru
Hi, Please change plotnew to: def plotnew(self): #self.f.clf()# clear the figure self.t=arange(0.0,5.0,0.05) self.s1=sin(2*pi*self.t) self.s2=self.s1*-1 self.a.plot(self.t,self.s1,self.t,self.s2)

[Matplotlib-users] Problem plotting with matplotlib on ActivePython

2009-07-11 Thread Voichek
Hi everyone, I just installed matplotlib (after suffering from Numpy, Scipy, Atlas, Lapack...), and I have this weird problem. When I plot the first time I have no problem, the plot comes out just fine and the plot window is interactive. After I close the plotting window and try to plot again I

[Matplotlib-users] : ( Problem With atplotlib.pyplot.plotfile : IndexError: list index out of range

2009-07-11 Thread s.s C
when i ploted column data from an ASCII space delimited file : import matplotlib.pyplot as plt plt.plotfile('data.txt',cols=(0,1), delimiter=' ') the shell throwed this message: Traceback (most recent call last): File "E:\python\PyCode\mycod\plot.py", line 3, in plt.plotfile('data.txt',c

Re: [Matplotlib-users] title when using subplot

2009-07-11 Thread jcm52
Perhaps this is a new feature since you sent this request, but I just came across pylab.suptitle('my super title') Seems to work fairly well, but the font sizes don't appear to behave as well as I'd like. Tommy Grav wrote: > > I have a plot that is divided into four subplots. > > pylab.figu

[Matplotlib-users] : ( Problem With atplotlib.pyplot.plotfile : IndexError: list index out of range

2009-07-11 Thread s.s C
when i ploted column data from an ASCII space delimited file : import matplotlib.pyplot as plt plt.plotfile('data.txt',cols=(0,1), delimiter=' ') the shell throwed this message: Traceback (most recent call last): File "E:\python\PyCode\mycod\plot.py", line 3, in plt.plotfile('data.txt',c

[Matplotlib-users] Render image to string

2009-07-11 Thread Doug Penner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am using matplotlib in a django application and would like to render a graph and return it directly. Currently I have plt.savefig("some/location.png") working. But since the images I will be generating are only EVER needed once, I would like t

Re: [Matplotlib-users] current svn fails to build on mac

2009-07-11 Thread Robin
On Sat, Jul 11, 2009 at 4:43 AM, Michiel de Hoon wrote: > > The /usr/X11R6/lib is included because it is listed in setupext.py under > basedir['darwin']. Could you try and remove /usr/X11R6/lib from > basedir['darwin'] in setupext.py to see if everything still compiles and > links (both the Mac