Re: [Matplotlib-users] different behaviour in Windows and Linux

2008-12-02 Thread Sunnje L Basedow
Hi Gary, I just tested your example, also on Intrepid with 0.98.3, and I get the exact same behaviour as you, with white pixels in the left column. But I have no idea why, sorry. Sünnje -Original Message- From: Gary Ruben [mailto:[EMAIL PROTECTED] Sent: Tue 12/2/2008 11:13 To:

[Matplotlib-users] Cygwin1.dll error import pyplot

2008-12-02 Thread Thomas Lecocq
Hi all, I've searched the mailing archive, and I can't find an anwser to my problem : i'm running Python2.5 on a WinXP32 box. I just reinstalled cygwin to exclude a version-problem. Matplotlib version is 0.98.3 (got from easy_install matplotlib command) i'm just trying this : from

[Matplotlib-users] different behaviour in Windows and Linux

2008-12-02 Thread Gary Ruben
I'm wondering whether someone can reproduce the following problem I'm seeing in Ubuntu Intrepid. I often use matplotlib to save images created with imshow to take advantage of matplotlib's colour maps. I've noticed that the behaviour is different for 0.98.3 between Windows XP-32 and Ubuntu

Re: [Matplotlib-users] different behaviour in Windows and Linux

2008-12-02 Thread Gary Ruben
I just realised that the example I gave may not be the best since it's not obvious what the autoscaling will do when all array values are equal. Nevertheless, even when the array contains a range of values and I use a greyscale colourmap, I'm seeing the leftmost pixel column set to all white

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Eric Emsellem
I am indeed using ipython 0.8.1. Will try to upgrade and see how it goes. Indeed this looks like the deadlocks people mentioned, within, as Xavier emphasised, no way to CTRL-C it to kill it. thanks for the tips Eric Yannick Copin wrote: Salut Eric, Date: Mon, 01 Dec 2008 20:08:00 +0100

Re: [Matplotlib-users] different behaviour in Windows and Linux

2008-12-02 Thread Michael Droettboom
There is an explicit offset of one pixel on the left when it sets up a clip box in Agg. I don't know why this is there, but it dates back to 0.98.0, and earlier versions did something completely different. I can only guess it was to compensate for an earlier bug in the precise drawing of the

Re: [Matplotlib-users] Ovality of a perturbed circular path

2008-12-02 Thread Matt Foster
On Tue, Dec 2, 2008 at 7:44 AM, Nils Wagner [EMAIL PROTECTED] wrote: Hi all, I would like to visualize the ovality of a perturbed circular path by a polar plot. How can I improve the view wrt to scaling and ticks ? ylim(0, 2) yticks(arange(0, 2, 0.25)) Thank you for your reply. It is

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Yannick Copin
Salut Eric, Date: Mon, 01 Dec 2008 20:08:00 +0100 From: Eric Emsellem [EMAIL PROTECTED] Subject: [Matplotlib-users] pylab or not... crashes or not - when I start a session with ipython -pylab I often get crashes with my session. When I mean often, it means really often like once everything

Re: [Matplotlib-users] Cygwin1.dll error import pyplot

2008-12-02 Thread Thomas Lecocq
All right, as information for all : reinstalling cygwin from scratch, reinstalling python from scratch, and finaly matplotlib now works... Cheers, Thomas ** Thomas Lecocq Geologist Ph.D.Student (Seismology) Royal Observatory of Belgium ** From:

[Matplotlib-users] More points in polar plot than expected

2008-12-02 Thread Wildemar Wildenburger
Hi there, telling pyplot polar([1,2,3,4],[1,3,4,2], o) to my surprise does not give me 4 distinct points but rather some interpolated points as well. This is highly unexpected, nay, unwanted. It used to work well in Fedora 8 (don't know which version I ran there). Fedora 10 Python 2.5.2

[Matplotlib-users] polar in a subplot

2008-12-02 Thread Nils Wagner
Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? Nils python -i test_subplot_polar.py --verbose-helpful $HOME=/home/nwagner CONFIGDIR=/home/nwagner/.matplotlib /usr/lib/python2.4/site-packages/matplotlib/__init__.py:662:

Re: [Matplotlib-users] More points in polar plot than expected

2008-12-02 Thread Ryan May
On Tue, Dec 2, 2008 at 10:12 AM, Wildemar Wildenburger [EMAIL PROTECTED] wrote: Hi there, telling pyplot polar([1,2,3,4],[1,3,4,2], o) to my surprise does not give me 4 distinct points but rather some interpolated points as well. This is highly unexpected, nay, unwanted. It used to

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
On Tue, Dec 2, 2008 at 11:07 AM, Nils Wagner [EMAIL PROTECTED]wrote: Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? You need to specify polar=True to the subplot commands. Try this: from pylab import subplot, polar, linspace,

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Nils Wagner
On Tue, 2 Dec 2008 11:14:48 -0600 Ryan May [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 11:07 AM, Nils Wagner [EMAIL PROTECTED]wrote: Hi all, If I run the attached example I obtain no polar plots, but a view like plot(t,r_1) - for what reason ? You need to specify polar=True to the

Re: [Matplotlib-users] More points in polar plot than expected

2008-12-02 Thread Michael Droettboom
Yeah. This is a known bug that was fixed since 0.98.1. Cheers, Mike Ryan May wrote: On Tue, Dec 2, 2008 at 10:12 AM, Wildemar Wildenburger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, telling pyplot polar([1,2,3,4],[1,3,4,2], o) to my surprise does

Re: [Matplotlib-users] More points in polar plot than expected

2008-12-02 Thread Wildemar Wildenburger
On Tue, 02 Dec 2008 12:43:14 -0500 Michael Droettboom [EMAIL PROTECTED] wrote: Yeah. This is a known bug that was fixed since 0.98.1. Rats! Lets hope the Fedora guys are quick with the updating. Thanks for ending my head-banging, though. /W

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread Eric Emsellem
running the last ipython version now (0.9.1), and it does not help (got stuck the same way). The difference now is that ipython provides a message: Warning: Timeout for mainloop thread exceeded switching to nonthreaded mode (until mainloop wakes up again) It seems that ipython developers did

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
On Tue, Dec 2, 2008 at 11:27 AM, Nils Wagner [EMAIL PROTECTED]wrote: Thank you very much ! It would be nice to have that information in the docstring Done. The next inquiry is related to xticks. I have added xticks(linspace(0,2*pi,24,endpoint=False)) The difference between consecutive

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
The next inquiry is related to xticks. I have added xticks(linspace(0,2*pi,24,endpoint=False)) The difference between consecutive xticks is varying between 14 and 16 degrees. The following works around the roundoff for me: xticks(linspace(0, 360, 24, endpoint=False) * pi/180.) Ryan --

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Michael Droettboom
Ryan May wrote: On Tue, Dec 2, 2008 at 11:27 AM, Nils Wagner [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thank you very much ! It would be nice to have that information in the docstring Done. Thanks for updating the docstring. I actually saw this as a usability bug and

Re: [Matplotlib-users] pylab or not... crashes or not

2008-12-02 Thread John Hunter
On Tue, Dec 2, 2008 at 12:09 PM, Eric Emsellem [EMAIL PROTECTED] wrote: Really annoying but as mentioned before, I cannot get a set of commands which consistenly break the session, so... Since there does not appear to be an easy diagnosis or fix, you may want to consider switching your backend

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Ryan May
Michael Droettboom wrote: Thanks for updating the docstring. I actually saw this as a usability bug and have come up with a patch such that polar() (et al) will *replace* the current axes with a polar plot if it isn't already polar. This is (from the user's perspective) similar to how,

Re: [Matplotlib-users] polar in a subplot

2008-12-02 Thread Michael Droettboom
I've committed both of these things. The subplot()/polar() change seems tricky, so it may produce some breakage even though the regression tests are passing. Please let me know if you see anything strange after this change. Mike Ryan May wrote: Michael Droettboom wrote: Thanks for

Re: [Matplotlib-users] different behaviour in Windows and Linux

2008-12-02 Thread Gary Ruben
Thanks for the rapid fix Mike. regards, Gary Michael Droettboom wrote: There is an explicit offset of one pixel on the left when it sets up a clip box in Agg. I don't know why this is there, but it dates back to 0.98.0, and earlier versions did something completely different. I can only

Re: [Matplotlib-users] Bug saving semilogy plots with a axvline

2008-12-02 Thread Eric Firing
João et al., Thanks for the bug report. Mike D. has fixed the problem in svn. (I had moved the discussion to matplotlib-devel; I am just reporting back to matplotlib-users so this thread can be closed.) Eric Eric Firing wrote: wafels wrote: Hello, I can confirm and extend this bug

Re: [Matplotlib-users] Font sizes for web application

2008-12-02 Thread Jesper Larsen
Thank you for your answers and the obvious solution (banging head into wall). Best regards, Jesper 2008/12/1 Jae-Joon Lee [EMAIL PROTECTED]: On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen [EMAIL PROTECTED] wrote: Hi Matplotlib users, I have a web application in which I would like to scale