- http://matplotlib.org/examples/pylab_examples/multiple_yaxis_with_spines.html val_of_bins_x1, edges_of_bins_x1, patches_x1 = plt.hist(x1, nbins, range=(-50,50 ...
I noticed that the histogram plot fails when the data includes nan values import numpy as np import matplotlib.pyplot as plt data = np.random.random(100) data[10] = np.nan plt.hist(data ...