bins provided to plot_pdf not working

14 views
Skip to first unread message

Piotr Fronczak

unread,
Aug 10, 2022, 6:30:54 AM8/10/22
to powerlaw-general
Hi,

I try to plot pdf with my own bins. Line 1970 in powerlaw.py in function pdf:

    if 'bins' in kwargs.keys():
        bins = kwargs.pop('bins')

suggests that I can provide bins as an argument to plot_pdf. However (despite removing 'bins' from kwargs in the lines above), kwargs in the parent function plot_pdf still contain element 'bins'. It makes error in plt.plot function from matplotlib since 'bins' is not recognized as an argument. Is this the error in the source code?
Reply all
Reply to author
Forward
0 new messages