Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : I get anoter issue now. How can I know if the displayed image has been zoomed or not (I mean not on testing xlim & ylim) ? TIA -- http://scipy.org/FredericPetit - This SF.net email is sponsored by DB2 Expr

Re: [Matplotlib-users] Inconsistency between PS and other backends

2007-06-18 Thread John Hunter
On 6/18/07, Itai Arad <[EMAIL PROTECTED]> wrote: > I am trying to produce a very simple EPS figure, but the EPS file is > different than what I see on the screen in the GTKAgg window, or when > I save the figure as a PNG file. It looks like the coordinate system > in the PS case is different, and

Re: [Matplotlib-users] jython and matplotlib

2007-06-18 Thread John Hunter
On 6/17/07, Duncan Child <[EMAIL PROTECTED]> wrote: > We would like to provide a Matplotlib-like plotting function in a Java > application we are building. We can't require our users to install > native code so we can't use Matplotlib. > > We have a simple implementation that would be sufficient f

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : > Sorry for the noise. Thanks anyway, Jouni, I fixed my issue thanks to you ;-) You showed me that the get_?lim methods were right, so I followed my feeling further. Cheers, -- http://scipy.org/FredericPetit -

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
fred a écrit : > Maybe I'm doing something wrong ? Yes :-) You only need to set extent to the const xmin/xmax & ymin/ymax and not those you get with get_xlim & get_ylim. Sorry for the noise. Cheers, -- http://scipy.org/FredericPetit ---

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
Jouni K. Seppänen a écrit : > Try: > > imshow(rand(50,50)) > # zoom with mouse > xlim=getp(gca(), 'xlim'); ylim = getp(gca(), 'ylim') > imshow(rand(50,50)) > setp(gca(), 'xlim', xlim); setp(gca(), 'ylim', ylim) > Well..., I forgot to mention something, sorry ;-) I already apply this trick: I use

[Matplotlib-users] placing minor ticks below major

2007-06-18 Thread Thanos Panousis
Hello everybody and a bit thanks to the matplotlib team. Its great stuff. I would like to place the minor ticks for days, lower than the major ticks for hours, so that they are visible. Right now they overlap each other. I would like to achieve a result like 11:0012:0001:00

[Matplotlib-users] jython and matplotlib

2007-06-18 Thread Duncan Child
We would like to provide a Matplotlib-like plotting function in a Java application we are building. We can't require our users to install native code so we can't use Matplotlib. We have a simple implementation that would be sufficient for v1.0 of our application that uses jython and jfreechart.

Re: [Matplotlib-users] keeping zoom...

2007-06-18 Thread Jouni K . Seppänen
fred <[EMAIL PROTECTED]> writes: > imshow(rand(50,50)) > then zoom with the mouse and redo > imshow(rand(50,50)) > the zoom factor is not kept, ie xrange/yrange are still (0,50). > > How can I keep the zoom factor ? Try: imshow(rand(50,50)) # zoom with mouse xlim=getp(gca(), 'xlim'); ylim = getp

[Matplotlib-users] keeping zoom...

2007-06-18 Thread fred
Hi, I want to keep the image zoomed to the same factor for all my images. If I try ipython -pylab imshow(rand(50,50)) then zoom with the mouse and redo imshow(rand(50,50)) the zoom factor is not kept, ie xrange/yrange are still (0,50). How can I keep the zoom factor ? TIA. Cheers, -- ht

[Matplotlib-users] Inconsistency between PS and other backends

2007-06-18 Thread Itai Arad
Hi, I am using the matplotlib library that comes with Ubuntu 7.04. This is version 0.87.7 with ESP ghostscript 8.15.4. I am trying to produce a very simple EPS figure, but the EPS file is different than what I see on the screen in the GTKAgg window, or when I save the figure as a PNG file. It loo

[Matplotlib-users] attempting to build matplotlib on cygwin

2007-06-18 Thread Peter Harris
Hello everybody, I am going through a real epic trying to build matplotlib on cygwin. Here is my environment: freetype-2.3.2 matplotlib-0.90.0 numpy-1.0.2 python-2.5-1 rebase 2.4.3-1 gcc-3.4.4-3 cygwin_NT-5.1 Here is what I tried to do: $ python setup.py build running build running build_py run