Re: [Matplotlib-users] strange grid lines when panning

2008-12-15 Thread Michael Droettboom
TP wrote: Hi everybody, I encounter a strange behavior of TKAgg backend with Matplotlib 0.98.5 and SVN versions, when panning: the grid lines do not always match the ticks on the axes: http://paratribulations.free.fr/help/pan_behavior/strange_lines_when_panning.png Here is the

Re: [Matplotlib-users] strange grid lines when panning

2008-12-15 Thread Michael Droettboom
Michael Droettboom wrote: TP wrote: Hi everybody, I encounter a strange behavior of TKAgg backend with Matplotlib 0.98.5 and SVN versions, when panning: the grid lines do not always match the ticks on the axes:

[Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread vehemental
Hello, I' m new to MPL...and rather new to Python... so I hope I wont say too much stupidities... I' m writing a little Fileviewer...that will plot the data of the file...depending on some user inputs (not implemented yet) so I started playing around...using the Tk embbeded plot exemple... I

Re: [Matplotlib-users] New OSX installers (beta)

2008-12-15 Thread Scott Lasley
Hello, I used your new beta installer to install matplotlib on a G5 running OS X 10.5.5. I tried the contour demo and got this error pylab_examples$ pythonw contour_demo.py Traceback (most recent call last): File contour_demo.py, line 12, in module import matplotlib.pyplot as plt

[Matplotlib-users] imshow with pdf

2008-12-15 Thread Haibao Tang
I have raised two issues on imshow with pdf backend weeks ago since the upgrade from 0.91 to 0.98. I am happy to see one of them already fixed. However, the following issue is still there. In the following script, I try to display an image in a pdf. This would run. Now please change the maize.pdf

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 6:20 AM, vehemental jimmy.pail...@gmail.com wrote: The program is working as expected...except memory wise...the program keeps growing... each time plot is pressed it's growing...I believe it's due to some poor programming on my side, but I can't really put my finger

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread Alexander Chemeris
Hi, John Hunter-4 wrote: On Sun, Dec 14, 2008 at 6:25 PM, Mauro Cavalcanti mauro...@gmail.com wrote: I have experienced a strange problem when installing Matplotlib 0.98.5 using Easy_Install under Ubuntu Hardy. I receive a message like this: error:

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 9:44 AM, John Hunter jdh2...@gmail.com wrote: By default matplotlib overplots, so every time you call plot a new line is added to the canvas. You can turn this behavior off using the hold method Sorry, on second look it appears you have a more serious problem.

Re: [Matplotlib-users] Removing continents

2008-12-15 Thread Mauro Cavalcanti
Dear Jeff, Sorry for the delay in replying. I have been trying to deal with a problem when upgrading MPL (I presume should use the latest version of Basemap with the latest version of MPL). 2008/12/13 Jeff Whitaker jsw...@fastmail.fm: Mauro: I realize that - but if you can test the SVN

Re: [Matplotlib-users] Removing continents

2008-12-15 Thread Jeff Whitaker
Mauro Cavalcanti wrote: Dear Jeff, Sorry for the delay in replying. I have been trying to deal with a problem when upgrading MPL (I presume should use the latest version of Basemap with the latest version of MPL). Mauro: It's a good idea, but not necessary. -Jeff 2008/12/13 Jeff

[Matplotlib-users] strange grid lines when panning

2008-12-15 Thread TP
Hi everybody, I encounter a strange behavior of TKAgg backend with Matplotlib 0.98.5 and SVN versions, when panning: the grid lines do not always match the ticks on the axes: http://paratribulations.free.fr/help/pan_behavior/strange_lines_when_panning.png Here is the corresponding script:

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-15 Thread Michael Droettboom
I'm having trouble getting your C code to compile (maybe a gsl version mismatch...?) In the meantime, perhaps you could try something for me. If you add the kwarg solid_joinstyle='bevel' or solid_joinstyle='round' to your plot command, does that improve things? If so, we could consider

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
Haibao Tang tanghai...@gmail.com writes: However, the following issue is still there. In the following script, I try to display an image in a pdf. This would run. Now please change the maize.pdf to maize.png and generate yet another file. Zoom and look closely at the two files generated. You

[Matplotlib-users] sphinx mathmpl usage

2008-12-15 Thread Angus McMorland
Hi guys, I'm trying to use sphinx and your mathmpl extension to document some of my own code, but I'm getting an error saying, in the simplest instance: Warning: Could not render math expression $alpha$ Is mathmpl dependent on a particular version of sphinx? I'm using 0.4.2-1 from debian at the

Re: [Matplotlib-users] strange grid lines when panning

2008-12-15 Thread TP
Michael Droettboom wrote: This has now been fixed in SVN r6608. This has also been fixed in SVN r6609. Impressive! Thanks a lot, now it works perfectly! One hour ago, I discover a bug with cursors (obtained with axvline): the pan didn't work well with cursors (some cursors remain at the

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread Jouni K . Seppänen
Michael Droettboom md...@stsci.edu writes: Keep in mind that we can't control the kind of interpolation used by the PDF viewer. I don't know if that is what you're seeing. I think the problem is with image dpi: % identify maize_raw.jpg maize_raw.jpg JPEG 400x812 400x812+0+0 DirectClass

Re: [Matplotlib-users] sphinx mathmpl usage

2008-12-15 Thread Michael Droettboom
You don't need the $. In fact, an unescaped $ in a math expression is a syntax error. Admittedly, the feedback about this could be better than just couldn't render. I'll look at passing more information about the exception back to Sphinx. Note also, you'll want a slash in front of \alpha in

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 9:45 AM, Alexander Chemeris alexander.cheme...@gmail.com wrote: I experience the same problem. Full shell session (of one command ;) is following: ~$ sudo easy_install matplotlib Searching for matplotlib Reading http://pypi.python.org/simple/matplotlib/ Reading

Re: [Matplotlib-users] imshow with pdf

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 11:04 AM, Jouni K. Seppänen j...@iki.fi wrote: The (812 pixels high) image has been embedded in a png of height 617, but in the pdf file it has height 446. 446/617 is about .72, so the problem must be that the pdf backend forces the dpi to 72, while the png file is

[Matplotlib-users] Bug in ubuntu intrepid

2008-12-15 Thread Alejandro Weinstein
Hi: Is anybody aware of the MPL bug on Ubuntu intrepid? https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381 Basically you get a warning when import pylab. Beside the warnings things seems to work OK. Is there a workaround for this? Regards, Alejandro.

Re: [Matplotlib-users] Bug in ubuntu intrepid

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 12:22 PM, Alejandro Weinstein alejandro.weinst...@gmail.com wrote: Hi: Is anybody aware of the MPL bug on Ubuntu intrepid? https://bugs.launchpad.net/ubuntu/+source/matplotlib/+bug/299381 Thanks for the head's up -- I posted a comment with a suggestion about what may

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-15 Thread Jesse Berwald
I compiled the code with following: gcc -o testode.o testode.c -lm -lgsl -lgslcblas I'm using gsl 1.10. Hope that helps. I'll try out the kwarg suggestions asap. Thanks for the help, -Jesse On Mon, Dec 15, 2008 at 9:38 AM, Michael Droettboom md...@stsci.edu wrote: I'm having trouble getting

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-15 Thread Michael Droettboom
In the meantime, I was able to get everything working and could confirm. Passing solid_joinstyle='bevel' does resolve the problem on both 0.91.x and 0.98.x. Additionally, path simplification (which is a new feature on 0.98.x) also resolves this problem (set rcParam path.simplify to True). The

Re: [Matplotlib-users] Correct usage of Mpl backend...

2008-12-15 Thread vehemental
Thanks. I understood the explanation you gave me...was not so sure how it translated in the language... so what i did is creating a init_plot method...that is creating a figure once and for all (empty) , attaching it to a canvas and pack it... then I have my showplot routine activated by the

Re: [Matplotlib-users] Is this a bug?

2008-12-15 Thread Michael Droettboom
Can you share the code you used to set the properties of points and lines. It looks like somehow a string is being set where a floating-point value is expected (either for dpi or markersize). Mike Mauro Cavalcanti wrote: Dear ALL, When attempting to set the properties of points or lines in

[Matplotlib-users] figimage and image magnification (was: imshow with pdf)

2008-12-15 Thread Jouni K . Seppänen
John Hunter jdh2...@gmail.com writes: I'll take a closer look at this later. Thanks for looking into this Jouni -- please make sure to fix in the branch and merge to the trunk, as described in http://matplotlib.sourceforge.net/devel/coding_guide.html#using-svnmerge I have a patch (attached)

Re: [Matplotlib-users] sphinx mathmpl usage

2008-12-15 Thread Angus McMorland
Hi Mike et al, Thanks for the reply. 2008/12/15 Michael Droettboom md...@stsci.edu: You don't need the $. In fact, an unescaped $ in a math expression is a syntax error. Admittedly, the feedback about this could be better than just couldn't render. I'll look at passing more information

Re: [Matplotlib-users] figimage and image magnification (was: imshow with pdf)

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 2:21 PM, Jouni K. Seppänen j...@iki.fi wrote: John Hunter jdh2...@gmail.com writes: I'll take a closer look at this later. Thanks for looking into this Jouni -- please make sure to fix in the branch and merge to the trunk, as described in

Re: [Matplotlib-users] Is this a bug?

2008-12-15 Thread Michael Droettboom
Yeah -- certain cases probably have better type safety than others. Long term, we probably want to do more type checking closer to the entry points (rather than deeper where they actually cause exceptions but are at that point long-removed from the user error). That kind of checking doesn't

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread Mauro Cavalcanti
Dear John, 2008/12/15 John Hunter jdh2...@gmail.com: I believe I have a workaround for this problem. Could you please test with easy_install http://matplotlib.sourceforge.net/snapshots/matplotlib-0.98.5.1.tar.gz It worked well and MPL 0.98.5.1 has been successfully installed. There is

Re: [Matplotlib-users] Error installing matplotlib 0.98.5

2008-12-15 Thread John Hunter
On Mon, Dec 15, 2008 at 2:49 PM, Mauro Cavalcanti mauro...@gmail.com wrote: 'src/backend_agg.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x874ab2c ignored But everthing seems to be working OK, as I tested my application with the newly installed version and

Re: [Matplotlib-users] sphinx mathmpl usage

2008-12-15 Thread Angus McMorland
Hi Mike, 2008/12/15 Michael Droettboom md...@stsci.edu: Angus McMorland wrote: I think I've copied the usage suggested by the 'writing mathtext' page in the mpl documentation (i.e. looking at its rst source [1]). That is to say, the appearance of $ and the lack of \ are produced by the

Re: [Matplotlib-users] OSX 10.5 event.key bug

2008-12-15 Thread James Schombert
Using matplotlib 0.98.5 on OSX 10.5, the following error occurs for many key_press events using the standard connect class - letter such as c,v,s etc (and most important, backspace) Exception in Tkinter callback Traceback (most recent call last): File

[Matplotlib-users] How to properly define lat/lon WGS84 in basemap module?

2008-12-15 Thread Roger André
Hi All, I have some square images which were generated via WMS requests. I have imported them into Matplotlib via pil_to_array, and then display them in a Basemap instance where I have defined the projection as: m = Basemap(projection='cyl', lon_0=lon_0, llcrnrlon=ll_lon, llcrnrlat=ll_lat,

[Matplotlib-users] error installing matplotlib from egg

2008-12-15 Thread Michael Hearne
I get the following output when trying to install the latest version of matplotlib from an egg. I'm running Mac OS X 10.5.5. sudo easy_install matplotlib-0.98.5-py2.5-macosx-10.3.egg Processing matplotlib-0.98.5-py2.5-macosx-10.3.egg removing

Re: [Matplotlib-users] Fuzzy plots of ode solutions

2008-12-15 Thread Jesse Berwald
Passing 'bevel' to solid_joinstyle works. Thanks for the help. -Jesse On Mon, Dec 15, 2008 at 12:03 PM, Michael Droettboom md...@stsci.edu wrote: In the meantime, I was able to get everything working and could confirm. Passing solid_joinstyle='bevel' does resolve the problem on both 0.91.x