Re: [Matplotlib-users] Cocoa Backend on Snow Leopard

2009-09-22 Thread John Hunter
On Tue, Sep 22, 2009 at 1:53 PM, Pierre GM pgmdevl...@gmail.com wrote: On Sep 19, 2009, at 12:55 PM, Pierre GM wrote: All, I'm trying to use the Cocoa backend on Snow Leopard, using r7791 (GCC 4.2.1 / Python 2.6.1 from Apple, 64b) Unfortunately, a simple `plot(range(10),range(10))` gives me

Re: [Matplotlib-users] imshow smoothing

2009-09-22 Thread John Hunter
On Tue, Sep 22, 2009 at 3:45 PM, Michael Hearne mhea...@usgs.gov wrote: Great! You may also want to take a look at the brand-spanking-new image tutorial, which covers this http://matplotlib.sourceforge.net/users/image_tutorial.html JDH

Re: [Matplotlib-users] axes3d material in matplotlib-0.99.0.win32-py2.5 missing?

2009-09-18 Thread John Hunter
On Thu, Sep 17, 2009 at 8:34 PM, Reckoner recko...@gmail.com wrote: thanks. does this mean that http://www.scipy.org/Cookbook/Matplotlib/mplot3D is out of date? Yes, it needs to be updated -- best would just be to remove the contents there and point to the mplot3d on the mpl website. Can

Re: [Matplotlib-users] does mpl.canvas has a flag needsdrawing?

2009-09-18 Thread John Hunter
On Fri, Sep 18, 2009 at 4:39 AM, Werner F. Bruhin werner.bru...@free.fr wrote: I have multiple canvas and sometimes one or more might have nothing to draw (no data). Currently I just call. canvas.draw() canvas.Refresh() for each of the canvas, but this gives me an error if there is no

Re: [Matplotlib-users] violin plots

2009-09-18 Thread John Hunter
On Thu, Sep 17, 2009 at 11:28 PM, Andrew Straw straw...@astraw.com wrote: Flávio Coelho has implemented Violin plots for MPL. Nice! He has a question regarding its suitability for inclusion due to a dependency on scipy for the gaussian_kde function.

Re: [Matplotlib-users] does mpl.canvas has a flag needsdrawing?

2009-09-18 Thread John Hunter
We want a complete, free standing example that exposes the bug, with any additional info like mpl backend and version number. On Sep 18, 2009, at 7:43 AM, Werner F. Bruhin werner.bru...@free.fr wrote: John, John Hunter wrote: On Fri, Sep 18, 2009 at 4:39 AM, Werner F. Bruhin werner.bru

Re: [Matplotlib-users] does mpl.canvas has a flag needsdrawing?

2009-09-18 Thread John Hunter
On Fri, Sep 18, 2009 at 8:15 AM, Werner F. Bruhin werner.bru...@free.fr wrote: John Hunter wrote: We want a complete, free standing example that exposes the bug, with any additional info like mpl backend and version number. Thanks -- when posting a bug, please consider taking the time to make

Re: [Matplotlib-users] saving an axes to draw in a different figure

2009-09-18 Thread John Hunter
On Fri, Sep 18, 2009 at 11:44 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote: I don't think your approach will work in general. When you move an axes from one figure to the other, you have to update the transform attributes of all the artists, which, I think, could be tricky to do for general

Re: [Matplotlib-users] [xpyx] Re: axes3d material in matplotlib-0.99.0.win32-py2.5 missing?

2009-09-18 Thread John Hunter
On Fri, Sep 18, 2009 at 4:00 PM, Philip Austin paus...@eos.ubc.ca wrote: Reckoner wrote: if you're asking me, I don't have write access to this website. See http://www.scipy.org/UserPreferences to create a wiki account -- best, Phil I was asking you -- let me know if you are unable to do it

Re: [Matplotlib-users] make.osx file

2009-09-17 Thread John Hunter
On Wed, Sep 16, 2009 at 5:07 PM, Thomas Robitaille thomas.robitai...@gmail.com wrote: Hello, The make.osx file is now required (or at least recommended) to build matplotlib on MacOS X, but the file is absent from the 0.9.1 RC1 tarfile. Is this an oversight, or is it deliberate? This is

Re: [Matplotlib-users] Issues with PNG creation

2009-09-17 Thread John Hunter
On Thu, Sep 17, 2009 at 1:54 PM, Benjamin Welton benjamin.r.wel...@wmich.edu wrote: Hello All,    Iv run into a strange issue involving outputting a graph to a png format. Anytime i try to output a png file the python interpreter crashes.  However when using other formats (such as pdf or svg)

Re: [Matplotlib-users] axes3d material in matplotlib-0.99.0.win32-py2.5 missing?

2009-09-17 Thread John Hunter
On Thu, Sep 17, 2009 at 6:46 PM, Reckoner recko...@gmail.com wrote: unless I'm misunderstanding something, the website says that matplotlib-0.99.0.win32-py2.5 should contain the axes3d material. It doesn't. Instead, it axes3d.py contains the following: raise NotImplementedError('axes3d is

[Matplotlib-users] matplotlib 0.99.1rc1 available for testing

2009-09-14 Thread John Hunter
We are preparing a bugfix release of the 0.99 branch, and a release candidate 0.99.1rc1 is available for testing. http://drop.io/xortel1# Please post any problems you find on the bug tracker http://sourceforge.net/tracker/?group_id=80706atid=560720 and any patches on the patches tracker.

Re: [Matplotlib-users] download

2009-09-03 Thread John Hunter
On Thu, Sep 3, 2009 at 8:04 PM, Alan G Isaacalan.is...@gmail.com wrote: The default download from the Matplotlib page link to http://sourceforge.net/projects/matplotlib/ which once again highlights basemap.  (I think this was fixed at one point.) I'm not seeng this, nor am I seeing basemap

Re: [Matplotlib-users] preserving transparency in eps

2009-08-31 Thread John Hunter
On Mon, Aug 31, 2009 at 1:04 PM, Chuck Pepe-Ranneycpep...@mines.edu wrote: Does anybody have a good method for preserving quality and transparancy of eps images when going from matplotlib to latex to pdf?  I can only preserve the transparency if I save as png and then convert to eps but then I

Re: [Matplotlib-users] how do i get rid of the whitespace around this plot?

2009-08-28 Thread John Hunter
On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the Demolishordestrooo...@gmail.com wrote: This is the result from a call to pyplot.pcolor() -- why do the axes automatically expand beyond the range of the data? And how can I set them back? I am not seeing an obvious keyword argument in the pcolor

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

2009-08-25 Thread John Hunter
On Tue, Aug 25, 2009 at 4:59 PM, Patrick Rynhartprynh...@gmail.com wrote: Thanks again for your help.  Do you think that testing for the version of the Visual C redistributable is required during an install of matplotlib (and/or possibly at runtime). This shouldn't be an issue with recent

Re: [Matplotlib-users] how do colormaps work?

2009-08-23 Thread John Hunter
On Sun, Aug 23, 2009 at 1:24 PM, Eric Firingefir...@hawaii.edu wrote: Dr. Phillip M. Feldman wrote: I've been trying to understand how colormaps work.  I've been through the Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the section on colormaps has not yet been written.

Re: [Matplotlib-users] help needed in plotting curved elements

2009-08-23 Thread John Hunter
On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov wrote: This is a Bezier spline -- it can not exactly form a piece of a circle (though it can get pretty close). You can probably find the math somewhere for how to approximate a circle, but... somewhere like ...

Re: [Matplotlib-users] Newbie problem using csv2rec

2009-08-21 Thread John Hunter
On Fri, Aug 21, 2009 at 11:27 AM, Phil Robareverisimilid...@gmail.com wrote: I have a (newbie) problem using csv2rec.  I am a regular python user but this is my first time using matplotlib and numpy after being inspired by attending a talk by Dr. John Hunter. I am trying to read a csv file

Re: [Matplotlib-users] introductory backends

2009-08-21 Thread John Hunter
On Fri, Aug 21, 2009 at 6:44 PM, Michael Cohenmco...@caltech.edu wrote: Hi all, At the Scipy2009 conference I was recently told I could get better performance from matplotlib through an ssh tunnel by using a different backend.  However, I can't find any introductory material on this, just

Re: [Matplotlib-users] mac os backend not building

2009-08-20 Thread John Hunter
On Thu, Aug 20, 2009 at 9:56 AM, George Nursergnur...@googlemail.com wrote: Michiel, I'm on Mac OS X 10.5. My version of Python is 2.5.2, also from python.org. Presumably the new matplotlib does compile with 2.6.2 on 10.5? It does -- I compiled the mpl OSX binaries using python 2.6.2 (from

Re: [Matplotlib-users] TikZ/PGF backend

2009-08-20 Thread John Hunter
On Thu, Aug 20, 2009 at 4:08 PM, Justin Findlayjfind...@gmail.com wrote: I'm trying to find a way to embed matplotlib graphs in LaTeX documents.  Ideally a solution would involve converting MPL's output to TikZ in order to get native rendering of the graphics and text. This seems like the

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 Schwellerothere...@gmail.com 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

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 Ayarsay...@mailaps.org 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

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. Hechtmhecht2...@instant-mail.de 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

Re: [Matplotlib-users] animate histogram

2009-08-19 Thread John Hunter
On Wed, Aug 19, 2009 at 3:25 PM, Christophe Duprechristophe.du...@vhayu.com wrote: I just saw the email below from John, and I was wondering why using compound paths are goo-gobs faster than using rectangles(patches)? I've been using the candlestick function quite a bit lately. I guess using

Re: [Matplotlib-users] animate histogram

2009-08-18 Thread John Hunter
On Tue, Aug 18, 2009 at 12:53 PM, Alan G Isaacalan.is...@gmail.com 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

Re: [Matplotlib-users] pylab

2009-08-11 Thread John Hunter
On Tue, Aug 11, 2009 at 12:28 PM, John [H2O]washa...@gmail.com 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

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 Battatjbat...@mit.edu 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,

Re: [Matplotlib-users] Graph title trepassing bounds

2009-08-11 Thread John Hunter
On Tue, Aug 11, 2009 at 2:21 PM, Gewton Jhamesgjha...@gmail.com 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

Re: [Matplotlib-users] axes_grid examples

2009-08-10 Thread John Hunter
On Mon, Aug 10, 2009 at 5:05 AM, Gary Rubengru...@bigpond.net.au 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

Re: [Matplotlib-users] plotting separated axes

2009-08-10 Thread John Hunter
On Sun, Aug 9, 2009 at 11:53 PM, per freemperfr...@gmail.com 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

Re: [Matplotlib-users] axes_grid examples

2009-08-10 Thread John Hunter
On Mon, Aug 10, 2009 at 10:23 AM, Jae-Joon Leelee.j.j...@gmail.com 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

Re: [Matplotlib-users] animate histogram

2009-08-08 Thread John Hunter
On Sat, Aug 8, 2009 at 6:17 AM, Kaushik Ghosekaushik_gh...@hms.harvard.edu 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 =

Re: [Matplotlib-users] animate histogram

2009-08-08 Thread John Hunter
On Sat, Aug 8, 2009 at 9:00 AM, John Hunterjdh2...@gmail.com 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-blocking so the animation ran too fast -- a rare

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 Rynhartprynh...@gmail.com 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

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, sashamassimodisa...@yahoo.it 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

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 Schellartp.schell...@student.science.ru.nl 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

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

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 4:10 AM, Bernd Egginkmono...@sudrala.de 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

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

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 7:47 AM, Bernd Egginkmono...@sudrala.de 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

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

2009-08-07 Thread John Hunter
On Fri, Aug 7, 2009 at 10:34 AM, John Hunterjdh2...@gmail.com 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

[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

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 Leelee.j.j...@gmail.com 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

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 Hoonmjldeh...@yahoo.com wrote: I am seeing the following error with the GTKCairo and GTKAgg backends: figure() matplotlib.figure.Figure object at 0x7ebe0cec Traceback (most recent call last):  File

Re: [Matplotlib-users] matplotlib and QT 4.5.2

2009-08-05 Thread John Hunter
2009/8/5 Michael Droettboom md...@stsci.edu: 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

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 Droettboommd...@stsci.edu 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

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

2009-08-05 Thread John Hunter
On Wed, Aug 5, 2009 at 10:25 AM, Ryan Mayrma...@gmail.com 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::

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 freemperfr...@gmail.com 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

Re: [Matplotlib-users] Resolution of eps files

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 4:22 AM, Maxim Khazimullinma...@anrb.ru 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

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

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwerj...@sun.ac.za 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

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

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 3:52 AM, Johann Rohwerj...@sun.ac.za 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

Re: [Matplotlib-users] Some questions about text

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 8:16 AM, Pim Schellartp.schell...@student.science.ru.nl 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

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

2009-08-04 Thread John Hunter
On Tue, Aug 4, 2009 at 9:14 AM, Johann Rohwerj...@sun.ac.za 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 opening

Re: [Matplotlib-users] Hiding data via legend

2009-08-04 Thread John Hunter
On Mon, Aug 3, 2009 at 11:38 PM, Gökhan Severgokhanse...@gmail.com 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

Re: [Matplotlib-users] Include icon in plot

2009-08-03 Thread John Hunter
On Mon, Aug 3, 2009 at 6:55 AM, Bas van Leeuwenleeu...@gmail.com 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

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 Wangc...@clem.com 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

Re: [Matplotlib-users] spines versus subplotzero

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 2:14 AM, jason-s...@creativetrax.com 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

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 Rubelmannmrubelm...@gmail.com 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

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 Hunterjdh2...@gmail.com 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 want

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

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:14 AM, Janwillemjwevand...@xs4all.nl 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

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 Hunterjdh2...@gmail.com wrote: On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmannmrubelm...@gmail.com 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

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 Rubelmannmrubelm...@gmail.com 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,

Re: [Matplotlib-users] Include icon in plot

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 1:28 PM, Jae-Joon Leelee.j.j...@gmail.com 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,

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 Isaacalan.is...@gmail.com 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?

[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

Re: [Matplotlib-users] overlaying a plot repeatedly

2009-07-29 Thread John Hunter
On Wed, Jul 29, 2009 at 1:01 AM, Artgrenan...@gmail.com 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,

Re: [Matplotlib-users] on exit event?

2009-07-28 Thread John Hunter
On Mon, Jul 27, 2009 at 4:39 PM, dekdres...@hotmail.com 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.

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 10:55 AM, Tony S Yuton...@mit.edu 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

Re: [Matplotlib-users] Design questions

2009-07-27 Thread John Hunter
On Mon, Jul 27, 2009 at 3:06 PM, Gewton Jhamesgjha...@gmail.com 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

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

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:04 PM, Ryan Mayrma...@gmail.com wrote: On Wed, Jul 22, 2009 at 6:09 PM, Christopher Barker chris.bar...@noaa.gov 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

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

2009-07-22 Thread John Hunter
On Wed, Jul 22, 2009 at 8:50 PM, Ryan Mayrma...@gmail.com 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

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

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

Re: [Matplotlib-users] plotting years and months

2009-07-19 Thread John Hunter
On Sun, Jul 19, 2009 at 7:03 AM, willemmersonwillemmer...@gmail.com 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

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

2009-07-19 Thread John Hunter
On Fri, Jul 17, 2009 at 5:15 PM, Paul Raypaul@nrl.navy.mil 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] 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]washa...@gmail.com 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

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, Northenlightjiandong...@gmail.com 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

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

2009-07-11 Thread John Hunter
On Fri, Jul 10, 2009 at 3:09 PM, Michael Lernermgler...@gmail.com 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.

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 rotatingf...@gmail.com: 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

Re: [Matplotlib-users] legend outside axes

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 6:06 AM, Eli Broshebro...@gmail.com 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

Re: [Matplotlib-users] Render image to string

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 6:41 PM, Doug Pennerdarwinsurvi...@gmail.com wrote: so instead of doing    plt.savefig(some/location.png)    return HttpResponse(htmlbodyimg src='some/location.png' //body/html) I could do    return HttpResponse(plt.image_render('image/png'), mimetype=image/png)

Re: [Matplotlib-users] title when using subplot

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 10:35 AM, jcm52joel.c.mil...@gmail.com 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

Re: [Matplotlib-users] half-filled markers

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 3:43 AM, Eli Broshebro...@gmail.com 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

Re: [Matplotlib-users] Tkinter problems

2009-07-11 Thread John Hunter
2009/2/23 Gregor Skrt gregor.s...@gmail.com:   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

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

2009-07-11 Thread John Hunter
On Tue, Jul 7, 2009 at 4:06 PM, Joseph Smidtjosephsm...@gmail.com 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

Re: [Matplotlib-users] centering axis ticks labels

2009-07-11 Thread John Hunter
On Thu, Jul 9, 2009 at 9:44 AM, Johann Cohen-Tanugico...@lpta.in2p3.fr 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

Re: [Matplotlib-users] Pluggable Backends

2009-07-11 Thread John Hunter
On Wed, Jul 8, 2009 at 3:49 PM, T Jtjhn...@gmail.com 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

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. McNeillbill...@gmail.com 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

Re: [Matplotlib-users] Weighted histograms

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 5:45 PM, Michael Cohenmco...@caltech.edu 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

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 Gohlkecgoh...@uci.edu 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:

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

2009-07-11 Thread John Hunter
On Mon, Jul 6, 2009 at 6:06 AM, Oliver Tomicoliver.to...@nofima.no 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

Re: [Matplotlib-users] half-filled markers

2009-07-11 Thread John Hunter
On Sat, Jul 11, 2009 at 9:55 AM, Eli Broshebro...@gmail.com 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

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 GMpgmdevl...@gmail.com 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

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

2009-06-27 Thread John Hunter
On Sat, Jun 27, 2009 at 1:44 AM, LBbravo.l...@gmail.com 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

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 Ghosekaushik_gh...@hms.harvard.edu 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

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 Pavlovepav...@gmail.com 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

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-17 Thread John Hunter
On Wed, Jun 17, 2009 at 5:31 PM, Alexandar Hansenviochem...@gmail.com 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

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 11:42 AM, Randy Heilandheil...@indiana.edu 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

Re: [Matplotlib-users] dynamic image update

2009-06-16 Thread John Hunter
On Tue, Jun 16, 2009 at 3:32 PM, Sebastian Haaseseb.ha...@gmail.com wrote: On Tue, Jun 16, 2009 at 6:54 PM, John Hunterjdh2...@gmail.com 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

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, CaseyWebniwotia...@hotmail.com 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

<    1   2   3   4   5   6   7   8   9   10   >