[Matplotlib-users] PNG without transparency

2010-08-11 Thread Miha Tomšič
Hello! I am having trouble saving figures to PNG with Agg backend. The problem is I can't get a PNG without transparency even if I specify: fig.savefig("colorAgg.png", dpi=300, transparent=False) identify still indicates there is a 1-bit aplha channel present: Image: colorAgg.png Format: PNG (

[Matplotlib-users] Hints on sizing plot elements?

2010-08-11 Thread Russell E. Owen
I'm making a strip chart widget (which I plan to make publicly available when finished). The basics are working fine, but the automatic sizing is not doing so well. Strip charts are typically short, and when suitably short the X axis annotations are partially truncated. So...can I convince the

Re: [Matplotlib-users] Fatal Python Error with 64 bit versions

2010-08-11 Thread stetrick
Setting the matplotlib.use('Agg') seems to have made the problem go away. Thanks for your patience. Scott Christoph Gohlke wrote: > > Again, please post a complete script that can reproduce the problem. > Since you do not need a GUI did you try to use the Agg backend? > > Christoph > > >

Re: [Matplotlib-users] Fatal Python Error with 64 bit versions

2010-08-11 Thread Christoph Gohlke
Again, please post a complete script that can reproduce the problem. Since you do not need a GUI did you try to use the Agg backend? Christoph On 8/11/2010 2:31 PM, stetrick wrote: > > I removed and reinstalled everything, and I'm still getting it. > > I am using the multiprocessing lib. Each

Re: [Matplotlib-users] Fatal Python Error with 64 bit versions

2010-08-11 Thread stetrick
Adding a close() at the end didn't do anything - still get the same message. stetrick wrote: > > I removed and reinstalled everything, and I'm still getting it. > > I am using the multiprocessing lib. Each process then produces a graph > with matplotlib, which is only done with Savefig (never

Re: [Matplotlib-users] Fatal Python Error with 64 bit versions

2010-08-11 Thread stetrick
I removed and reinstalled everything, and I'm still getting it. I am using the multiprocessing lib. Each process then produces a graph with matplotlib, which is only done with Savefig (never interactively displaced during the creation process). I have nothing special in the configuration - jus

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
> > Maybe the OP's problem is that the colors become indistinguishable in > the relatively small intervals? If so, the answer is to use a different > norm, or to use a ListedColormap with a color for each interval. The > ListedColormap allows complete freedom to explicitly specify the color > fo

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
On 08/11/2010 08:54 AM, Friedrich Romstedt wrote: > 2010/8/11 tgabriel: >> I would like to have the colorbar displaying the same color scaling >> regardless of the data input. > > This /should/ be feasible with .contourf(.., vmin=VMIN, vmax=VMAX), > but from the doc this isn't clear at least. If i

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Eric Firing
On 08/11/2010 06:13 AM, tgabriel wrote: > > > Problem 1: I have a dataset which has more values on one side of the scale > than the other in a contour map. Matplotlib will see that I have more values > towards one side of the scale, and put all of the colors in that color map > to that side of the

Re: [Matplotlib-users] Matching 3D axes size to 2D in mixed subplot

2010-08-11 Thread Benjamin Root
On Sun, Jul 18, 2010 at 1:17 PM, Benjamin Root wrote: > > > On Thu, Jul 15, 2010 at 9:13 PM, Jeff Berry wrote: > >> Hi, >> >> I'm using the new mixed axes feature in matplotlib 1.0.0 to combine 3D and >> 2D plots in a single figure. The problem is that the 3D axes have a lot of >> extra white spa

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Friedrich Romstedt
2010/8/11 tgabriel : > I would like to have the colorbar displaying the same color scaling > regardless of the data input. This /should/ be feasible with .contourf(.., vmin=VMIN, vmax=VMAX), but from the doc this isn't clear at least. If it doesn't work, we have to work out how to use the norm=..

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
This worked perfectly. Thanks Christoph. Ryan On Wed, Aug 11, 2010 at 11:35 AM, Christoph Gohlke wrote: > Ryan: you could try matplotlib-1.0.0.svn.win32-py2.6.exe from > http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib .It was built this > morning from svn. > > Christoph > > On 8/11/2010 7

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Christoph Gohlke
Ryan: you could try matplotlib-1.0.0.svn.win32-py2.6.exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib .It was built this morning from svn. Christoph On 8/11/2010 7:26 AM, Ryan Krauss wrote: > 0.99.3 is more or less fine, but there is an annoying exception window > that pops up if

[Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread tgabriel
Problem 1: I have a dataset which has more values on one side of the scale than the other in a contour map. Matplotlib will see that I have more values towards one side of the scale, and put all of the colors in that color map to that side of the scale. For example, lets say I would like my colo

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Ryan May
On Wed, Aug 11, 2010 at 8:43 AM, Tony S Yu wrote: > > On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote: > >> >> I extract data out of a database (via Django and Python). I'm drawing two >> bar charts. One is a stacked bar, and one is a simple bar. >> The code for each graph is in their own func

Re: [Matplotlib-users] mpl_toolkits

2010-08-11 Thread Benjamin Root
On Wed, Aug 11, 2010 at 9:27 AM, John Hunter wrote: > On Wed, Aug 11, 2010 at 7:10 AM, c.jeang > wrote: > > Hie john, > > and thank you for your prompt answer. > > my version is currently > > the > > 0.99.1.1 > > I am going to install the > > 1.0.0 > > Thank again > > Best regards > > If you are

Re: [Matplotlib-users] mpl_toolkits

2010-08-11 Thread John Hunter
On Wed, Aug 11, 2010 at 7:10 AM, c.jeang wrote: > Hie john, > and thank you for your prompt answer. > my version is currently > the > 0.99.1.1 > I am going to install the > 1.0.0 > Thank again > Best regards If you are on 0.99.1, then this is not the source of your problems since that version shi

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
0.99.3 is more or less fine, but there is an annoying exception window that pops up if you close IPython with a plot window open (using the TkAgg backend). But in my mind this is less bothersome than having to close all the plot windows every time I run a script (I tend to write scripts that gener

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Ryan Krauss
Thanks. I need to role out a python install for my students. Classes start in a week and a half. What should I do? The installation for most of them needs to be fairly simple. Thanks, Ryan On Wed, Aug 11, 2010 at 2:25 AM, Eric Firing wrote: > On 08/10/2010 05:43 PM, Ryan Krauss wrote: >> I

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-11 Thread Tony S Yu
On Aug 11, 2010, at 6:56 AM, Rob Schneider wrote: > > I extract data out of a database (via Django and Python). I'm drawing two > bar charts. One is a stacked bar, and one is a simple bar. > The code for each graph is in their own function. I call the function to > draw the graph sequencial

Re: [Matplotlib-users] Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X

2010-08-11 Thread Friedrich Romstedt
2010/8/11 Markus Baden : > I'm running Mac OS X 10.5.8. Ok, that explains why it works to flawlessly. When you would be on 10.6, you would probably run into the problem I mentioned, because the software is compiled /also/ for 10.5, and hence with gcc-4.0. Lucky one ;-) - I'm a bit annoyed by th

Re: [Matplotlib-users] show() blocks script execution for TkAgg from ipython -pylab

2010-08-11 Thread Eric Firing
On 08/10/2010 05:43 PM, Ryan Krauss wrote: > I just upgraded my windows machine to matplotlib 1.0.0 and a simple > script such as > > from pylab import * > from scipy import * > > t = arange(0,1,0.01) > y = sin(2*pi*t) > > figure(1) > clf() > plot(t,y) > > show() > > Now halts execution when run fr

Re: [Matplotlib-users] Pie Charts, How to control pie chart size in figure?

2010-08-11 Thread Matthias Michler
On Tuesday August 10 2010 20:31:02 Michael Waters wrote: > Hi, I am making a simple pie chart that needs to be small ~3x3 inches. > The problem I am having is that the text labels get pushed out side the > figure. Is there anyway to make the plot smaller relative to the figure > size? Here is my co