Seaborn FacetGrid "Axes instance argument not found" -- when command cells run individually (F9)

767 views
Skip to first unread message

p zajonc

unread,
Jan 28, 2018, 11:22:37 AM1/28/18
to spyder
I updated spyder and conda modules yesterday trying to get around this issue.  The resolution is puzzling to me.  Can anyone help explain?

I have an untitled set of code following the FacetGrid examples:

```
import seaborn as sns; 
tips = sns.load_dataset("tips")
g = sns.FacetGrid(tips, col="time", row="smoker")
g = g.map(plt.hist, "total_bill")
```

as a block of code it runs.  Running this pressing F9 one line at a time?  Last line gives error message:

```
ValueError: Axes instance argument was not found in a figure.
```

Sounds harmless but it is a surprising result.  Not sure why the issue popped up just with this particular code, and perhaps it can happen elsewhere.  Any explanation appreciated.
Reply all
Reply to author
Forward
0 new messages