I’m using Jupyter Notebook v7.0.8 and seaborn to plot two small datasets as boxplots on the same graph, but it’s acting strangely.
Here is a snip of the code and output I’m using:
It looks as I expect it to look. However, if I run the cell a second time, I get this result:
Then, if I restart the kernel and rerun everything, I go back to the initial image, followed by the second image for all follow on runs of the same cell until I restart the kernel again, and the process repeats.
If I recreate the dataset and plot using google co-lab, I get the expected result no matter how many times I rerun the same cell (see image below):
Therefore, I suspect the issue is with Jupyter Notebook, but I really don’t know how to fix it.
Does anyone have any idea what could be causing this?
Kyle Sexton is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.