About 50 results
Open links in new tab
  1. How 2D histogram in Matplotlib (hist2D) works? - Stack Overflow

    Feb 20, 2019 · In documentation of the hist2d function : plt.hist2d(x,y , weights=weight) x and y and weights are array_like, with shape of (n, ). According to the documentation, one of outputs is: h : 2D ar...

  2. How do I use colorbar with hist2d in matplotlib.pyplot?

    Jul 2, 2014 · How do I use colorbar with hist2d in matplotlib.pyplot? Asked 11 years, 9 months ago Modified 8 years, 1 month ago Viewed 22k times

  3. Turn hist2d output into contours in matplotlib - Stack Overflow

    Oct 14, 2014 · I have generated some data in Python using matplotlib.hist2d. An example of the data is seen below. As you can see this data has some contours in it found by tracing the same color …

  4. How to add a colorbar for a hist2d plot - Stack Overflow

    Feb 22, 2017 · Well, I know how to add a colour bar to a figure, when I have created the figure directly with matplotlib.pyplot.plt. from matplotlib.colors import LogNorm import matplotlib.pyplot as plt import …

  5. matplotlib: log transform counts in hist2d - Stack Overflow

    Is there a simple way to get log transformed counts when plotting a two dimensional histogram in matplotlib? Unlike the pyplot.hist method, the pyplot.hist2d method does not seem to have a log para...

  6. Python Matplotlib Hist2d with 2d array - Stack Overflow

    May 22, 2014 · Python Matplotlib Hist2d with 2d array Ask Question Asked 11 years, 10 months ago Modified 11 years, 10 months ago

  7. Setting range of colorbar in the matplotlib hist2d plot

    Setting range of colorbar in the matplotlib hist2d plot Asked 10 years ago Modified 3 years, 2 months ago Viewed 6k times

  8. Smoothed 2D histogram using matplotlib and imshow

    Nov 4, 2014 · I try to do a 2D histogram plot and to obtain a "smooth" picture by a sort of interpolation. Thus I do the following combining plt.hist2d and plt.imshow import matplotlib.pyplot as plt import nump...

  9. matplotlib hist2d colormap for null pixels - Stack Overflow

    Nov 4, 2016 · I found the general approach to set the null pixels to white is to use a lognorm colormap. Is there a way to use a linear colormap but still set null pixels to white? Thanks!

  10. python - Plot hist2d with weights - Stack Overflow

    Jan 26, 2015 · I need to plot a hist2d with contour curves and colorbar from a pandas dataframe. The dataframe has three cols: x_col, y_col, z_col I want to plot something like this where z_col are the …