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
~\Desktop\Python\BAYES\thinkplot\thinkplot.py in Save(root, formats, **options)
766 save_options[option] = options.pop(option)
767
--> 768 Config(**options)
769
770 if formats is None:
~\Desktop\Python\BAYES\thinkplot\thinkplot.py in Config(**options)
645 for name in names:
646 if name in options:
--> 647 getattr(plt, name)(options[name])
648
649 global LEGEND
Hello,
When executing kidney.py I am getting many such errors when plots are saved:
TypeError Traceback (most recent call last)
in
18 rho = 0.0
19 sequences = calc.MakeSequences(100, rho, fit)
---> 20 PlotSequences(sequences)
21
22 calc.PlotBuckets()
in PlotSequences(sequences)
22 yticks=MakeTicks([0.2, 0.5, 1, 2, 5, 10, 20]),
23 ylabel='diameter (cm, log scale)',
---> 24 yscale='log')
~\Desktop\Python\BAYES\thinkplot\thinkplot.py in Save(root, formats, **options)
766 save_options[option] = options.pop(option)
767
--> 768 Config(**options)
769
770 if formats is None:
~\Desktop\Python\BAYES\thinkplot\thinkplot.py in Config(**options)
645 for name in names:
646 if name in options:
--> 647 getattr(plt, name)(options[name])
648
649 global LEGEND
~\Anaconda3\lib\site-packages\matplotlib\pyplot.py in yticks(ticks, labels, **kwargs)
1624 labels = ax.get_yticklabels()
1625 elif labels is None:
-> 1626 locs = ax.set_yticks(ticks)
1627 labels = ax.get_yticklabels()
1628 else:
~\Anaconda3\lib\site-packages\matplotlib\axes_base.py in set_yticks(self, ticks, minor)
3724 Default is
False
.3725 """
-> 3726 ret = self.yaxis.set_ticks(ticks, minor=minor)
3727 return ret
3728
~\Anaconda3\lib\site-packages\matplotlib\axis.py in set_ticks(self, ticks, minor)
1706 xleft, xright = self.get_view_interval()
1707 if xright > xleft:
-> 1708 self.set_view_interval(min(ticks), max(ticks))
1709 else:
1710 self.set_view_interval(max(ticks), min(ticks))
TypeError: '<' not supported between instances of 'str' and 'float'
The text was updated successfully, but these errors were encountered: