arm61 / uravu

A straightforward Bayesian data fitting library
https://uravu.readthedocs.io/
MIT License
25 stars 3 forks source link

Error thrown when using plotting.plot_relationship #22

Closed ff995 closed 4 years ago

ff995 commented 4 years ago

Describe the bug Running plotting.plot_relationship throws NameError: 'colors' is not defined.

To Reproduce Steps to reproduce the behavior: Pasted code from 'Using Distributions' tutorial.

Expected behavior A figure was created and displayed, but the graph was not plotted.

Screenshots If applicable, add screenshots to help explain your problem. scr

Desktop (please complete the following information):

arm61 commented 4 years ago

Do you have matplotlib, corner, and seaborn installed? There should have been a statement asking you to install these then you importing the plotting module.

ff995 commented 4 years ago

Thanks for responding. Installing corner and seaborn solved the problem. I don't think I got a message when I imported plotting from uravu. image

arm61 commented 4 years ago

Thanks for the issue anyway! I want to put in a fix to give an explanatory error instead of this not helpful error. So I am going to re-open this issue as a way to remind myself!

arm61 commented 4 years ago

The functionality has been improved in v1.1.1, which is now up on pypi. I'll close the issue now.