About 52,200 results
Open links in new tab
  1. How to plot a histogram using Matplotlib in Python with a list of …

    Mar 5, 2024 · To plot its histogram, we need to specify the number of bins (Sergey's answer includes a way to calculate the correct number of bins). Let's plot raw_data with 20 bins (which …

  2. python - How to make a histogram from a list of data and plot it …

    The numpy histogram functionality is really the Cadillac option because np.histogram can do things like try to figure out how many bins you need and it can do weighting and it has all the …

  3. python - Plotting a histogram with a function line on top - Stack …

    I can even take the same gamma parameters and plot the line function of the probability distribution function (after some googling): rv = ss.gamma(5,100,22) x = np.linspace(0,600) h …

  4. python - Plot two histograms on single chart - Stack Overflow

    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 this n,bins,patchs = …

  5. python - Plot a histogram from a Dictionary - Stack Overflow

    Mar 14, 2017 · I created a dictionary that counts the occurrences in a list of every key and I would now like to plot the histogram of its content. This is the content of the dictionary I want to plot: …

  6. Plot a histogram sort by values in Python - Stack Overflow

    May 16, 2018 · Plot a histogram sort by values in Python. Ask Question Asked 7 years ago. Modified 2 years, 10 months ago.

  7. Plotting Histogram with given x and y values - Stack Overflow

    From your plot and initial code, I could gather that you already have the bin and the frequency values in 2 vectors x and y. In this case, you will just plot a bar chart of these values, as …

  8. Plotting histograms from grouped data in a pandas DataFrame

    Oct 25, 2013 · I write this answer because I was looking for a way to plot together the histograms of different groups. What follows is not very smart, but it works fine for me. I use Numpy to …

  9. Vertical Histogram in Python and Matplotlib - Stack Overflow

    Mar 11, 2014 · Just use barh() for the plot:. import math from matplotlib import pyplot as plt import numpy as np sample=np.random.normal(size=10000) vert_hist=np.histogram(sample ...

  10. python - Bin size in Matplotlib (Histogram) - Stack Overflow

    Nov 15, 2019 · Further to CodingCat's excellent solution above, for float data, if you want the histogram bars centred around integer x-ticks instead of having the bar boundaries at the x …

Refresh