[Matplotlib-users] ANN: Michael Droettboom, matplotlib lead developer

2012-08-02 Thread John Hunter
It is a great honor for me to announce that Michael Droettboom has agreed to take on the role of lead developer of matplotlib. Since Michael joined the project in 2007, he has been responsible for much of the code that brought matplotlib from being an excellent tool to a world class one. No one i

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-16 Thread John Hunter
On Tue, Jul 10, 2012 at 11:58 AM, Tony Yu wrote: > Announcement: mpltools 0.1 > == > > mpltools is a package of tools for matplotlib. For the most part, these > tools are only loosely-connected in functionality, but there are two that > may prove particularly useful: > > S

Re: [Matplotlib-users] path effects question

2012-07-14 Thread John Hunter
On Sat, Jul 14, 2012 at 11:48 AM, John Hunter wrote: > I do not understand why in the following example, if I set > patch_alpha=1.0, I do not see the shadow effect. I would expect to see it > for the the rightmost four bars, where the original bars do not entirely > occlude the sha

[Matplotlib-users] path effects question

2012-07-14 Thread John Hunter
I do not understand why in the following example, if I set patch_alpha=1.0, I do not see the shadow effect. I would expect to see it for the the rightmost four bars, where the original bars do not entirely occlude the shadow, so even if alpha is 1.0, there are parts of the shadow that are not behi

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-13 Thread John Hunter
On Jul 13, 2012, at 7:57 AM, Benjamin Root wrote: > There was talk of this living in mlab or cbook. Is there a preference? > > > Neither. cbook is really meant more for the devs. Half of it is converter > functions that are probably completely unneeded now, while the other half is > the

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-11 Thread John Hunter
On Wed, Jul 11, 2012 at 10:09 AM, Damon McDougall wrote: > > Well, as Ben said, that error fill plot is neato! It doesn't look too > complicated, either. I'd be more than happy to port it over later today > when I get bored of typing up my thesis. It'll probably only take me > about 30 minutes. >

Re: [Matplotlib-users] ANN: mpltools 0.1 release

2012-07-10 Thread John Hunter
On Tue, Jul 10, 2012 at 12:49 PM, Damon McDougall wrote: > > Would there be any interest in porting some of that functionality into > the main mpl codebase? Like Ben said, that error function is nifty... :) > > I also think the styles would be widely appreciated, and we might get more styles con

[Matplotlib-users] Fwd: Question on matplotlib install

2012-06-19 Thread John Hunter
Forwarding this on behalf of Amit. -- Forwarded message -- From: Date: Tue, Jun 19, 2012 at 9:07 AM Subject: Question on matplotlib install To: jdh2...@gmail.com Hi John - I found your email address on the setup splashscreen for matplotlib for windows. Can you please help me

Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME

2012-06-18 Thread John Hunter
On Mon, Jun 18, 2012 at 7:50 AM, Benjamin Root wrote: > However, should it be a full-out error?  Is it possible to have mpl run > without a font cache? I'm sure we could, but from an implementation perspective it would probably be easier to spoof it with a virtual filesystem and files using strin

Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME

2012-06-18 Thread John Hunter
On Mon, Jun 18, 2012 at 7:29 AM, Martin Mokrejs wrote: > Hmm. Could it be by default the current working directory instead? Or, > try/else added to the code > which would try to write into cwd if $HOME (aka $MPLCONFIGDIR) returns an > error? The stuff we store there is meant to be persistent b

Re: [Matplotlib-users] matplotlib requires write perms and space in $HOME

2012-06-18 Thread John Hunter
On Jun 18, 2012, at 6:19 AM, Martin Mokrejs wrote: > Hi, > I am running some script in /mnt/blah and while my $HOME disk on a different > device filled up > because of some other reason. But my script ran in /mnt/blah died as well > while there is plenty > of space. Here is the stacktrace.

Re: [Matplotlib-users] suppress plotting window

2012-06-12 Thread John Hunter
On Fri, Jun 8, 2012 at 3:36 AM, Maximilian Fabricius wrote: > it seems that whenever I plot something, a window opens. > > from matplotlib import pylab > import numpy > pylab.plot(numpy.random.normal(size=100)) > > Now, I have code that is supposed to produce diagnostic plots as PDFs. Only Before

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-28 Thread John Hunter
On Mon, Mar 19, 2012 at 12:53 PM, wrote: > Awesome John!! Thank you very much for your help on this… > > ** ** > > Guido > > **** > > *From:* John Hunter [mailto:jdh2...@gmail.com] > *Sent:* Monday, March 19, 2012 12:52 PM > *To:* Espinosa,

Re: [Matplotlib-users] RuntimeError: Could not open facefile

2012-03-23 Thread John Hunter
On Fri, Mar 23, 2012 at 3:35 PM, Andrew Smart wrote: > Hi, > I'm running into this RuntimeError: Could not open facefile > c:\Python32\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf; > Cannot_Open_Resource when I'm trying to save out a series of *.png files in > a loop. It crashes on thi

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread John Hunter
On Mon, Mar 19, 2012 at 12:46 PM, John Hunter wrote: > > Thanks, this has been going on for several days now and I just filed a > ticket with sourceforge. > > > https://sourceforge.net/apps/trac/sourceforge/ticket/24897 > In the meantime, a slightly out of date vers

Re: [Matplotlib-users] Too Many Requests error - matplotlib gallery

2012-03-19 Thread John Hunter
On Mon, Mar 19, 2012 at 11:46 AM, wrote: > Hi Guys, > > ** ** > > Accessing the Matplotlib gallery is killing access to the sourceforce > matplotlib site giving the “Too many requests” error. Anytime you access > the gallery, and attempt to view source of any thumbnail, the site gives > the

Re: [Matplotlib-users] loss of 3d plot interactivity after cla()?

2012-03-17 Thread John Hunter
On Fri, Mar 16, 2012 at 4:34 PM, Zachary Pincus wrote: > Hi all, > > I'm (finally) getting started with matplotlib, and am enjoying the lovely > plot quality. However, as Finally getting started? You were one of our first contributors! http://sourceforge.net/mailarchive/message.php?msg_id=5192

Re: [Matplotlib-users] OSX: need testing

2012-03-17 Thread John Hunter
On Mar 17, 2012, at 9:49 AM, Zachary Pincus wrote: >> If you can test and confirm that you can build and use mpl normally with >> this patch, please respond with a python version and OSX version that you >> tested with. Some of the fixes were python3 specific, so if you also can >> test t

Re: [Matplotlib-users] where is line after remove?

2012-03-13 Thread John Hunter
On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza wrote: > Hi > > That is exactly what I am doing, but I thought it was kept somewhere. > > I like the idea of upstream modification of relim. > > It would be trivial to add a kwarg to relim: include_invisible=True which defaults to the current behav

Re: [Matplotlib-users] matplotlib picking mouseevent.key=None

2012-03-13 Thread John Hunter
On Tue, Mar 13, 2012 at 10:05 AM, gsal wrote: > > Say, on Windows, the mouseevent.key correctly comes in as control, shift, > or > a letter...on Linux, it does notI am always getting None. > > is this a known problem with known solution? > > We need more information, what is your backend, wha

Re: [Matplotlib-users] access to my underlying data from within picker or pick_handler

2012-03-13 Thread John Hunter
On Mon, Mar 12, 2012 at 11:05 PM, gsal wrote: > > I am trying to change the underlying data for my plot via a pick event, > except that the matplotlib examples for picking show a couple of functions > with predefined signatures and I can't seem to figure out how to modify my > data from within th

Re: [Matplotlib-users] resize a plot to make room

2012-03-12 Thread John Hunter
On Mon, Mar 12, 2012 at 8:04 AM, Neal Becker wrote: > I have a figure with a semilogy plot. I need to make more room on the > bottom to > add a bunch of figtext, which is 4 lines of text. > > With the defaults, the text overprints the x-axis. > > What is a suggested way to fix this? (Ideally, m

Re: [Matplotlib-users] Has nxutils been removed from mpl?

2012-03-08 Thread John Hunter
On Thu, Mar 8, 2012 at 10:32 AM, Benjamin Root wrote: > > +1 as well. I just took another look at the Path object and I see no such > function. The lack of this function is a problem for me as well in my > existing apps. In order to deprecate nxutils, this functionality needs to > be added to

Re: [Matplotlib-users] Has nxutils been removed from mpl?

2012-03-08 Thread John Hunter
On Thu, Mar 8, 2012 at 10:21 AM, Dharhas Pothina < dharhas.poth...@twdb.texas.gov> wrote: > > + one on this issue. One of the big advantages of the nxutils points in > poly is that you could pass it a large numpy array of points and get back a > mask. We found this to be significantly faster than

Re: [Matplotlib-users] Has nxutils been removed from mpl?

2012-03-07 Thread John Hunter
On Wed, Mar 7, 2012 at 12:31 PM, Michael Droettboom wrote: > I agree that the deprecation process should have been followed better. > However, I'm not sure what you mean by them being faster than their Pyhton > counterparts. Both functions in nxutils are replaced by functions in > _path.cpp, whi

Re: [Matplotlib-users] Matplotlib detect wrong locations for libpng and libstdc++

2012-03-05 Thread John Hunter
On Mon, Mar 5, 2012 at 10:11 AM, Matthieu Dorier wrote: > Hello, > > I'm trying to install Matplotlib on a platform on which default libpng.so > and libstdc++.so are installed in /usr/lib64, but does not actually > correspond to the libraries I want to use, which have been locally > installed in $

Re: [Matplotlib-users] Move the content of a figure into a subplot of this figure.

2012-03-02 Thread John Hunter
On Fri, Mar 2, 2012 at 4:57 AM, Guillaume Gay wrote: > Hi list, > > I am trying to implement some GUI tools in matplotlib - more precisely a > line profile tool and a contrast setter which I hope will be integrated to > the skimage kit [see https://github.com/glyg/**scikits-image/blob/master/* >

[Matplotlib-users] pydata hack Friday night in Santa Clara

2012-03-01 Thread John Hunter
I'll be attending the pydata hack night in Santa Clara tomorrow night. We'll be hacking on matplotlib, ipython, pandas, numpy and more. If you are interested in stopping by, there is space for 200, many more than the number of attendees at pydata. The event info is here: http://python-data-hack

Re: [Matplotlib-users] Set width before saving

2012-02-29 Thread John Hunter
On Feb 28, 2012, at 4:03 PM, Benjamin Root wrote: > The size of the PNG will be based on the size of your figure object. When > you create your figure, you can pass a figsize kwarg which takes a tuple of > width, height in inches (defaults to 8 x 6, I think). > > fig = plt.figure(figsize=(

Re: [Matplotlib-users] get parent or child from twinx() or twiny()

2012-02-28 Thread John Hunter
On Tue, Feb 28, 2012 at 12:45 PM, Federico Ariza wrote: > Hello everybody > > This is my first post to the list. > Welcome. > > To the point. > I want to access the all the axes located where a mouse event occurred. > > My first try is with button_release_event > The event will include inaxes,

Re: [Matplotlib-users] image rescale on intervall

2012-02-27 Thread John Hunter
On Feb 27, 2012, at 6:16 AM, jonasr wrote: > > Hello, > > i am actually trying to plot a vector field over a scalar field, > i want to show a vector field on the intervall x=[0,1] y=[0,1] > this works fine so far, actually i have the problem that if i plot the > scalarfield > via imshow()

Re: [Matplotlib-users] Possible to make linewidth larger in Legend?

2012-02-23 Thread John Hunter
On Thu, Feb 23, 2012 at 4:39 PM, Jonno wrote: > I need to use a small linewidth in my plot but the color is still very > clear. However in the legend the small, thin straight line makes it > difficult to tell the color. Is there a way to make the linewidth larger > just in the legend but not on t

Re: [Matplotlib-users] Enjoy all them spammers

2012-02-19 Thread John Hunter
On Sun, Feb 19, 2012 at 10:15 AM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > I believe that the list owners will have to strenghten some tools to > fight against all those shameless spammers. > > I wade through about 20 gated messages a day in the mpl administrative interface. 9

Re: [Matplotlib-users] plot_date again

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 1:12 PM, Ted To wrote: > > Is it possible to force the date ticks to be the same in two different > plots? For example, the attached figures cover the same time spans but > in one, the data are weekly and the other, monthly. While there is > nothing really wrong with diffe

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 12:06 PM, Tony Yu wrote: git clone g...@github.com:matplotlib/matplotlib.git matplotlib.git >> >> did not go through. >> >> - Chris >> >> > I don't think you want the ".git" at the very end of the clone command. > That just tells get where (i.e. new directory) to put the r

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:58 AM, Chris wrote: > This time the error is: > > fatal: Not a git repository (or any of the parent directories): .git > > I guess that I have not be able to establish a local git tree since the > command > > git clone g...@github.com:matplotlib/matplotlib.git matplotlib

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:39 AM, Chris wrote: > Thanks John. Since I already have a running copy of mpl, I skipped to > the git clone step, but get this error: > > Permission denied (publickey). > fatal: The remote end hung up unexpectedly > > I'm a complete noob on git, so please bear with me.

Re: [Matplotlib-users] use the github version on a linux box

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 11:06 AM, Chris wrote: > I was trying to test the patch mike put in to fix the single pixel > plotting issue, but just realized that this was a Mac version. Can I > use it on a linux box? How? > These instructions are for an ubuntu based system -- if you are on a differen

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 10:24 AM, Ted To wrote: > On 02/08/2012 11:17 AM, John Hunter wrote: > > > > > > On Wed, Feb 8, 2012 at 10:06 AM, Ted To > <mailto:rainexpec...@theo.to>> wrote: > > > > If it hasn't been fixed, is there a workaround

Re: [Matplotlib-users] Strange plot_date problem

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 10:06 AM, Ted To wrote: > If it hasn't been fixed, is there a workaround? > > On 02/08/2012 10:42 AM, Ted To wrote: > > I believe I have traced it to some axhline and axis commands and this is > > apparently an old problem. Does it work with version 1.1.0? I have > > 1.0.

Re: [Matplotlib-users] add a single x tick label

2012-02-08 Thread John Hunter
On Wed, Feb 8, 2012 at 8:42 AM, David Craig wrote: Hi, I have a plot of a time series and I would like to add a single > extra tick mark and label to the plot in a different color to the > already existing tick marks. Is this possible?? > Thanks, > It's fairly easy to do if you want to set the

Re: [Matplotlib-users] How matplotlib got me a job

2012-02-06 Thread John Hunter
o pandas, scikits-learn, scikits-image, pystatsmodels and others is awesome, and is definitely taking the tool chain to the next level. > Therefore, I would like to thank John Hunter for making matplotlib available > for the community, and a hearty thanks to the rest of the community for

Re: [Matplotlib-users] matplotlib and matlab figures?

2012-01-24 Thread John Hunter
On Jan 24, 2012, at 6:06 AM, Piter_ wrote: > Hi all. > Hi all. Can I open matlab figure in matplotlib without conversion in > any other format? > I am 90% sure the answer for my question if not. But I give a 10% lazy > hope that it is possible. No, and there are no plans to support it. We want

Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-03 Thread John Hunter
On Nov 2, 2011, at 10:47 PM, Benjamin Root wrote: > > > On Wednesday, November 2, 2011, John Hunter wrote: > > On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root wrote: > >>> I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so > >>&g

Re: [Matplotlib-users] PyPI has version 1.0.1

2011-11-02 Thread John Hunter
On Wed, Nov 2, 2011 at 10:02 PM, Benjamin Root wrote: >> I just noticed that PyPI lists matplotlib 1.0.1 as the latest version, so >> pip and easy_install install version 1.0.1 instead of version 1.1.0.  Can >> somebody update the listing at the PyPI site? >> >> Thanks, >> Scott > > And if somebod

Re: [Matplotlib-users] Unit testing code that generate matplotlib plots

2011-11-02 Thread John Hunter
On Wed, Nov 2, 2011 at 4:16 PM, Wes McKinney wrote: > Hi guys, > > Is there a common practice for unit testing code that creates > matplotlib plots? I'm mainly just interested in code coverage versus > correctness (making sure the code *works*) for now. I guess one way > would be to disable the GU

Re: [Matplotlib-users] Updating/drawing all axes.

2011-10-30 Thread John Hunter
.draw() On Sun, Oct 30, 2011 at 10:51 AM, Daniel Welling wrote: > Greetings, MatPlotLibbers. > > Since 1.1, pyplot.draw() in interactive mode only updates the current axis. >  If I want to update many axes, I need to use sca() and draw() for each one. >  Is there a way to update all axes? I'm no

Re: [Matplotlib-users] Legend and proxy artists

2011-10-28 Thread John Hunter
On Thu, Oct 27, 2011 at 8:12 AM, Adam Mercer wrote: > Hi > > I have recently updated to Matplotlib-1.1.0 and now one of my scripts > displays the following warning: > > UserWarning: Legend does not support [[ at 0x1026296d0>]] > Use proxy artist instead. > > http://matplotlib.sourceforge.net/users

Re: [Matplotlib-users] matplotlib.rcParams(update) and parallel python

2011-10-17 Thread John Hunter
On Mon, Oct 17, 2011 at 2:57 PM, tinux wrote: > > I have around 100 python files, that each create one figure using matplotlib. > Since I want to use all CPU cores, I basically did "for filename in files: > execfile(filename)" using a python script. However, this does not produce > the same output

Re: [Matplotlib-users] Matplotlib 1.1.0 Error in triangulation.py

2011-10-17 Thread John Hunter
On Mon, Oct 17, 2011 at 6:58 PM, Floyd John wrote: > Hello, > > I have read your instruction for bug reporting but this is fairly simple. > > There is a call to self.get_cpp_triangulation() which exists but there is > also a call to self._get_cpp_triangulation at line 174 to obtain the > neighbo

Re: [Matplotlib-users] instance check, finding figure elements

2011-10-15 Thread John Hunter
On Sat, Oct 15, 2011 at 10:39 AM, wrote: > I'm building plots in stages using several different functions. Since > the figure contains all information, I don't hand handles to > individual elements around. > > What's the best way to check for a specific plot element? using > isinstance, or are th

Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread John Hunter
On Fri, Oct 14, 2011 at 8:52 AM, John Hunter wrote: > On Fri, Oct 14, 2011 at 8:46 AM, Jorge Scandaliaris > wrote: >> You're right, John, it works here too with the gtkagg backend. I have just >> noticed that I had different backend options set in matplotlib.conf and >

Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread John Hunter
On Fri, Oct 14, 2011 at 8:46 AM, Jorge Scandaliaris wrote: > You're right, John, it works here too with the gtkagg backend. I have just > noticed that I had different backend options set in matplotlib.conf and > matplotlibrc. My initial report refers then to the Qt4Agg backend. OK, I can confirm

Re: [Matplotlib-users] key_press_event weirdness

2011-10-14 Thread John Hunter
On Fri, Oct 14, 2011 at 7:18 AM, Jorge Scandaliaris wrote: > I run Arch Linux x86_64 and I am using the GTKAgg backend. I tried both with > IPython and python directly (2.7.2). I am not seeing this on Linux x86_64 with backend GTKAgg version 2.22.0 on python 2.7. Eg, if I run: > python si

Re: [Matplotlib-users] X Error since upgrade to 1.1.0

2011-10-13 Thread John Hunter
On Thu, Oct 13, 2011 at 8:03 AM, Neal Becker wrote: > Using interactively (via emacs/ipython), on closing a plot window I see: > >  X Error: BadWindow (invalid Window parameter) 3 >  Major opcode: 20 (X_GetProperty) >  Resource id:  0x5802e1b Could you give us some more information. What operati

Re: [Matplotlib-users] Memory leak involving matplotlib in webapplication

2011-10-13 Thread John Hunter
On Thu, Oct 13, 2011 at 12:42 AM, Viktor Forsman wrote: > Hi, > > I have problems with a memory leak in a webapplication involving matplotlib. > Basically, I have a function which usies the OO way of generating the graph, > printing it to a StringIO object and returning that. I've posted a questio

[Matplotlib-users] ANN: matplotlib-1.1.0

2011-10-11 Thread John Hunter
A new release of matplotlib is available for download at https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0 There are lots of nifty new features like Sankey diagrams, an API for animations and movie making, enhanced 3D support, support for auto-layout of subplots with

Re: [Matplotlib-users] Color a line segment as a gradient?

2011-09-30 Thread John Hunter
On Thu, Sep 29, 2011 at 11:56 PM, Uri Laserson wrote: > Hi all, > Does anyone have a good solution for taking a line segment and coloring it > according to some gradient (where the start and end colors are the only two > things specified for the line coloring)? This example shows how to apply a c

[Matplotlib-users] ANN: matplotlib-1.1.0rc1 available for testing

2011-09-27 Thread John Hunter
We have uploaded the first release candidate for matplotlib 1.1.0 for testing. * src and OSX versions for download: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/ * windows binaries are available here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib * websit

Re: [Matplotlib-users] Assign colors to list?

2011-09-26 Thread John Hunter
On Mon, Sep 26, 2011 at 12:24 PM, John Hunter wrote: > On Mon, Sep 26, 2011 at 12:05 PM, Katie Boyle wrote: >> Hi All, >> >> I was wondering how I take a list of 250 discrete values and match up each >> value in the list to a color in the gist_rainbow colormap. I want

Re: [Matplotlib-users] Assign colors to list?

2011-09-26 Thread John Hunter
On Mon, Sep 26, 2011 at 12:05 PM, Katie Boyle wrote: > Hi All, > > I was wondering how I take a list of 250 discrete values and match up each > value in the list to a color in the gist_rainbow colormap. I want the > highest value to be red, and the lowest value to be blue. I then want to > plot a

Re: [Matplotlib-users] Drawing on a figure, not a subplot

2011-09-17 Thread John Hunter
On Fri, Sep 16, 2011 at 4:10 PM, John Ladasky wrote: > Now I would like to add the axis lines and arrows.  In fact, I would > prefer a FancyArrow object. > > I can see how to add non-text objects to an Axes, e.g.: > > ax = fig.add_subplot(111) > ax.add_patch(my_arrow) > > But that isn't my goal h

Re: [Matplotlib-users] xticks() shifted by 1

2011-09-17 Thread John Hunter
On Sat, Sep 17, 2011 at 3:09 PM, Eric Firing wrote: > On 09/17/2011 09:57 AM, Klonuo Umom wrote: >> Hi, >> please consider this snippet: >> >> import matplotlib.pyplot as plt >> >> d={} >> for i in range(1,21): >>    d[i] = i**2 >> >> plt.plot(d.values()) > > This is plotting values against the ze

Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)

2011-09-16 Thread John Hunter
Yes, it is possible. Everything that is possible in the pyplot interface is available in the API (the pyplot interface is a thin wrapper). Most plotting methods from pyplot like plot, semilogx, imshow, scatter, etc, are axes instances ax = fig.add_subplot(111) ax.imshow(...) and the title,

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 1:31 PM, Filipe Pires Alvarenga Fernandes wrote: > Hi, > > On SUSE you have "zypper" > > I'm not familiar with SUSE repos, but OpenSUSE repos do have > matplotlib, just type: > > "sudo zypper in python-matplolib" > > that should install it for you. And if you want to build

Re: [Matplotlib-users] Problems installing Matplotlib under SUSE SLES 11 SP1

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 11:42 AM, falbriard wrote: > > Thanks Michael for your quick reply. I will consider use of the yum tool to > install the per-requisite and future updates. > >  Meanwhile I got a step forwards with help of the freetype developer forum > and I succeeded to build the freetype2

Re: [Matplotlib-users] canvas.draw() memory issue? (PyQt4)

2011-09-15 Thread John Hunter
On Fri, Sep 9, 2011 at 5:04 PM, Matt Earnshaw wrote: > Hi all, > > I am encountering a memory leak type issue when running the following, > for example. > > http://codepad.org/TNuCLT3k > > Matplotlib version: 0.99.3 > PyQt4 Version: 4.8.5 > > I found a thread in the archive relating to this issue

Re: [Matplotlib-users] PDF (but not screen) output raises "Path lacks initial MOVETO"

2011-09-15 Thread John Hunter
On Thu, Sep 15, 2011 at 4:03 AM, Eric O LEBIGOT (EOL) wrote: > It would be better if Matplotlib's backends were consistent, here (i.e. if > it failed both on screen and when generating the PDF, or if it did not fail > at all). > > I attach a slightly modified version of the original program: > ht

Re: [Matplotlib-users] RuntimeError: could not open display

2011-09-01 Thread John Hunter
On Thu, Sep 1, 2011 at 1:23 PM, CompBio wrote: > BTW, the reason I specify a PDF backend is because I thought it would tell > matplotlib not to try to use anything else "behind the scenes" such as an > X-window display.  It's working the way I want now, so I assume that's what > it's doing. But

Re: [Matplotlib-users] numpy datetime64 plans?

2011-08-29 Thread John Hunter
On Mon, Aug 29, 2011 at 2:56 PM, Mark Bakker wrote: > Hello List, > > Does anybody know of any plans to include support for the new datetime64 > data type in numpy? If this is the new numpy standard for doing dates and > times, it would be great if it would work with plot_date, for example. > > Ju

Re: [Matplotlib-users] Plotting using Basemap and FigCanvasAgg with Matplotlib on a web server

2011-08-24 Thread John Hunter
On Aug 24, 2011, at 4:09 PM, Aman Thakral wrote: > Hi, > > I've recently created a web application, using Django, to dynamically create > maps from weather data. When I tried using FigCanvasAgg and figure.Figure, > the image that was responded by the web server (using canvas.print_png and

Re: [Matplotlib-users] using matplotlib in web servers

2011-08-21 Thread John Hunter
On Sun, Aug 21, 2011 at 12:42 PM, Chris Withers wrote: > Hi All, > > The majority of the docs for matplotlib focus on making its behaviour > like that of Matlab, however, I'm looking to use it to generate graphs > for display by web apps. > > Where can I find good examples of doing this? > (ie: mu

Re: [Matplotlib-users] Newbie : How to add a Colored legend with Text for 3d plot

2011-08-17 Thread John Hunter
On Wed, Aug 17, 2011 at 5:30 PM, hari jayaram wrote: > Thanks for your email Ben. Sorry I am still lost. > > I dont understand what the handles type is . In my example I guess the > handles are an array of circles representing each x,y,z point.I am still a > little lost since the plot autmatically

Re: [Matplotlib-users] [matplotlib-devel] Calling all Mac OSX users!

2011-08-16 Thread John Hunter
On Mon, Aug 15, 2011 at 9:34 PM, Benjamin Root wrote: > The mpl developers are getting very close to the long-awaited v1.1.0 release > of matplotlib.  Before we do so, we are doing some final checking of the > documentation to make sure that all critical pieces of information iss > correct and up

Re: [Matplotlib-users] installation issues

2011-08-02 Thread John Hunter
On Mon, Aug 1, 2011 at 6:48 PM, Ivan D Vasin wrote: > i came across some issues while attempting to install matplotlib today: > > > > first issue: no bug tracker > > matplotlib's website has a link to a bug tracker that is no longer available. >  i'm guessing this mailing list is > the

Re: [Matplotlib-users] Mlab - Rec_Summarize / Rec_GroupBy

2011-07-01 Thread John Hunter
On Fri, Jul 1, 2011 at 11:14 AM, Hackett, John (Norcross, GA) wrote: > After some experimentation (and judicious peeking at the source code), I > think I’ve got the hang of writing custom functions to pass into these > modules – basically, anything that accepts a list of values sliced from a > sin

Re: [Matplotlib-users] gimmicks/eye candy: Is for example fading possible?

2011-06-22 Thread John Hunter
On Wed, Jun 22, 2011 at 8:30 AM, Michael Droettboom wrote: > matplotlib doesn't currently support gradients.  Patches welcome!  :)  It's > probably a lot of work to get it working across all backends, but following > the pattern of how hatches are handled now would probably be a good guide. There

Re: [Matplotlib-users] Missing Data Points in plots generated using matplotlib

2011-06-08 Thread John Hunter
On Tue, Jun 7, 2011 at 5:16 PM, Shankararaman Ramakrishnan < shankararaman_ramakrish...@trimble.com> wrote: > Hi, > > > > I use matplotlib as my python graphics library. I happen to see the > following problems with the plot() function and would appreciate any help to > resolve these problems! > >

Re: [Matplotlib-users] eps output and fill_between

2011-05-12 Thread John Hunter
On Thu, May 12, 2011 at 3:42 AM, Johannes Radinger wrote: > Hello , > > sofar I know how to safe a plot into a *.eps file and it works good, > but there is one issue with filled areas between two functions. > > When I try to use: > plt.fill_between(x, pdf_min, pdf_max, color='0.85') > > and I try

Re: [Matplotlib-users] Increase max polygons/patches

2011-04-21 Thread John Hunter
On Thu, Apr 21, 2011 at 11:22 AM, Michael Droettboom wrote: > There is no hard coded limit to the number of quads in a pcolormesh. > (Unlike the limit of the number of points in a path in the Agg backend). > Can you provide some code that reproduces the error? > > Also, which version of matplotlib

Re: [Matplotlib-users] using matplotlib on a server

2011-03-28 Thread John Hunter
On Mon, Mar 28, 2011 at 8:19 AM, Paulo J. Matos wrote: > Hi, > > I am trying to use matplotlib on a server which I don't run without it > installed. I tried untarring it to a folder in the path of PYTHONPATH > and using it directly without any luck. > > Has anyone successfully installed matplotlib

Re: [Matplotlib-users] Any update on streamline plot

2011-02-14 Thread John Hunter
On Sun, Feb 13, 2011 at 11:45 PM, Tom Flannaghan wrote: > It would also be helpful if anyone has suggestions on a particular issue I > had. > Currently, to plot variable-width lines (i.e. streamlines2.png) I use a plot > command for each line segment which is very slow and nasty. Is there a bett

Re: [Matplotlib-users] corrupt .tar.gz

2011-01-06 Thread John Hunter
On Thu, Jan 6, 2011 at 3:06 PM, aradea hakim wrote: > Hi all, > I am trying to install matplotlib1.0.1 on my machine but somehow I keep on > getting a corrupt .tar.gz file. > This is the error message: > tar: Skipping to next header > gzip: stdin: invalid compressed data--crc error > gzip: stdin

Re: [Matplotlib-users] latest matplotlib requires python >= 2.5

2011-01-05 Thread John Hunter
On Wed, Jan 5, 2011 at 9:51 AM, Benjamin Root wrote: > > > On Tue, Jan 4, 2011 at 5:49 AM, Marcin Dulak wrote: > >> Hi, >> >> the formlayout part in the latest matplotlib requires python >= 2.5 >> See >> >> http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg19219.html >> That c

Re: [Matplotlib-users] Possible memory leak?

2010-11-18 Thread John Hunter
On Thu, Nov 18, 2010 at 2:20 PM, Benjamin Root wrote: > Interesting analysis.  One possible source of a leak would be some sort of > dangling reference that still hangs around even though the plot objects have > been cleared.  By the time of the matplotlib 1.0.0 release, we did seem to > clear ou

Re: [Matplotlib-users] Formatter dates

2010-11-17 Thread John Hunter
On Wed, Nov 17, 2010 at 2:29 AM, Tim Åberg wrote: > Hello! > > I have now been tampering with a custom formatter and the more i think about > it the more i feel there must be a more easy soulution. I have a set of > values that are plotted over time (i use date2num, to get the conversion > from da

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread John Hunter
On Sat, Nov 13, 2010 at 9:23 AM, Michiel de Hoon wrote: > Thanks for your reply. > But nowadays drawing is done through draw_idle, so we don't trigger > additional drawing even if interactive is True. In your example, if run as a > script, there is no drawing until a call to show() is made, rega

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread John Hunter
On Sat, Nov 13, 2010 at 7:46 AM, Michiel de Hoon wrote: > OK, thanks. With your example, I see a difference between the Mac OS X > backend and the TKAgg/GtkAgg backend but only if interactive is False in > matplotlibrc. If interactive is True, both the Mac OS X backend and the TkAgg > backend o

Re: [Matplotlib-users] Mac OSX backend

2010-11-12 Thread John Hunter
On Thu, Nov 11, 2010 at 7:32 PM, Michiel de Hoon wrote: > For this example, I am finding the exact same behavior with the Mac OS X > backend as with the gtkcairo and gtkagg backends (on Mac OS X and Cygwin). If > this is a bug, then which backend can we use as an example of the correct > behavi

Re: [Matplotlib-users] Figure and Canvas

2010-11-12 Thread John Hunter
On Fri, Nov 12, 2010 at 4:20 AM, Olivier Verdier wrote: > Hi, > > I would like to use matplotlib in a programmatic way. > > I thought about creating a Figure object (with no canvas), and plot in > that Figure. > > Depending on what the user wants, I could then either plot on screen > or save on fi

Re: [Matplotlib-users] Linecollection, Dates on X-axis

2010-11-12 Thread John Hunter
On Nov 12, 2010, at 4:12 AM, Tim Åberg wrote: > Thats seems to be what im after, diffrent resolution but that would be a easy > fix i guess :) > Did you manage to run the example? i got a; > > datafile = cbook.get_sample_data('msft.csv', asfileobj=False) > AttributeError: 'module' objec

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe wrote: > > It isn't any one script, if you did > > import numpy as np > import matplotlib.pyplot as plt > x = np.arange(10) > for i in xrange(10): >    plt.plot(x) >    plt.savefig('x.png') > > it pops up the plot window even though I didn't ask it to. I d

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Nov 11, 2010, at 4:15 AM, mdekauwe wrote: > > Hi, > I have my backend set up in my .matplotlib/matplotlibrc file as: > > backend : MacOSX > > However if I run a script which does multiple plots and I don't ask the > script to display the plots (i.e. not imshow()), I still get blank

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 9:48 AM, Michiel de Hoon wrote: > Garry, if the bug still exists in matplotlib 1.0 could you open a bug report > for it? I think Gary doesn't have easy access to 1.0. Here is the relevant example if anyone has 1.0 on macosx to test with http://matplotlib.sourceforge.

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 5:43 AM, Garry Willgoose wrote: > John, > > OK by looking at matplotlib.rcParams['backend'] I've been able to diagnose > this a little more. > > When the backend is  'WXAgg' everything looks fine. The axes have (0,0) where > you would expect and the data is plotted correc

Re: [Matplotlib-users] problem with negative numbers on axes in EPS file when using in Latex file

2010-11-10 Thread John Hunter
On Wed, Nov 10, 2010 at 6:38 AM, Mark Bakker wrote: > I have a pretty wacky problem. > I create a figure which includes negative values along the y-axis: > plot([-1,1]) for example. > I save the figure as EPS. > When I look at the figure with preview on my Mac it looks fine. > When I import the f

Re: [Matplotlib-users] python v ipython problem in imshow()

2010-11-09 Thread John Hunter
On Tue, Nov 9, 2010 at 4:33 PM, Garry Willgoose wrote: > I'm using the following code to plot some grided data > >        fig1=pylab.figure() >        contents1=fig1.add_subplot(111) >        stuff=contents1.imshow(mydata,origin='lower',aspect='equal') > > and I find that if I launch the code with

[Matplotlib-users] recipes in the docs

2010-11-04 Thread John Hunter
I added a new section of the docs users/recipes.rst. This is meant to be a cookbook style place to place short tutorials, annotated examples, idioms and snippets. http://matplotlib.sourceforge.net/users/recipes.html I've added a few things already and would love to see contributions from users

Re: [Matplotlib-users] matplotlib sphinxext crashes in sphinx-build

2010-11-04 Thread John Hunter
On Thu, Nov 4, 2010 at 12:06 PM, Elizabeth Yip Dembart wrote: > Thanks !! > > Here is the output from the python section you suggested: > > /sampledoc> python > Python 2.6 (r26:66714, Dec  3 2008, 10:55:18) > [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 > Type "help", "copyright", "credi

Re: [Matplotlib-users] matplotlib sphinxext crashes in sphinx-build

2010-11-04 Thread John Hunter
On Thu, Nov 4, 2010 at 11:43 AM, Elizabeth Yip Dembart wrote: > Thank you for the prompt response. > I cannot run matplotlib directly.  It crashes as I tried to import > matplotlib.pyplot: > > sphinx/sampledoc> python > Python 2.6 (r26:66714, Dec  3 2008, 10:55:18) > [GCC 4.3.2 [gcc-4_3-branch rev

  1   2   3   4   5   6   7   8   9   10   >