Strange graphics in matplotlib when zooming

I get a histogram image in matplotlib that looks great. Now I understand that I need a log scale along the y axis, so I just add the code:

ax.set_yscale('log')

but then, the histograms of the bars disappear and I get only some sparse dots, you know what could be the reason?

thank

+3
source share
1 answer

Use the keyword argument instead log=True. This is the FAQ in matplotlib user list :)

+4
source

Source: https://habr.com/ru/post/1737376/


All Articles