[Matplotlib-users] [matplotib-users] missing legend-entry using twinx()

2010-01-07 Thread Manuel Wittchen
Hi, I'm plotting two y-axis with the twinx() command. But when I'm creating my legend there is only one entry in the legend-box instead of two. Here is my code: grafik1 = plt.figure() ax1 = grafik1.add_subplot(111) ax1.plot(TIME, BTM, color='red', label='Biomass') ax1.set_ylabel('Biomass') ax2

[Matplotlib-users] [matplotlib-users] Using variables in annotations

2009-12-31 Thread Manuel Wittchen
e value of the variables in the output. Regards and a happy new year! Manuel Wittchen -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app develo

[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 Wit

[Matplotlib-users] [matplotlib] change yticks-format

2009-12-11 Thread Manuel Wittchen
Hi, When I plot very tiny datavalues (biggest value is 8e-7) the yticks are also very small numbers with lots of digits (e.g. 0.02). So the ylabel isn't visible any more. To make the ylabel visible again I would like to change the yticks from 0.02 to 2.0e-6 for example. How do I do that?

[Matplotlib-users] [matplotlib] can't get any output

2009-12-11 Thread Manuel Wittchen
Hi, I want to plot data from two different datafiles. To do so I use numpy.loadtxt two times in the script (see below). The problem is, that I don't get any output: no resulting plot, no errormessages or something in the terminal. Even if I comment-out one loadtxt-row nothing happens. Even if I tr

Re: [Matplotlib-users] loadtxt/usecols -> list index out of range

2009-11-16 Thread Manuel Wittchen
;s too late (00:34 AM here), I have to go to bed and get some sleep Manuel 2009/11/16 Gökhan Sever : > > > On Mon, Nov 16, 2009 at 4:34 PM, Manuel Wittchen > wrote: >> >> Hi, >> >> I'm trying to make my first matplotlib-plot from a datafile. The >&

[Matplotlib-users] loadtxt/usecols -> list index out of range

2009-11-16 Thread Manuel Wittchen
Hi, I'm trying to make my first matplotlib-plot from a datafile. The datafile is tab-separated and looks like this: # x-axisy-axis 0 1 1 2 2 3 3 4 4 5 5 6 So my ploting-script is: #!/usr/bin/env python from pylab import * import numpy as np inputfile