[Matplotlib-users] [matplotlib-users] linear regression functions?

2009-12-30 Thread Manuel Wittchen
Hi, I want to do a linear regression with my Data but couldn't find a ready-to-use matplotlib- or numpy-function. If there is no function for linear regression in matplotlib/numpy, could somebody explain to me how to code lin. reg. as a function? Regards, Manuel Wittchen

Re: [Matplotlib-users] [matplotlib-users] linear regression functions?

2009-12-30 Thread Pierre de Buyl
Hello, Numpy is capable of simple fitting of polynomials, see for a definition and an example: http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html Alternatively, there is an entry in the SciPy Cookbook: http:// www.scipy.org/Cookbook/FittingData Regards, Pierre Le 30

[Matplotlib-users] Auto adjust subplot params?

2009-12-30 Thread Eero Nevalainen
Hi, I find myself repeatedly manually adjusting subplot params, e.g. figure.subplot.left, to remove extra white space on my figures. Is there a better, automatic way to do this? Regards, Eero -- This SF.Net email is

Re: [Matplotlib-users] define color cycle in matplotlibrc

2009-12-30 Thread Dominik Szczerba
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric Firing wrote: Dominik Szczerba wrote: OK I started hacking and added a color_cycle property to matplotlibrc. Would you be so kind to add this fix to the official version? Thanks! Dominik Your basic idea--that the colorcycle should be

[Matplotlib-users] Problem generating postscript

2009-12-30 Thread Eric Emsellem
Hi again regarding my last post, I still have pb generating simple eps files. Now I turned on usetex to True and I get the message given below. If anyone can help me with this, it would be great since I am now stuck with this. Reminder: the pb occurs when I save a figure (savefig) in postscript

[Matplotlib-users] Colours of histograms?

2009-12-30 Thread Eric Emsellem
Hi how do I specify the colour of the bars in an histogram done with more than one set of data? Example: x1 = random(1000) x2 = random(1000) hist([x1,x2], c=['r','b']) does not work... I have tried with rgba sequences but no luck there. The help of hist color: matplotlib color arg or

Re: [Matplotlib-users] Colours of histograms?

2009-12-30 Thread Jae-Joon Lee
On Wed, Dec 30, 2009 at 12:05 PM, Eric Emsellem eemse...@eso.org wrote: I have tried with rgba sequences but no luck there. The help of hist color: matplotlib color arg or sequence of rgba tuples Based on my quick look at the code, it seems that the documentation is incorrect. I believe it

Re: [Matplotlib-users] Problem generating postscript

2009-12-30 Thread Jae-Joon Lee
This is a kind of bug that is quite hard to trace unless we can reproduce the error. As far as I know, there has been a report that matplotlib does not work well with GPL Ghostscript 8.63. And I'm not sure if it is related.

Re: [Matplotlib-users] Auto adjust subplot params?

2009-12-30 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-labels -JJ On Wed, Dec 30, 2009 at 6:30 AM, Eero Nevalainen eero.nevalai...@indagon.com wrote: Hi, I find myself repeatedly manually adjusting subplot params, e.g. figure.subplot.left, to remove extra white

Re: [Matplotlib-users] Problem generating postscript

2009-12-30 Thread Eric Emsellem
Hi thanks a lot for the quick tip. But no xpdf does not do it (I had tried it). Just to be consistent below is an account of my config (may not help much). I'll tried to write some simple script to reproduce the bug and post it but I am afraid this won't be very simple on my side. cheers Eric

Re: [Matplotlib-users] Colours of histograms?

2009-12-30 Thread Eric Emsellem
great. Thanks! I had a look at the thumbnails but didn't find the one you point out. (And the doc is confusing) Thanks! and yes, very weird behaviour when the two arrays have the same length... Eric On 30/12/09 19:53, Jae-Joon Lee wrote: x1 = random(1000) x2 = random(1000) n, bins,