Re: [Matplotlib-users] Simple Matplotlib usage and Gnuplot

2007-08-28 Thread fred
John Hunter a écrit : > I matplotlib svn (as of June) there is a plotfile function. From the > docstring: Great ! Thanks. -- http://scipy.org/FredericPetit - This SF.net email is sponsored by: Splunk Inc. Still grepping

[Matplotlib-users] Fwd: Get pixels position of a Rectagle

2007-08-28 Thread Romain Bignon
Hello, I create an histogram with matplotlib and I want to get positions of each rectangles, to create links on a HTML page. How can I get them? Thanks. -- Romain Bignon - http://progs.coderz.info http://www.inl.fr - This

[Matplotlib-users] Get pixels position of a Rectagle

2007-08-28 Thread Romain Bignon
Hello, I create an histogram with matplotlib and I want to get positions of each rectangles, to create links on a HTML page. How can I get them? Thanks. -- Romain Bignon - http://progs.coderz.info http://www.inl.fr - Th

Re: [Matplotlib-users] Get pixels position of a Rectagle

2007-08-28 Thread John Hunter
On 8/28/07, Romain Bignon <[EMAIL PROTECTED]> wrote: > Hello, > > I create an histogram with matplotlib and I want to get positions of each > rectangles, to create links on a HTML page. Andrew Dalke has a tutorial on this at http://www.dalkescientific.com/writings/diary/archive/2005/04/24/int

[Matplotlib-users] Bbox::update_numerix_xy expected numerix array

2007-08-28 Thread Alen Ribic
I get the following error when its gets to the line where the bar(...) function is called: "Bbox::update_numerix_xy expected numerix array" What does this mean? is it referring to the the left, height or width...? If I execute the same code form the command line it works! But, If I call the code

Re: [Matplotlib-users] autoscale question

2007-08-28 Thread Tom Vaughan
On 8/23/07, Fabrice Silva <[EMAIL PROTECTED]> wrote: > Le Wed, 22 Aug 2007 18:21:40 -0700, Tom Vaughan a écrit: > > > Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and > > on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I am > > attempting to resolve an autos

Re: [Matplotlib-users] autoscale question

2007-08-28 Thread Tom Vaughan
On 8/22/07, John Hunter <[EMAIL PROTECTED]> wrote: > On 8/22/07, Tom Vaughan <[EMAIL PROTECTED]> wrote: > > > Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and > > on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I > > am attempting to resolve an autoscale pro

[Matplotlib-users] Default Image Size

2007-08-28 Thread Tom Haddon
Hi Folks, I'm creating a basic graph as follows: revnos = [ p['revno'] for p in data ] durations = [ p['duration'] for p in data ] majorFormatter = FormatStrFormatter('%d') matplotlib.use('Cairo') fig = Figure() canvas = FigureCanvas(fig) ax = fig.add_subplot(111) ax.plot(revnos, durations, '-'

Re: [Matplotlib-users] Default Image Size

2007-08-28 Thread John Hunter
On 8/28/07, Tom Haddon <[EMAIL PROTECTED]> wrote: > fig.savefig(OUTPUTFILE) savefig has it's own DPI ( so screen resolution and print resolution can differ). So set the figsize in the Figure init method as before, and then psas dpi to savefig fig.savefig(blah, dpi=300) JDH ---

Re: [Matplotlib-users] Bbox::update_numerix_xy expected numerix array

2007-08-28 Thread Alen Ribic
There were decimal.Decimal object type values in my array. I converted those to float and all is well now. Don't understand though why the command line version worked as it was. Hmm... :-) -Alen On 8/28/07, Alen Ribic <[EMAIL PROTECTED]> wrote: > I get the following error when its gets to the lin

[Matplotlib-users] multip axis

2007-08-28 Thread nie ninesun
hi everyone i am new user of matplotlib,i want display two curve on one graph.but i want these two curve have same X axis.but the Y axis is not same.I read the sample of matplotlib,there is an example about subplot.but i don't hope to use such one,These two curve should be displayed in on plot

Re: [Matplotlib-users] multip axis

2007-08-28 Thread Benoit Donnet
Hey, twinx() is what you need. Download the examples (http://matplotlib.sourceforge.net/ matplotlib_examples_0.90.0.zip). There is an example on how to use twinx() (this is the file two_scales.py) Keep on Rockin' Benoit Le 29-août-07 à 00:03, nie ninesun a écrit : > hi everyone > i am ne