On Tue, May 27, 2008 at 6:29 AM, Johann Cohen-Tanugi <[EMAIL PROTECTED]> wrote: > hello, > when histogramming a distribution in log scale, I have some empty bins, > which drives the y axis to 1e-100 as a lower limit, completely squashing > the histogram....
I made changes to svn trunk so that zero area rectangles no longer influence the autoscaling. So this example scales correctly: import numpy as np import matplotlib.pyplot as plt x = np.random.rand(100) fig = plt.figure() ax = fig.add_subplot(111) n, bins, patches = ax.hist(x, 50, log=True) plt.show() Thanks for the suggestion, JDH ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users