Weird graphics in matplotlib when changing the scale
I get a histogram pict开发者_开发百科ure in matplotlib which looks great. Now I realize I need a log scale on the y-axis, so I just add to the code:
ax.set_yscale('log')
but then, the histogram bars dissapear and I only get some sparse points, do you know waht could be the reason?
Thanks
Use hist's log=True
keyword argument instead. This is a FAQ in matplotlib-user list :)
精彩评论