Re: [Matplotlib-users] histogram hatching

2008-06-26 Thread izak marais
Thank you very much for the info. As an aside, after saving it one can use epstopdf to convert the crosshatched eps figure to pdf. If you want to edit it, inkscape can import pdf and save to svg. - Original Message From: John Hunter [EMAIL PROTECTED] To: izak marais [EMAIL

[Matplotlib-users] getting scatter x-data?

2008-06-26 Thread Paul Hartley
When I draw a Line2D instance (using plot()), I have set up an interactive way of clicking on one of the points to return the x-coordinate of the point. There might be a simpler way to do it, but the way I figured out is: def on_pick(self, event): # called when clicking on a Line2D point

Re: [Matplotlib-users] plot() linewidth parameter behaviour

2008-06-26 Thread David Warde-Farley
On 26-Jun-08, at 4:13 AM, David Warde-Farley wrote: Hi all, I'm making multiple calls to the plot() command, actually plotting parallel horizontal lines, and using a consistent 'linewidth' parameter, but for some reason I get different line widths each time (or the same for a couple). I

[Matplotlib-users] Bug: mad interference between matplotlib and openbabel

2008-06-26 Thread Florian Koelling
Hi folks! I' m working on a code to identify ligand's information from pdb crystal structures. For this purpose I use the openbabel package. I' m encoding the ligand's information in smarts. For checking if the smarts are assigned correctly I 'm writing a sdf file (to control whether the

Re: [Matplotlib-users] Bug: mad interference between matplotlib and openbabel

2008-06-26 Thread Manuel Metz
Hi Florian, you should try import pylab or import pylab as P. from pylab import * might overwrite some functions or methods ... if a pylab function/method has the same name as one in a module imported with * before. See the following example: #file a.py def foo(): print I'm a # file

Re: [Matplotlib-users] Bug: mad interference between matplotlib and openbabel

2008-06-26 Thread Florian Koelling
Thanks for your fast replies! As suggested I removed all from import* statements. I used import pylab and import pylab as p statements but it do s not work either. :-@ Could you recommend other easy to handle python plotting libs? Thanx! Darren Dale wrote: On Thu, Jun 26, 2008 at 5:51 AM,

Re: [Matplotlib-users] histogram hatching

2008-06-26 Thread Michael Droettboom
Thanks for pointing this out. This is now fixed in SVN. Cheers, Mike izak marais wrote: The vertical and horizontal hatch styles are swapped. According to the docs: | - vertical - - horizontal but '|' gives horizontal and '-' vertical patterns. The reaming styles appear to

Re: [Matplotlib-users] Bug: mad interference between matplotlib and openbabel

2008-06-26 Thread John Hunter
On Thu, Jun 26, 2008 at 7:04 AM, Florian Koelling [EMAIL PROTECTED] wrote: Thanks for your fast replies! As suggested I removed all from import* statements. I used import pylab and import pylab as p statements but it do s not work either. :-@ It was a good guess. You have a software version

Re: [Matplotlib-users] R: Bug: mad interference between matplotlib and openbabel

2008-06-26 Thread Florian Koelling
Yip! I updated my code to pylab.plot() and so on. Currently I use the following versions: * the actual matplotlib 0.98 - the old 0.87.7 (installed via synaptics had a memory leak) * the stable openbabel release 2.1.1 (beta available...) *numpy 1.1.0 (actual version; compiled from source)

[Matplotlib-users] plot3d

2008-06-26 Thread Ben Axelrod
I am new to MatPlotLib and I saw in the archives that 3d plotting is no longer supported in version 0.98. This seems like a major feature drop to me. I would really like to use this feature. Does anyone know what must be done to get this working again? Thanks, -Ben

Re: [Matplotlib-users] plot3d

2008-06-26 Thread John Hunter
On Thu, Jun 26, 2008 at 11:31 AM, Ben Axelrod [EMAIL PROTECTED] wrote: I am new to MatPlotLib and I saw in the archives that 3d plotting is no longer supported in version 0.98. This seems like a major feature drop to me. I would really like to use this feature. Does anyone know what must be

[Matplotlib-users] alpha blending with vector graphics

2008-06-26 Thread Sasha Gutfraind
I'm trying to produce a vector graphics image with alpha blending, however, the two backends I tried do not work. Specifically, the image has the right blending when doing pylab.show(), but savefig() produces an opaque output. Here is sample code (for the SVG backend. PDF backend has the same

Re: [Matplotlib-users] alpha blending with vector graphics

2008-06-26 Thread John Hunter
On Thu, Jun 26, 2008 at 8:26 PM, Sasha Gutfraind [EMAIL PROTECTED] wrote: pylab.scatter([1],[1],s=1000,c='g',alpha=1.0) pylab.scatter([1],[1],s=10,c='b',alpha=0.2) pylab.scatter([1],[1],s=100,c='r',alpha=0.5) pylab.savefig('foo.svg') I suspect a bug (my MPL version is '0.98pre'): Using a

[Matplotlib-users] matplotlib have point in a polygon test?

2008-06-26 Thread David Goldsmith
Hi! Does matplotlib have already implemented a method to return true/false according as a provided point is inside a provided polygon? Thanks! DG - Check out the new SourceForge.net Marketplace. It's the best

Re: [Matplotlib-users] matplotlib have point in a polygon test?

2008-06-26 Thread David Warde-Farley
On 26-Jun-08, at 11:37 PM, David Goldsmith wrote: Hi! Does matplotlib have already implemented a method to return true/false according as a provided point is inside a provided polygon? Thanks! In [15]: help matplotlib.nxutils --- help(matplotlib.nxutils) Help on module

Re: [Matplotlib-users] matplotlib have point in a polygon test?

2008-06-26 Thread David Goldsmith
Excellent, thanks! Just reinforces my belief that in Python, if you need to do something, chances are the Python tool for it already exists in the Public Domain! I love Python! DG --- On Thu, 6/26/08, David Warde-Farley [EMAIL PROTECTED] wrote: From: David Warde-Farley [EMAIL PROTECTED]

[Matplotlib-users] Linking non framework Tcl/Tk on Mac OS X

2008-06-26 Thread Adam Mercer
Hi I'm trying to track down a problem present in MacPorts Matplotlib build and the TkAgg backend. It appears that Matplotlib is linking against the system Tcl/Tk in /System/Library/Frameworks and not the non-framework Tcl/Tk installed by MacPorts, as to be expected this is causing segfaults when

[Matplotlib-users] Student sponsorship for the SciPy08 conference

2008-06-26 Thread Gael Varoquaux
We are delighted to announce that the Python Software Foundation has answered our call and is providing sponsoring to the SciPy08 conference. We will use this money to sponsor the registration fees and travel for up to 10 college or graduate students to attend the conference. The PSF did not