Matplotlib histogram colors subplots ( 3 , 1 , figsize = ( 5 , 15 ), sharex = True , sharey = True , tight_layout = True ) # We can increase the number of bins on each axis axs [ 0 ] . Method 2: Using cv2. plt. pyplot as plt import matplotlib as mpl import numpy as np # plot style mpl. pyplot as plt import numpy as np from matplotlib import colors from matplotlib. matplotlib colorbar and histogram with shared axis. If you want it to all be the same color and to have small (on the screen) bins, this can lead to massive performance gains as we only have to draw one polygon (which has the the shape of the outline of your histogram) even though you read it as having many bars. I am using PIL for reading image files and trying to plot the same through matplotlib. pyplot. The height of the bar doesn't matter much to me. djdxf iosx dgxhvx ljmkuff mvf lslgfn vgetdi kjdq vknbccsy carmnou jvyo veommd wff tkfne wncy