[Matplotlib-users] Problems y_label - bar chart

2008-10-25 Thread Florian Koelling
Hi Folks!

I want to create a bar chart having 85 different Objects, each Object  
owning a certain name of four letters -- I followed the examples on  
the matplotlib examples page - so far so good.

I have some problems with the y_labeling because every objects name is  
overlaid by it' s neighbour and so a proper assignment is not  
possible. I tried to change the bar size, but that did not have any  
effect on the y_label.

Is it possible to display the object names vertical 1
 y
 k
 7

instead of horizontal (1yk7) to obtain a better readable figure?
or maybe some of you have a better idea?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problems y_label - bar chart

2008-10-25 Thread Eric Firing
Florian Koelling wrote:
 Hi Folks!
 
 I want to create a bar chart having 85 different Objects, each Object  
 owning a certain name of four letters -- I followed the examples on  
 the matplotlib examples page - so far so good.
 
 I have some problems with the y_labeling because every objects name is  
 overlaid by it' s neighbour and so a proper assignment is not  
 possible. I tried to change the bar size, but that did not have any  
 effect on the y_label.

I think you are talking about labels for the bars, not tick labels or 
the y-axis label, correct?

 
 Is it possible to display the object names vertical 1
  y
  k
  7
 
 instead of horizontal (1yk7) to obtain a better readable figure?
 or maybe some of you have a better idea?

Yes, text objects can be rotated.  In the barchart_demo.py example, you 
can add to the text command the keyword argument rotation='vertical' 
(or give a number for angle in degrees).

Eric

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] ANN: Python programs for epidemic modelling

2008-10-25 Thread I. Soumpasis
Dear lists,

DeductiveThinking.com now provides the Python programs for the book of M.
Keeling  P. Rohani Modeling Infectious Diseases in Humans and Animals,
Princeton University Press, 2008. The book has on-line material which
includes programs for different models in various programming languages and
mathematical tools such as, C++, FORTRAN and Matlab, while some are also
coded in the web-based Java programming language to allow readers to quickly
experiment with these types of models, as it is stated at the website. The
Python version of the programs were written long ago and submitted to the
book's on line material website (available soon). The Python programs with
the basic equations modelled and the results in figures were now uploaded on
a special wiki page of DeductiveThinking.com.

Since, the programs are heavily using numpy, scipy and matplotlib libraries,
I send this announcement to all the three lists and the main python-list;
sorry for double-posting. The announcement with the related links is
uploaded here http://blog.deductivethinking.com/?p=29. The programs are at
http://wiki.deductivethinking.com/wiki/Python_Programs_for_Modelling_Infectious_Diseases_book.
For those who are interested on modelling and epidemiology, they can take a
look at the main site (http://deductivethinking.com) or the main page of the
wiki (http://wiki.deductivethinking.com) and follow the epidemiology links.
The website is in its beginning, so limited information is uploaded up to
now.

Thanks for your time and I hope it will be useful for some people,
Best Regards,
Ilias Soumpasis
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [SciPy-user] ANN: Python programs for epidemic modelling

2008-10-25 Thread Alan G Isaac
On 10/25/2008 4:14 PM I. Soumpasis apparently wrote:
 http://blog.deductivethinking.com/?p=29

This is cool.
But I do not see a license.
May I hope this is released under the new BSD license,
like the packages it depends on?

Thanks,
Alan Isaac


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [Numpy-discussion] [SciPy-user] ANN: Python programs for epidemic modelling

2008-10-25 Thread I. Soumpasis
2008/10/25 Alan G Isaac [EMAIL PROTECTED]

 On 10/25/2008 4:14 PM I. Soumpasis apparently wrote:
  http://blog.deductivethinking.com/?p=29

 This is cool.
 But I do not see a license.
 May I hope this is released under the new BSD license,
 like the packages it depends on?

 The programs are GPL licensed. More info on the section of copyrights
http://wiki.deductivethinking.com/wiki/Deductive_Thinking:Copyrights.

I hope it is ok,
Ilias
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] regression coeffiecients

2008-10-25 Thread Oz Nahum
Hello,
I'm having troubles understand something about regression coefficients.
If I have two vectors:

x = [1.38, 1.98, 3.18, 3.56, 4.9, 6.21, 6.44, 7.47, 8.36, 8.81]
y = [8.19, 17.77, 20.12, 14.55, 20.17 ,31.22 ,28.94, 34.79, 40.26, 38.99]

and I would like to find out the regression coefficient  I can use polyfit:

b1, b = polyfit(x,y,1)

my first question is can I get from polyfit the  corrlation coeficient (I
know about corrcoef, just looking for more opotions).

The second question is about a fuction I wrote: according to
http://en.wikipedia.org/wiki/Regression_analysis#Linear_regression
it's pretty easy to write a little python funcion to calculate the
regression coefficients. Here is mine:

def b1(x,y):
sum1 = 0
sum2 = 0
mx = mean(x)
my = mean(y)
for i,j in zip(x,y):
sum1 =+ (i-mx)*(j-my)
print sum1
sum2 =+ (i-mx)**2
b1 = sum1/sum2
return b1

both methods yeild two different b1 values. Can anyone please tell me what
wrong with my function ?

Thanks, Oz.




-- 
 .''`.
: :' :  We are debian.org. Lower your prices,
`. `'   surrender your code.
  `-We will add your hardware and  software
distinctiveness to our own.
Resistance is futile.


   Imagine there's no countries
   It isn't hard to do
   Nothing to kill or die for
   And no religion too
   Imagine all the people
   Living life in peace

  You all must read 'The God Delusion'
  http://en.wikipedia.org/wiki/The_God_Delusion
---
when one person suffers from a delusion it is called insanity. When many
people suffer from a delusion it is called religion.
Robert Pirsig, Zen and the Art of Motorcycle Maintenance
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] clabel

2008-10-25 Thread David Arnold
All,

Does Matplotlib have a form of the clabel command that uses the  
switch manual, as in Matlab:

[c,h]=contour(x,y,z);
clabel(c,h,'manual')

Which allows the user to pick the contours to label with the mouse?

David Arnold
College of the Redwoods
http://msemac.redwoods.edu/~darnold/index.php

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] [Numpy-discussion] [SciPy-user] ANN: Python programs for epidemic modelling

2008-10-25 Thread Alan G Isaac
On 10/25/2008 6:07 PM I. Soumpasis wrote:
 The programs are GPL licensed. More info on the section of copyrights
  http://wiki.deductivethinking.com/wiki/Deductive_Thinking:Copyrights.
 I hope it is ok,

Well, that depends what you mean by ok.

Obviously, the author picks the license s/he prefers.
But a GPL license means that some people will avoid
your code, so you make wish to make sure you thought
the licensing issue for this code carefully.

As a point of comparison,
note that all your package dependencies have
a new BSD license.

Alan Isaac


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Why is wrapper module called pylab ?

2008-10-25 Thread chris

So is matplotlib the name of the low level plotting engine?

And, pylab is the user-friendly wrapper?

Would it be ok to call the whole system Pylab instead of Matplotlib then?


Chris

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users