Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Sterling Smith
Aarthi, For me to help further, you will need to provide a sample input file, and the script you are trying to use to read that input file. Then I can go from there. -Sterling On Feb 28, 2014, at 1:38PM, Aarthi Reddy wrote: > It is not an uppercase problem. The other two titles had combinatio

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Sterling Smith
You have an uppercase 'Confidence'. Are you using pandas or numpy? For numpy, from Piet's email, you need a lowercase key. What does `print df['Confidence'].shape` yield? Because the error looks like you have an array with no size (zero dimensions), so perhaps you are still not reading in yo

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread AR12
Thanks, this worked for two of the columns. For the third column, I get this error: Sorry to bug you about this. Do you know where I can find the solution to this problem? --- TypeError Traceba

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Piet van Oostrum
AR12 wrote: > Hi, > > I have a csv file where head -5 looks like this: > > A B C > 100 0.45 0.3 > 67 0.25 0.4 > 50.6 0.2 0.6 > 56.4 0.4 0.3 > > The columns are tab separated. I want to load this CSV file and plot the > histogram of the third or second column. I was able t

Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread Paul Hobson
Sounds like you want to use pandas, not numpy. import pandas import matplotlib.pyplot as plt df = pandas.read_csv('myfile.txt', sep='\t') plt.hist(data['A'], bins=30) ...should do it for you. On Fri, Feb 28, 2014 at 11:06 AM, AR12 wrote: > Hi, > > I have a csv file where head -5 looks like th

Re: [Matplotlib-users] Matplotlib + py3 + gtk3 wouws

2014-02-28 Thread Michael Droettboom
On 02/27/2014 06:58 PM, Jon Roadley-Battin wrote: Good evening, I am at present migrating an application of mine from py27+pygtk (with mpl) to py33+pygobject (gtk3) Unfortunately I am unable to use from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas from

Re: [Matplotlib-users] Not rendering integral/sum when using latex = True

2014-02-28 Thread Adam Hughes
Sorry, it seems that I didn't have dvipng installed correctly! On Fri, Feb 28, 2014 at 2:53 PM, Adam Hughes wrote: > Hi, > > In an IPython notebook, I've changed several setting in both the > notebook's style and the plotting style. I noticed that when I change the > usetex option in the rcpar

[Matplotlib-users] Not rendering integral/sum when using latex = True

2014-02-28 Thread Adam Hughes
Hi, In an IPython notebook, I've changed several setting in both the notebook's style and the plotting style. I noticed that when I change the usetex option in the rcparams: *rcParams['text.usetex'] = True * Then I add an integral sign as text to a plot (either title or axis label) *plt.title(

[Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread AR12
Hi, I have a csv file where head -5 looks like this: A B C 100 0.45 0.3 67 0.25 0.4 50.6 0.2 0.6 56.4 0.4 0.3 The columns are tab separated. I want to load this CSV file and plot the histogram of the third or second column. I was able to load the csv file using this: data=csv2rec('Dow