Re: [Matplotlib-users] error: Gtk* backend requires pygtk to be installed

2010-06-24 Thread Mike Anderson
Hi, > Went looking on examples page and found there was a file name demo_image.py > http://matplotlib.sourceforge.net/examples/axes_grid/demo_image.html > > However for whatever reason the source code was not downloadable (404 > error), so I copied it off the html page. I'm not sure why the matpl

[Matplotlib-users] error: Gtk* backend requires pygtk to be installed

2010-06-23 Thread Mike Anderson
Hi, I'm trying to run a demo example, http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py ran into this problem saying pygtk was needed: $ curl http://matplotlib.sourceforge.net/plot_directive/mpl_toolkits/axes_grid/figures/demo_axes_grid.py> demo_a

Re: [Matplotlib-users] axis on top for barh plot

2009-11-29 Thread Mike Anderson
Hi! >> How can I put the bottom axis on top (or on top AND on bottom) for a barh >> plot? > It's somewhat counter-intuitive, but it can be done. > You have to create some "twin" axes with the "twiny" option, > then make the plot on the twin axes so it will use the > top axis. The bottom axis sti

[Matplotlib-users] axis on top for barh plot

2009-11-27 Thread Mike Anderson
Hi, How can I put the bottom axis on top (or on top AND on bottom) for a barh plot? I'm trying to mimic this, made with gnuplot: http://www.hep.wisc.edu/cms/comp/cmsprod/dCacheUserUsage.png within matplotlib, and I've come close, http://www.hep.wisc.edu/cms/comp/cmsprod/diskUserUsage.png

Re: [Matplotlib-users] parsing tab separated files into dictionaries - alternative to genfromtxt?

2009-11-11 Thread Mike Anderson
> ideally what i would like is to be able to traverse each line of the > parsed file, and then refer to each of its fields by header name, so > that if the column order in the file changes my program will be > unaffected: What you want is a DictReader. For a quick example of me using that,

[Matplotlib-users] matplotlib slow compared to gnuplot?

2009-11-11 Thread Mike Anderson
Hi all, Previously I was a user of gnuplot but have been giving matplotlib a try. One thing I've run in to right away is that matplotlib appears to be significantly slower. A script to produce a dozen plots was taking me ~1 second with gnuplot, and now takes me ~18 seconds with matplotlib.

Re: [Matplotlib-users] Plotting with times - axis labels and eliding times

2009-10-24 Thread Mike Anderson
Hi, >* The time ranges are large (one-second samples over a period of > several days) and I find the x axis label formats are often > inappropriate to the scale. How to I control the format of > the x axis labels? > I only started using matplolib a few days ago, but I think I

Re: [Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-22 Thread Mike Anderson
> If you want to have a legend for PolyCollection, you may use a proxy > artist. > > http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist > Thanks for the link! Although, it seems that legend does not support PolyCollection at all: "Remember that some pyplot comman

[Matplotlib-users] fill_between, legends, and "label" parameter

2009-10-21 Thread Mike Anderson
Hi, I have a piece of code that creates a plot without warning when using just fill(), but gives a warning when using fill_between() because that function doesn't seem to actually do register values passed to it by the "label" parameter. The warning happens when I try to make a legend after