[Matplotlib-users] Printing Graphs and Image Processing Operations

2010-01-15 Thread Wayne Watson
I've used MPL a bit, and am wondering if there's a facility for sending graphic images to a printer, or putting them in some format like png? I don't necessarily want the graphics to appear in a window, but would like to print them directly once they are ready. Can one put in a page feed, so

Re: [Matplotlib-users] colorbar with date-time formatting

2010-01-15 Thread Jae-Joon Lee
Colorbar axes is a rather special and things need to be set during the initialization. Here is a slightly modified version of your script. While it does not produces error, I'm not sure if the result is correct. -JJ import numpy as np import matplotlib.pyplot as plt from matplotlib.dates impor

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Ryan May
On Fri, Jan 15, 2010 at 12:19 PM, Paweł Rumian wrote: > 2010/1/15 Michael Droettboom : >> Can you try building matplotlib 0.99.1.1 from the tarball, rather than the >> gentoo package?  That would help to rule out any of the gentoo-specific >> changes.  Nothing in the portage leaps out at me as pro

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Paweł Rumian
2010/1/15 Michael Droettboom : > Can you try building matplotlib 0.99.1.1 from the tarball, rather than the > gentoo package?  That would help to rule out any of the gentoo-specific > changes.  Nothing in the portage leaps out at me as problematic, but we > should rule that out. I was trying to av

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Andrew Straw
I just tested 0.99.1.2 (no 0.99.1.1 tarball seems available on SF) and svn trunk and found no trouble with either on Ubuntu Karmic amd64. -Andrew -- Throughout its 18-year history, RSA Conference consistently attracts the

Re: [Matplotlib-users] white area around plots

2010-01-15 Thread Jae-Joon Lee
The svn version has a new keyword "bbox_extra_artists", which could be used. But, there is no easy way for the released version of matplotlib. Below is a workaround you may use, but it's a bit complicated. Regards, -JJ fig = figure(1) ax = fig.add_subplot(111) l1, = ax.plot([1,2,3]) leg = figl

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Michael Droettboom
Can you try building matplotlib 0.99.1.1 from the tarball, rather than the gentoo package? That would help to rule out any of the gentoo-specific changes. Nothing in the portage leaps out at me as problematic, but we should rule that out. Mike Paweł Rumian wrote: > 2010/1/15 Michael Droettbo

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Paweł Rumian
2010/1/15 Michael Droettboom : >> Hi Paweł, to repeat a point that may have been lost in Michael's first >> email, some code that produces the problem will be greatly useful in >> tracking down what's going on. > If I gather correctly, the masked_demo.py example in the matplotlib source > is suffic

[Matplotlib-users] white area around plots

2010-01-15 Thread Mario Mech
Hi all, how can I reduce the white area around the plots (several subplots) with legends outside to the right of the axes when saving it to a png-file? pyplot.savefig('test2.png',bbox_inches='tight') shrinks the paper to axes size but cuts the legend. Thanks in advance Mario Mech -- Dr. Mari

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Michael Droettboom
Andrew Straw wrote: > Paweł Rumian wrote: > >> 2010/1/14 Michael Droettboom : >> >> >>> What backend are you using? Agg, Cairo and Wx all check out for me. The >>> examples you point to don't look like Agg output to me... >>> >>> >> The examples were produced using savefig

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Andrew Straw
Paweł Rumian wrote: > 2010/1/14 Michael Droettboom : > >> What backend are you using? Agg, Cairo and Wx all check out for me. The >> examples you point to don't look like Agg output to me... >> > > The examples were produced using savefig and PNG, but I've tried GTK > and Qt with Agg and

Re: [Matplotlib-users] line drawing bug or it's me doing something wrong?

2010-01-15 Thread Paweł Rumian
2010/1/14 Michael Droettboom : > What backend are you using? Agg, Cairo and Wx all check out for me. The > examples you point to don't look like Agg output to me... The examples were produced using savefig and PNG, but I've tried GTK and Qt with Agg and Cairo - neither of them works. > Do you h