You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this when trying to plot a legend. I passed label='blah' to the plotpdf() function and then called plt.legend(), and it shows the same label twice for the histogram and the fitted power law.
I also would like to use the density=True option for the histogram to get a PDF rather than frequency on the y-axis, but it gives an error when it tries to pass this to the plt.plot() function to plot the powerlaw fit line.
Could there be some way to pass two separate sets of kwargs? Or catch the error if the kwarg is inappropriate for one of the plot types and try again without that kwarg?
Thanks.
The text was updated successfully, but these errors were encountered:
Yes, this is probably not too hard - if you want to dig in the source code and fix it yourself, I'd welcome a PR, otherwise I'll try to have a look when I can
I noticed this when trying to plot a legend. I passed label='blah' to the plotpdf() function and then called plt.legend(), and it shows the same label twice for the histogram and the fitted power law.
I also would like to use the density=True option for the histogram to get a PDF rather than frequency on the y-axis, but it gives an error when it tries to pass this to the plt.plot() function to plot the powerlaw fit line.
Could there be some way to pass two separate sets of kwargs? Or catch the error if the kwarg is inappropriate for one of the plot types and try again without that kwarg?
Thanks.
The text was updated successfully, but these errors were encountered: