About 50 results
Open links in new tab
  1. How to plot a histogram using Matplotlib in Python with a list of data ...

    Mar 5, 2024 · If I have a list of y-values that correspond to bar height and a list of x-value strings, how do I plot a histogram using matplotlib.pyplot.hist? Related: matplotlib.pyplot.bar.

  2. Plot histogram with colors taken from colormap - Stack Overflow

    I want to plot a simple 1D histogram where the bars should follow the color-coding of a given colormap. Here's an MWE: import numpy as n import matplotlib.pyplot as plt # Random gaussian data. Nto...

  3. python - Histogram Matplotlib - Stack Overflow

    Mar 16, 2011 · 15 I know this does not answer your question, but I always end up on this page, when I search for the matplotlib solution to histograms, because the simple histogram_demo was removed …

  4. Plotting histograms from grouped data in a pandas DataFrame

    Oct 25, 2013 · 14 One solution is to use matplotlib histogram directly on each grouped data frame. You can loop through the groups obtained in a loop. Each group is a dataframe. And you can create a …

  5. Is there a clean way to generate a line histogram chart?

    35 I need to create a histogram that plots a line and not a step or bar chart. I am using python 2.7 The plt.hist function below plots a stepped line and the bins don't line up in the plt.plot function.

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

    To do so, you can get your histogram data using matplotlib, clear the axis, and then re-plot it on two separate axes (shifting the bin edges so that they don't overlap):

  7. How to make a histogram from a list of data and plot it with matplotlib

    How to make a histogram from a list of data and plot it with matplotlib Asked 11 years, 6 months ago Modified 3 years, 3 months ago Viewed 161k times

  8. matplotlib histogram with frequency and counts - Stack Overflow

    Feb 25, 2015 · The examples on the matplotlib site give a great overview of some of the features. I don't know how to use your provided sample data without transforming it. I altered your example to …

  9. Fitting a histogram with python - Stack Overflow

    Oct 18, 2011 · "fit this histogram with a gaussian function"? Usually we just compute the mean and standard deviation of the histogram directly. What do you mean by "fit this histogram with a gaussian …

  10. Plotting a histogram with a function line on top - Stack Overflow

    I'm trying to do a little bit of distribution plotting and fitting in Python using SciPy for stats and matplotlib for the plotting. I'm having good luck with some things like creating a histogram: ...