MBravoS / splotch

Simple PLOTs, Contours and Histograms is a small package with wrapper functions designed to simplify plotting calls from matplotlib.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Bug with nmin in hist() #44

Closed AstroRobin closed 4 years ago

AstroRobin commented 4 years ago

There seems to be a bug due to the addition of the nmin parameter in hist(). Minimum working example:

x=np.random.normal(2,1,10000) y=np.random.gamma(4,0.5,10000) z=np.cos(x*y)

fig, axes = splt.subplots()

splt.hist([x]2,v=[y]2,vstat=['median','mean'],plabel=['running median','running mean'],color='r', linestyle=['dotted','dashed'])

plt.show()

MBravoS commented 4 years ago

Fixed in version 0.4.6.8.