I'm following the tutorial here for what seems like the simplest example - a linear relationship.
I'm unclear on the very permissive imports, and don't seem to be able to show my plot.
my_seaborn_test.py
:
import numpy as np
import seaborn as sns
class SeabornTest(object):
def run_example(self):
sns.set(color_codes=True)
np.random.seed(sum(map(ord, "regression")))
tips = sns.load_dataset("tips")
sns.lmplot(x="size", y="tip", data=tips, x_estimator=np.mean)
On the command line:
python
from my_seaborn_test import SeabornTest
st = SeabornTest()
st.run_example()
All I get is silence and this warning:
/home/me/anaconda3/envs/myenv/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
warnings.warn(self.msg_depr % (key, alt_key))