Re: [Tutor] matmolplot

2010-06-01 Thread Evert Rol
Sorry, forgot to reply-to-all previously. > Hi, > > I am trying to make plot using following code: > --- > for i in range(len(l2)): > plt.axvline(x=l1[i], ymin=0, ymax=l2[i], linewidth=2, color='r') axvline uses the [0, 1] range for it coordinates, not the coordinates set by the y-a

Re: [Tutor] matmolplot

2010-06-01 Thread Mark Lawrence
On 01/06/2010 14:14, saurabh agrawal wrote: Hi, I am trying to make plot using following code:---#!/usr/bin/pythonimport numpy as npimport matplotlib.pyplot as pltimport stringfrom pylab import savefigfrom sys import argv #input file as first argumentf1=argv[1]f = open(f1,'r')line=f.re

[Tutor] matmolplot

2010-06-01 Thread saurabh agrawal
Hi, I am trying to make plot using following code:---#!/usr/bin/pythonimport numpy as npimport matplotlib.pyplot as pltimport stringfrom pylab import savefigfrom sys import argv #input file as first argumentf1=argv[1]f = open(f1,'r')line=f.readlines()f.close() f2 = f1.split(".")#f3 = f2[