Re: [Matplotlib-users] Error TclError: no display name and no $DISPLAY environment variable

2007-08-24 Thread Jouni K . Seppänen
"Deen Sethanandha" <[EMAIL PROTECTED]> writes: > I use matplotlib as part of my Trac plugin. I got this error when I try > to access the web site that use my plugin. [...] > > File "/usr/lib/python2.5/site-packages/matplotlib/pylab.py", line 876, in > figure > File > "/usr/lib/python2.5/site-p

[Matplotlib-users] Error TclError: no display name and no $DISPLAY environment variable

2007-08-24 Thread Deen Sethanandha
Hi, I use matplotlib as part of my Trac plugin. I got this error when I try to access the web site that use my plugin. Please see the trace back below File "/u/bhuricha/lib/python2.5/site-packages/Trac- 0.11dev_r5933-py2.5.egg/trac/web/main.py", line 381, in dispatch_request File "/u/bhuricha

Re: [Matplotlib-users] PS and imshow

2007-08-24 Thread Jouni K . Seppänen
"John Hunter" <[EMAIL PROTECTED]> writes: > On 8/24/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > >> This may not be what it seems. The native coordinate system for >> PostScript is in points, which are 1/72 if an inch, so it's common to >> force that as a dpi. [...] > > Yes, this is exactly

Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-24 Thread Fernando Perez
On 8/24/07, David Tremouilles <[EMAIL PROTECTED]> wrote: > OK I see... nothing straightforward... > > Best way for me is maybe to implement such a system myself: > The system would collect the information to be saved by kind of > introspection of the figure. > I'm planning to save data and plot pro

Re: [Matplotlib-users] PS and imshow

2007-08-24 Thread John Hunter
On 8/24/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > This may not be what it seems. The native coordinate system for > PostScript is in points, which are 1/72 if an inch, so it's common to > force that as a dpi. Postscript supports fractional (is it floating > point or fixed -- I'm not sure

Re: [Matplotlib-users] PS and imshow

2007-08-24 Thread Christopher Barker
Petr Danecek wrote: > Hi, > I'd like to open a high-quality image (600dpi) in matplotlib, add some > plots and save it as a postscript file. > It seems that whatever I do, the input image gets scaled down > :-( I'm sorry I don't know enough about MPL's handling of images to help, but... > Lookin

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread Emre Aydın
On 8/24/07, Fred Ludlow <[EMAIL PROTECTED]> wrote: > # Get min and max from current axes > y_min, y_max = gca().get_ylim() > > # Set the other way round for current axes > gca().set_ylim(y_max, y_min) > > # Redraw > draw() > > > Emre Ayd?n wrote: > > hi. i'm a new user of matplotlib. i've searched

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread Fred Ludlow
# Get min and max from current axes y_min, y_max = gca().get_ylim() # Set the other way round for current axes gca().set_ylim(y_max, y_min) # Redraw draw() Emre Ayd?n wrote: > hi. i'm a new user of matplotlib. i've searched through the arhieves > of the mailing list but couldn't find a quick so

Re: [Matplotlib-users] reversing the y axis

2007-08-24 Thread John Hunter
On 8/24/07, Emre Aydın <[EMAIL PROTECTED]> wrote: > hi. i'm a new user of matplotlib. i've searched through the arhieves > of the mailing list but couldn't find a quick solution. i simply need > to reverse the y axis of my plots. for example in a range of 0-10, 0 > must seem at the top of the plot

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
Alen Ribic wrote: > Thanks Fred. > > Thant did the trick. However now, when I have many plots on x axis, > the last few plot shoot of the end of the x axis. It seems to start > the plotting the middle move to the right. Do I just have to adjust > the xlim on the axes[0]? I fiddled with the "align"

[Matplotlib-users] reversing the y axis

2007-08-24 Thread Emre Aydın
hi. i'm a new user of matplotlib. i've searched through the arhieves of the mailing list but couldn't find a quick solution. i simply need to reverse the y axis of my plots. for example in a range of 0-10, 0 must seem at the top of the plot where 10 is lowest, near to the x axis. is there a quick s

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Alen Ribic
Thanks Fred. Thant did the trick. However now, when I have many plots on x axis, the last few plot shoot of the end of the x axis. It seems to start the plotting the middle move to the right. Do I just have to adjust the xlim on the axes[0]? I fiddled with the "align" parameter, set it to "center"

Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-24 Thread David Tremouilles
OK I see... nothing straightforward... Best way for me is maybe to implement such a system myself: The system would collect the information to be saved by kind of introspection of the figure. I'm planning to save data and plot properties in an hdf5 file. Kind of inverted process will be used to re

Re: [Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-24 Thread Fred Ludlow
Alen Ribic wrote: > How do I set my vertical bar to be fixed width? By default, bars are created with a fixed width of 0.8, which can be changed with the width keyword arg like so: bar(range(2), range(1,3), width = 0.5) > Depending on amount of data on my x axis, the bars get created > accordin

[Matplotlib-users] PS and imshow

2007-08-24 Thread Petr Danecek
Hi, I'd like to open a high-quality image (600dpi) in matplotlib, add some plots and save it as a postscript file. It seems that whatever I do, the input image gets scaled down :-( The same question was asked year ago. Has any progress been made since then? http://sourceforge.net/mailarchive/mess