I have a histogram (see below) and I am trying to find the mean and standard deviation along with code which fits a curve to my histogram. I think there is something in SciPy or matplotlib that can help, but every example I've tried doesn't work.
impor...

Asked By user1496646

I have a histogram (see below) and I am trying to find the mean and standard deviation along with code which fits a curve to my histogram. I think there is something in SciPy or matplotlib that can help, but every example I've tried doesn't work.
impor...

Asked By user1496646

I want to get a list of the data contained in a histogram bin. I am using numpy, and Matplotlib. I know how to traverse the data and check the bin edges. However, I want to do this for a 2D histogram and the code to do this is rather ugly. Does numpy ...

Asked By Ben

I want to get a list of the data contained in a histogram bin. I am using numpy, and Matplotlib. I know how to traverse the data and check the bin edges. However, I want to do this for a 2D histogram and the code to do this is rather ugly. Does numpy ...

Asked By Ben

I'm currently using Matplotlib to create a histogram:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pyplot
...
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1,)
n, bins, patches = ax.hist(measurements, bins=50, range=(graph_minim...

Asked By victorhooi

I'm currently using Matplotlib to create a histogram:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pyplot
...
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1,)
n, bins, patches = ax.hist(measurements, bins=50, range=(graph_minim...

Asked By victorhooi

I created a histogram plot using data from a file and no problem. Now I wanted to superpose data from
another file in the same histogram, so I do something like
n,bins,patchs = ax.hist(mydata1,100)
n,bins,patchs = ax.hist(mydata2,100)
but the problem i...

Asked By Open the way

I created a histogram plot using data from a file and no problem. Now I wanted to superpose data from
another file in the same histogram, so I do something like
n,bins,patchs = ax.hist(mydata1,100)
n,bins,patchs = ax.hist(mydata2,100)
but the problem i...

Asked By Open the way

I wish to make a Histogram in Matplotlib from an input file containing the raw data (.txt). I am facing issues in referring to the input file. I guess it should be a rather small program. Any Matplotlib gurus, any help ?
I am not asking for the code, so...

Asked By Arkapravo

I'm trying to set custom tick marks on my imshow() output, but haven't found the right combination.
The script below summarizes my attempts. In this script, I'm trying to make the tickmarks at all even numbers on each axis instead of the default (-10,-5...

Asked By zje

I'm trying to set custom tick marks on my imshow() output, but haven't found the right combination.
The script below summarizes my attempts. In this script, I'm trying to make the tickmarks at all even numbers on each axis instead of the default (-10,-5...

Asked By zje

I am trying to create bar graphs of letter frequency in Python. I thought the best way to accomplish this would be matplotlib, but I have been unable to decipher the documentation. Is it possible to label the bars of a matplotlib.pyplot.hist plot with one...

Asked By josePhoenix

I am trying to create bar graphs of letter frequency in Python. I thought the best way to accomplish this would be matplotlib, but I have been unable to decipher the documentation. Is it possible to label the bars of a matplotlib.pyplot.hist plot with one...

Asked By josePhoenix

I'm using matplotlib to make a histogram.
Basically, I'm wondering if there is any way to manually set the size of the bins as opposed to the number of bins.
Anyone with any ideas is greatly appreciated.
Thanks

Asked By Sam Creamer

While reading up on numpy, I encountered the function numpy.histogram().
What is it for and how does it work? In the docs they mention bins: What are they?
Some googling led me to the definition of Histograms in general. I get that. But unfortunately I ...

Asked By Aufwind

I was just trying to draw histogram using new OpenCV Python interface ( cv2 ).
Below is the code i tried:
import cv2
import numpy as np
import time
img = cv2.imread('zzz.jpg')
h = np.zeros((300,256,3))
b,g,r = cv2.split(img)
bins = np.arange(256).resha...

Asked By Abid Rahman K

I'm trying to plot a 2D histogram in Python using these code
from math import *
import pylab as p
import matplotlib.pyplot as plt
import numpy as np
x=part.points[:,0]
y=part.points[:,1]
z=part.points[:,2]
H, xedges, yedges = np.histogram2d(x, y, bins=...

Asked By Brian

I'm using matplotlib to make a histogram.
Basically, I'm wondering if there is any way to manually set the size of the bins as opposed to the number of bins.
Anyone with any ideas is greatly appreciated.
Thanks

Asked By Sam Creamer

Given an an array of values, I want to plot a log log histogram of these values by their counts. I only know how to log the x values, but not the y values because they are not explicitly created in my program.

Asked By user984923

here is the data:
111, 3
122, 4
155, 3
192, 5
11, 9
123, 10
120, 23
now how could I able to plot a histogram using this two set of data in matplotlib.
please help.

Asked By diffracteD