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 through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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/interactive_html.html

This is the 3rd part of a 3 part tutorial, so you may want to make
sure you understand

  
http://www.dalkescientific.com/writings/diary/archive/2005/04/22/matplotlib.html

and

  
http://www.dalkescientific.com/writings/diary/archive/2005/04/22/matplotlib.html

before diving into the html part

JDH

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 from a Web Application then is gives me that error
above.

I tried via the pylab and matplotlib api. Both give the same error.

Thx

-Alen

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 autoscale problem elsewhere, and I must of
> > screwed something up when I built matplotlib. But what?
>
> Are you sure you have the same pref defined in conf files like
> ~/.matplotlib/.matplotlibrc for example ?

i deleted these on both machines. is there a way to force a particular
behaviour using ~/.matplotlib/.matplotlibrc?

-tom

>
>
>
> --
> Fabrice Silva
> [EMAIL PROTECTED]
> 06.15.59.07.61
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 problem elsewhere, and I must of
> > screwed something up when I built matplotlib. But what?
>
> The only explanation that makes sense to me is that you are picking up
> different versions of mpl.  Did you ever install from svn on any
> system?  You can print
>
> >>> import matplotlib
> >>> print matplotlib.__version__
>
> but that doesn't always help, because frequently different svn
> versions will print the same version number.  We should adopt the
> numpy and scipy system of tagging the version w/ the svn revision
> number
>
> JDH
>

sorry for the tardy reply (fsck'd mail filter)...

on yellowdog 3...

Python 2.5.1 (r251:54863, Jun 21 2007, 14:27:05)
[GCC 4.1.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> print matplotlib.__version__
0.90.1

on ubuntu feisty...

Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> print matplotlib.__version__
0.87.7

funny. i thought these were the same version. so is the 0.90.1
behaviour the correct behavior?

thanks.

-tom

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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, '-')
ax.set_title('PQM pre-commit hook durations from Revision %s to %s' %
(revnos[0], revnos[-1]))
ax.xaxis.set_major_formatter(majorFormatter)

ax.grid(True)
ax.set_xlabel('Revision')
ax.set_ylabel('Duration in Minutes')
canvas.draw()
fig.savefig(OUTPUTFILE)

Seems to give me a default size of 1200x900 (which I assume is somehow
related to my screen size) - I've tried altering the fig = line as
follows:

fig = Figure(figsize=(8,6), dpi=100)

but can't seem to change the output size of the image.

Thanks, Tom
-- 


--
Tom Haddon
mailto:[EMAIL PROTECTED]
m +1.415.871.4180
www.greenleaftech.net


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 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 from a Web Application then is gives me that error
> above.
>
> I tried via the pylab and matplotlib api. Both give the same error.
>
> Thx
>
> -Alen
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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 in my 
application with diffrent axis.Doese matplotlib have such function? or if 
there is an demo code about it?

 thanks
xz_nie

_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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 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 in my application with diffrent axis.Doese  
> matplotlib have such function? or if there is an demo code about it?
>  thanks
> xz_nie
>
> _
> 享用世界上最大的电子邮件系统— MSN Hotmail。  http:// 
> www.hotmail.com
>
> -- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Dr. Benoit Donnet
Université Catholique de Louvain (UCL)
Faculté des Sciences Appliquées - Département d'Ingénierie  
Informatique (INGI)
Place Sainte Barbe, 2
1348 Louvain-la-Neuve
Belgium
Phone: +32 10 47 87 18
Home page: http://inl.info.ucl.ac.be/donnet




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users