About 1,050,000 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. 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 …

  3. 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, 4 months ago Modified 3 years, 1 month ago Viewed 160k times

  4. matplotlib histogram: how to display the count over the bar?

    Oct 4, 2016 · Closed last year. With matplotlib's hist function, how can one make it display the count for each bin over the bar? For example,

  5. 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...

  6. python - Add KDE on to a histogram - Stack Overflow

    Oct 25, 2015 · I would like to add a density plot to my histogram diagram. I know something about pdf function but I've got confused and other similar questions were not helpful. from scipy.stats import * …

  7. How to choose bins in matplotlib histogram - Stack Overflow

    Nov 1, 2015 · Can someone explain to me what "bins" in histogram are (the matplotlib hist function)? And assuming I need to plot the probability density function of some data, how do the bins I choose …

  8. matplotlib - Circular / polar histogram in python - Stack Overflow

    import matplotlib.pyplot as plt import numpy as np angles0 = np.random.normal(loc=0, scale=1, size=10000) angles1 = np.random.uniform(0, 2*np.pi, size=1000) # Construct figure and axis to plot …

  9. pyplot: draw a smooth curve over a histogram - Stack Overflow

    Feb 11, 2021 · There is a histogram rendered using a DataFrame as a data source: import seaborn as sns import matplotlib.pyplot as plt plt.rcParams ["figure.figsize"] = (14,14) df ['rawValue'].hist (bins...

  10. Histogram with Boxplot above in Python - Stack Overflow

    Oct 28, 2015 · 20 Hi I wanted to draw a histogram with a boxplot appearing the top of the histogram showing the Q1,Q2 and Q3 as well as the outliers. Example phone is below. (I am using Python and …