[Matplotlib-users] matplotlib 0.98.5.3 windows binaries available

2009-06-14 Thread John Hunter
The windows binaries for the latest matplotlib release are now available for download at https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 for python2.5 and 2.6 (if you need 2.4 please respond here). Sorry for the delay, but we hit a nasty python2.6/libpng/mingw th

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-14 Thread John Hunter
On Fri, Jun 12, 2009 at 6:44 PM, Christoph Gohlke wrote: > Here are the Windows installer and egg produced by "setup.py bdist_wininst" > respectively "setupegg.py bdist_egg": Thanks Christoph -- I've uploaded these to the sf site. After the next trunk release, I may ask you again to provide some

Re: [Matplotlib-users] matplotlib 0.98.5.3 windows binaries available

2009-06-15 Thread John Hunter
On Mon, Jun 15, 2009 at 7:38 AM, CaseyWeb wrote: > I installed this on python 2.6.2 using the windows installer (the .exe) but > it crashes even on something as > simple as importing pylab from the interactive prompt. To make sure it > wasn't a conflict with other packages, I created a clean virt

Re: [Matplotlib-users] change a matplotlib.lines.Line2D and update the plot

2009-06-15 Thread John Hunter
On Mon, Jun 15, 2009 at 9:36 AM, TP wrote: > Hi everybody, > > I want to modify a matplotlib.lines.Line2D and update the plot. > I have used Line2D._y member to modify the line. It works. But by doing > canvas.draw() (see example below), the line is not updated on the plot. To > update it, I have t

Re: [Matplotlib-users] matplotlib 0.98.5.3 windows binaries available

2009-06-15 Thread John Hunter
On Mon, Jun 15, 2009 at 10:12 AM, CaseyWeb wrote: > > I do have wxPython 2.8 installed so I don't know why this would have caused > the problem in the first place, but I changed the matplotlibrc to backend : > TkAgg and I still get the windows crash. Just to be clear, this isn't an > import error

Re: [Matplotlib-users] matplotlib 0.98.5.3 windows binaries available

2009-06-15 Thread John Hunter
On Mon, Jun 15, 2009 at 10:31 AM, Christoph Gohlke wrote: > Hi John, > > I rebuilt the installer and egg and confirmed that the distributed > matplotlibrc file contains "backend: TkAgg". > > > >

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 11:42 AM, Randy Heiland wrote: > Can someone point me to the "best" way to dynamically update a 2D > [image] array (think of cellular automata)? E.g., this simple example > works, but gets sluggish after several iterations: Use im.set_array rather than making multiple call

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haase wrote:> On Tue, Jun 16, 2009 at 6:54 PM, John Hunter wrote: > Is there a similar function (to im.set_array) for graph plots ? for lines you would use line.set_data (or set_ydata, set_xdata). Eg http://matplotlib.sourceforge.net/ex

Re: [Matplotlib-users] Updating tick labels when using animation

2009-06-17 Thread John Hunter
On Wed, Jun 17, 2009 at 5:27 PM, Elan Pavlov wrote: > Hi, > I'm using an animated graph in which most of the time I don't want it > to autoscale (due to speed). Once in a while I want it to change the > limits of the y-axis. In order to do this I use set_ylim and follow by > a canvas.draw(). Howeve

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-17 Thread John Hunter
On Wed, Jun 17, 2009 at 5:31 PM, Alexandar Hansen wrote: > Hello, > > I've been having fun using hexbin, but I'd like to have consistent bin sizes > and plot ranges for different sets of data. What I'm finding is that the bin > sizes are primarily determined by the input data mins and maxes. For >

Re: [Matplotlib-users] Reminder to vote in the SF Community Choice awards

2009-06-24 Thread John Hunter
On Tue, Jun 23, 2009 at 8:59 AM, Kaushik Ghose wrote: > Matplotlib made it past the nomination stage and is one of the finalists in > the > 'best project for academia' category. Don't forget to register your vote! > > http://sourceforge.net/community/cca09/vote/ Thanks Gaushik -- I also put a lin

Re: [Matplotlib-users] Missing files on the web documentation

2009-06-27 Thread John Hunter
On Sat, Jun 27, 2009 at 1:44 AM, LB wrote: > I thing there should be some links on the web pages to download theses > files. > At least, it should be said in the docstring where to find them, don't you > think ? It would be a good idea -- but for now you can grab the source distribution *.tar.gz

Re: [Matplotlib-users] [matplotlib-devel] crazy ideas for MPL

2009-07-02 Thread John Hunter
On Thu, Jul 2, 2009 at 1:00 PM, Pierre GM wrote: > Eh, can I play ? > * Something I'd really like to see is a way to access a given patch/ > line/collection/... by a string (a name) instead of having to find the > corresponding element in a list. That would mean converting lists into > dictionaries

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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

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] Interactive with the plot, moving marker, etc

2009-07-15 Thread John Hunter
On Tue, Jul 14, 2009 at 12:48 PM, Northenlight wrote: > > Hi, > > Is there a way to interactive with the plot? For example, draw a vertical > marker on the plot, let user move the marker and shows x, y values of the > point where the curve intersect with the marker? See these examples and tutoria

Re: [Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-17 Thread John Hunter
On Fri, Jul 17, 2009 at 7:02 PM, John [H2O] wrote: > > I have a script looping through and plotting 100's of figures. It runs fine, > but after the first few plots, the loop considerably slows down and the > memory usage keeps going up. > > The script is quite complicated, so can't really paste it

Re: [Matplotlib-users] plotting years and months

2009-07-19 Thread John Hunter
On Sun, Jul 19, 2009 at 7:03 AM, willemmerson wrote: > > This is such a noob question but I can't seem to find the answer anywhere. I > have a certain amount of something per month which I want to display on the > y axis, I want the x axis to show years and months, i.e. it runs from 2003 > to 2009.

Re: [Matplotlib-users] possible bug with linestyle='steps'

2009-07-19 Thread John Hunter
On Fri, Jul 17, 2009 at 5:15 PM, Paul Ray wrote: > > > Ryan Krauss-2 wrote: >> >> RTFM: >> >> plot(t,y, drawstyle='steps-post') >> >> > > Actually, 'steps-pre' (which is the default) and 'steps-post' seem to have > swapped definitions. > Here is what the docs say: >    *where*: [ 'pre' | 'post' | '

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-21 Thread John Hunter
On Tue, Jul 21, 2009 at 10:51 AM, Domenico Nappo wrote: > "C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtkagg.py", line > 14, in >   from matplotlib.backends._gtkagg import agg_to_gtk_drawable > ImportError: No module named _gtkagg > > I have the suspect that matplotlib windows suppo

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:04 PM, Ryan May wrote: > On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker > wrote: >> >> Hi folks, >> >> Does anyone know if there is a way to use ipython with the advantages of >> the -pylab option (separate gui thread, etc.), but without the whole >> pylab namespace

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:50 PM, Ryan May wrote: > I'm willing to.  However, I just noticed that with just the pylab_import_all > 0, you get the import numpy as np and import matplotlib.pyplot as plt > automatically. Also, nicely, these don't show up when you type 'whos'.  This > is with ipython 0

Re: [Matplotlib-users] log base 2 plots

2009-07-22 Thread John Hunter
On Tue, Jul 21, 2009 at 3:32 PM, Barnette, Daniel W wrote: > I've written a python gui to matplotlib which allows the user to plot either > cartesian, semi-log, or log-log plots. Log plots can be generated for typical > base values except for base 2. Is this a bug, or is there some reason that >

Re: [Matplotlib-users] bar charts can't handle datetimes with less than a day between datapoints?

2009-07-22 Thread John Hunter
On Tue, Jul 21, 2009 at 8:00 PM, Nick Seow wrote: > Hi, > > I'm worried that I'm doing something stupid, but can't quite spot it. > > testBarCharts() :- X axis in integers. Works fine. > testBarChartsDTMonths() :- X axis in datetimes, 1 month between data > points. Works fine > testBarChartsDTHours

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 10:55 AM, Tony S Yu wrote: > Below is some code to do 1, 2, and 4. > The 3rd issue is a bit more difficult. One approach is to use > Jae-Joon's AxesGrid toolkit; you > may need to be using the latest development version of matplotlib to use the toolkit. > BTW, does anyone kn

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhames wrote: > Thanks everyone. Everything works perfectly. > Only a few things left: > > How to "trim the canvas" of the image generated? It's transparent, but still > have a "padding", if it would be cropped, I can safe almost 200px!. I have > attached a f

Re: [Matplotlib-users] on exit event?

2009-07-28 Thread John Hunter
On Mon, Jul 27, 2009 at 4:39 PM, dek wrote: > > is there an on exit event for the matplotlib gui, such as when a user clicks > the 'x' in the gui window There is not, but it would not be difficult to add. -- Let Crystal R

Re: [Matplotlib-users] Radar / Spider Chars

2009-07-28 Thread John Hunter
On Tue, Jul 28, 2009 at 2:27 PM, Tony S Yu wrote: > I'm always happy to contribute what little I can to matplotlib. However, if > it's going to be an official example, it should be cleaned up a bit (see > attached). Summary of changes. Thanks Tony -- I added this to examples/api/radar_chart.py in

Re: [Matplotlib-users] psd question...

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:39 AM, 3togo wrote: > > mlab.psd and pyplot.psd are different The plotting command pyplot.psd scales the numbers in decibels (the dB in the ylabel in pyplot.psd). mlab.psd just returns the unscaled power. So in your example in subplot(3,1,3), call before plotting

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:01 AM, Art wrote: > I have a scatter plot that requires some time to render. The horizontal axis > is time. Currently, I generate the full scatter plot each time and draw a > axvline to indicate the progress of time, save the file as a png for each > time, and generate a m

Re: [Matplotlib-users] Is there an easy way to change the subplot orders

2009-07-29 Thread John Hunter
On Tue, Jul 28, 2009 at 10:27 PM, Kun Hong wrote: > Hi, > > I am new to matplotlib. Currently I have a need to change the subplot > orders after the subplts have been added to a figure. I haven't found a > way to do it easily. One of my solution is to keep an ordered list of > the subplots and re-a

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 6:50 PM, Art wrote: > My bottleneck now is actually saving the pngs for mencoder to make into an > avi (as with the movie_demo example on your site) using savefig. Do you also > know of an alternative way of generating an avi of the animation? My > animation has about 9000

Re: [Matplotlib-users] matplotlib and no gui

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 7:33 PM, Christian Lerrahn wrote: > Hi, > I'm trying to make a few matplotlib scripts work on a box without any > X. However, I would like to change it as little as possible and > therefore don't want to get rid of the pylab interface. > > I almost got it to work already by

Re: [Matplotlib-users] Building current SVN trunk on Mac OS X 10.5

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 4:34 PM, Uri Laserson wrote: > Hi everyone, > > I am trying to build the latest svn trunk version of MPL on OS X 10.5.  I am > getting the following error: Try make build_osx105 python setup.py install --prefix=~/somewhere If that doesn't work, try cd release/osx

Re: [Matplotlib-users] animation/"live"-plotting + performance

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:25 PM, Antonino Ingargiola wrote: > I have attached another example of blit animation that does NOT > require the svn version of MPL. How did this help with your performance problems? The animation/blit paradigm is great for *some* use cases, eg animating a cross-hair o

Re: [Matplotlib-users] matplotlib and no gui

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 9:05 PM, Christian Lerrahn wrote: >> Why not:: >> >>   import matplotlib >>   matplotlib.use('Agg') >> >> Then you have a full featured mpl backend w/ no GUI or X requirements. > > Thanks for that! I had overlooked that backend. It seems to do the > trick perfectly. :) Gr

[Matplotlib-users] matplotlib-0.99.0-rc1 : call for testing

2009-07-31 Thread John Hunter
We have a test release candidate rc1 of the impending matplotlib-0.99.0 release, including lots of great new stuff like the axes grid and mplot3d toolkits, http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/index.html http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.

Re: [Matplotlib-users] executing function when view interval changes

2009-08-01 Thread John Hunter
On Sat, Aug 1, 2009 at 7:32 PM, Alan G Isaac wrote: > On 8/1/2009 4:07 PM Thomas Robitaille apparently wrote: >> Since matplotlib is about to hit 0.99, > > > Which reminds me, was there a decision on subplot2grid etc? > http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5

Re: [Matplotlib-users] spines versus subplotzero

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 2:14 AM, wrote: > I'm trying to understand some of the changes in 0.99, for example, the > recommended way of getting a plot so that the axes cross at the origin > (i.e., the axes are in the middle of the plot).  I see two examples that > seem to give this: > > http://matplo

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sat, Aug 1, 2009 at 12:05 PM, Mark Rubelmann wrote: > Hi, > > I'm writing a script to plot data being read from a serial connection in > real time.  I'm trying to use an idle_event callback to continually read the > incoming data and plot it.  The problem is that the callback is only getting > i

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:08 AM, John Hunter wrote: > Wriing a GUI neutal idle event handler is not easy -- I've spent some > time on it but crashed and burned on tk -- but my guess is that the > problem you are having in your code is that GTK expects you to return > True is you

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:14 AM, Janwillem wrote: > > The problem: > I have files with time versus signal data of a large series of measurements. > The python application (using wxPython actually) scans the file, applies > some math (numpy/scipy) on each record of data and than must show the signal

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 10:35 AM, John Hunter wrote: > On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: >> Thanks for the reply John.  Not quite the answer I was looking for >> though ;)  I tried your suggestion of returning True but it didn't solve >> the problem

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: > Thanks for the reply John.  Not quite the answer I was looking for > though ;)  I tried your suggestion of returning True but it didn't solve > the problem.  Oh well, not the end of the world.  Being a die-hard KDE user, > I started trying

Re: [Matplotlib-users] Include icon in plot

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 1:28 PM, Jae-Joon Lee wrote: > A snippet of code does not help in general. > Please take your time to create a simple, standalone code that > reproduces your problem and post that code in this mailing list so > that we can easily test. > > Here is the code, based on yours, th

Re: [Matplotlib-users] Include icon in plot

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 6:55 AM, Bas van Leeuwen wrote: > PS, @John, I'd like to try the imshow approach first because it is not > in a figure but in a QT frame containing several subplots. But thank > youfor the suggestion, I will try if the imshow approach appears > fruitless. All matplotlib axe

Re: [Matplotlib-users] A couple of new gallery examples?

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 11:37 AM, Josh Hemann wrote: > > I am submitting two possible gallery additions for bar charts and boxplots. > The existing examples are good, but being relatively new to matplotlib I had > to learn quite a bit to enhance these charts to fit my needs. Learning is > good of co

Re: [Matplotlib-users] Windows 64 bit support for matplotlib?

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 2:24 PM, Clem Wang wrote: > However, that is not true because Python 2.6 (64 bit) is in fact installed. > > I believe the actual problem is due to the fact I'm trying to install the 32 > bit library and there is no 64 bit library version of matplotlib. Could you please test

Re: [Matplotlib-users] Resolution of eps files

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 4:22 AM, Maxim Khazimullin wrote: > Is it normal for eps files (when files with different dpi have the same > sizes), or something wrong with matplotlib? PS is a vector drawing backend, so the concept of "dots per inch" does not apply, unless you are explictly including a

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwer wrote: > Using the latest SVN matplotlib, the TkAgg backed does not get built > even though all the libraries are installed (Linux 64-bit). The > following error message occurs during the build: > > Tkinter: no >         * Using default library and incl

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwer wrote: > Using the latest SVN matplotlib, the TkAgg backed does not get built > even though all the libraries are installed (Linux 64-bit). The > following error message occurs during the build: > > Tkinter: no >         * Using default library and incl

Re: [Matplotlib-users] Some questions about text

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 8:16 AM, Pim Schellart wrote: > 1. option to force display of the full number on each tick (with the > option to display the numbers at an angle to prevent overlapping). This is controlled by the "set_scientific" method of the ScalarFormatter http://matplotlib.sourcefor

Re: [Matplotlib-users] build problems with TkAgg backend

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 9:14 AM, Johann Rohwer wrote: > Type "help", "copyright", "credits" or "license" for more information. import Tkinter a=Tkinter.tkinter.create() > > which creates a tk window on my desktop. > > So really in the dark what's going on here Very odd. I suggest op

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread John Hunter
On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Sever wrote: > Hello, > > I was wondering if it is possible to hide some data on figures using a say > right click option to any of the legend entry and make it temporarily > hidden/visible to better analyse the rest of the data? > > Check this screenshot for

Re: [Matplotlib-users] matplotlib-0.99.0-rc1 : call for testing

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 5:55 AM, Michiel de Hoon wrote: > > I am seeing the following error with the GTKCairo and GTKAgg backends: > figure() > Traceback (most recent call last): >  File > "/usr/local/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 249, in enter_

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-05 Thread John Hunter
2009/8/5 Michael Droettboom : > I don't think this is related to Qt at all, but is illustrating some > sort of bug in the font lookup code. > > Can you try removing fontList.cache and trying again?  I *believe* it > lives in "C:\Documents and Settings\${YOURNAME}\Local > Settings\.matplotlib" on Wi

Re: [Matplotlib-users] Re peated calls to Specgram for animation, memory leaking

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 8:08 AM, Michael Droettboom wrote: > Images added to an axes get added to the axes' "images" member, so you can > simply remove it from there. It may be more efficient to call im.set_array(newdata) rather than creating a new image each time. Eg http://matplotlib.sourceforg

Re: [Matplotlib-users] hexbin density plots in matplotlib?

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 10:25 AM, Ryan May wrote: >> is there a way to do this in matplotlib? thanks for your help. > > Not to be rude, but is there any reason you didn't look for pyplot.hexbin > before sending the email? :) Continuing in the non-rude vein :-) See these examples:: http://matplo

Re: [Matplotlib-users] plotting lines with shaded / transparent region for standard deviation

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 9:40 AM, per freem wrote: > hi all, > > is there a way in matplotlib to plot lines with errorbars, e.g. using > errorbar(...) but instead of lines just have shaded, partly transparent > regions that represent the error bars? people often use this to show > confidence interval

[Matplotlib-users] ANN: matplotlib 0.99.0

2009-08-06 Thread John Hunter
The 0.99.0 release of matplotlib is available for download. Lots of great new features and tons of bug fixes. Thanks to all the mpl developers for their contributions, and to Christoph Gohlke for the win32 builds, Russell Owen for the OSX testing and bug reports, William Stein for hosting the OSX

Re: [Matplotlib-users] No legend using scatter function

2009-08-06 Thread John Hunter
On Thu, Aug 6, 2009 at 11:47 AM, Jae-Joon Lee wrote: > This turned out to be a bug introduced recently, which is now fixed in > the 0.99 maintenance branch. > The fix is not merged into the head yet. I tried svnmerge.py but it > gave some merge conflict. While the conflict seems rather trivial, > I

Re: [Matplotlib-users] Wrong download link for MPL 0.99?

2009-08-06 Thread John Hunter
On Thu, Aug 6, 2009 at 6:30 PM, Zane Selvans wrote: > For some reason the download link on the Matplotlib pages is pointing to > Basemap 0.99.4 instead of Matplotlib 0.99.0. Jeff, I don't know if this is a limitation in the new sf file manager interface or what, but it appears only 1 file project-

Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-07 Thread John Hunter
On Thu, Aug 6, 2009 at 8:48 PM, Patrick Rynhart wrote: > Dear all, > > We are using Python 2.5, matplotlib and NumPy on Windows to assist > with the teaching for an undergraduate paper.  On a small number of > installations, an error attempting to load some required DLL's is > being reported (on ap

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread John Hunter
On Thu, Aug 6, 2009 at 9:28 PM, sasha wrote: > > Hi All, > > i'm tring to install matplotlib (svn) on a fesh mac osc installation > using the system python 2.5.1. > > but i have problems with freetype :-/ No, you have troubles with libpng -- check the first instance of "error" in your gcc output:

Re: [Matplotlib-users] pyplot should have a adjust_axes() function similar to adjust_subplots() (or not?)

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 4:31 AM, Pim Schellart wrote: > Hi Everybody, > > Before I file a bug report / feature request I would like your input. > I have large numbers displayed slanted for the axis tick labels. > This causes the tick labels as well as the xlabel to fall of the figure. > I know I can

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 4:10 AM, Bernd Eggink wrote: > being a complete newbie, I tried to run the simple_plot example from the > website with matplotlib-0.99.0. However, I get the error message: > "/usr/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 443, in __init__ >    

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 7:47 AM, Bernd Eggink wrote: >> Christoph, is GTKAgg the default backend in the win32 installers?  It >> should be TkAgg.  Are you creating a setp.cfg when you build your >> installer, as described at Reminder to self: do not post before morning coffee. For some reason I t

Re: [Matplotlib-users] Histogram example doesn't run

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 10:34 AM, John Hunter wrote: > Unfortunately, the exception glib.GError is gtk version dependent so I > can't easily catch it.  I am loathe to do a blanket except catch, but > I am not sure what the alternative is here. I committed a change to the release bra

Re: [Matplotlib-users] animate histogram

2009-08-08 Thread John Hunter
On Sat, Aug 8, 2009 at 6:17 AM, Kaushik Ghose wrote: > (http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.patches.Rectangle) > e.g. set_height() to change the rectangles? > > e.g. code > -- > import pylab > x = pylab.rand(20) > h = pylab.hist(x) > h[2][0]

Re: [Matplotlib-users] animate histogram

2009-08-08 Thread John Hunter
On Sat, Aug 8, 2009 at 9:00 AM, John Hunter wrote: > """ > This example shows how to use a path patch to draw a bunch of > rectangles for an animated histogram > """ Oops, in my last post I have the timer logic wrong because the call is non-blocki

Re: [Matplotlib-users] axes_grid examples

2009-08-10 Thread John Hunter
On Mon, Aug 10, 2009 at 5:05 AM, Gary Ruben wrote: > Many of the axes_grid examples in the thumbnail gallery don't work out > of the box with the latest matplotlib 0.99 because they rely on > demo_image and demo_axes_divider modules. Should these have been > packaged with 0.99 or were they left out

Re: [Matplotlib-users] plotting separated axes

2009-08-10 Thread John Hunter
On Sun, Aug 9, 2009 at 11:53 PM, per freem wrote: > is there a way to plot separated axes in matplotlib? i.e. plots where > the origin (0,0) has no meaning, either because the data on the x axes > is categorical (e.g. you are plotting a histograms for three > categories) or for other reasons. an ex

Re: [Matplotlib-users] axes_grid examples

2009-08-10 Thread John Hunter
On Mon, Aug 10, 2009 at 10:23 AM, Jae-Joon Lee wrote: > John, > > I changed the axes_grid examples to use get_sample_data and committed > them to the svn yesterday. > However, these examples won't work unless the user uses mpl from the > svn (I don't think get_sample_data is in 0.99 maint). > But,

Re: [Matplotlib-users] pylab

2009-08-11 Thread John Hunter
On Tue, Aug 11, 2009 at 12:28 PM, John [H2O] wrote: > > Just an thought regarding the whole PyLab concept... If you would like to frame this as a FAQ "Should I import * from pylab?" and post it as a rest svn diff against doc/faq/howto_faq.rst, I would be happy to include this on the website http:

Re: [Matplotlib-users] building matplotlib from source in Linux

2009-08-11 Thread John Hunter
On Mon, Aug 10, 2009 at 1:09 PM, James Battat wrote: > I'm installing matplotlib from source on a linux machine (system > details below).  The module builds and installs without error.  I can > import pylab successfully from an interactive python prompt.  When I > plot data, however, pylab.show() b

Re: [Matplotlib-users] Graph title trepassing bounds

2009-08-11 Thread John Hunter
On Tue, Aug 11, 2009 at 2:21 PM, Gewton Jhames wrote: > Hello everyone, > my graph's title is been greater than the size of the graph. > There's a way to get the width of the graph's title so I can increase the > width of the graph based on it? There probably is a way, but it might be easier to us

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread John Hunter
On Tue, Aug 18, 2009 at 12:53 PM, Alan G Isaac wrote: > OK, I mostly understand John's example and have > adapted it in the attached Histogram class, for > whoever might care.  (The file is a working > example.) Thanks! > > Here are my remaining questions. > > 1. To get a new histogram, I just chan

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2009-08-19 Thread John Hunter
On Thu, Aug 13, 2009 at 12:51 PM, Erik Schweller wrote: > Good day, > > I've hit an issue that may be a bug.  In a previous version of > matplotlib (.98.x) I had a picker set for lines plotted on two axes. > This was working until I upgraded to version 0.99.0.   Now the first > axes's pick events n

Re: [Matplotlib-users] Plotting on an "open box" with matplotlib?

2009-08-19 Thread John Hunter
On Thu, Aug 13, 2009 at 12:59 PM, Eric Ayars wrote: > Hello, > > I've been using Gnuplot for years, but am quite impressed with what I > see in matplotlib and am in the process of learning enough to switch. > One item that I haven't been able to figure out yet is how to plot on > an "open box". > >

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread John Hunter
On Tue, Aug 18, 2009 at 3:55 AM, M. Hecht wrote: > The first figure is drawn without problems but after closing it (by clicking > the cross in the upper > right corner of the window) the second figure cannot be plot anymore. What I > wanted to do was > to visualize all selected files of a directory

  1   2   3   4   5   6   7   8   9   10   >