Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kidney.py not executing #15

Open
manujchandra opened this issue May 4, 2019 · 0 comments
Open

kidney.py not executing #15

manujchandra opened this issue May 4, 2019 · 0 comments

Comments

@manujchandra
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant