-2

there is a error message when I tried to create multiple graphs using seaborn. The following is the message that I received when I tried to use subplot

enter image description here

The graphics worked if I don´t use subplot and I tried to change the type of graphics from line to scatter but still did not work.

  • All code has to go in the question, in the form of a [mcve]. Screenshots of text are not allowed here. – user229044 Sep 03 '23 at 01:46
  • Please review #3 of [Creating Effective Stack Overflow Questions](https://trenton3983.github.io/files/Creating_Effective_StackOverflow_Questions.html). Do not post screenshots of code and data. – Trenton McKinney Sep 03 '23 at 01:49
  • Likely a duplicate of [How to plot in multiple subplots](https://stackoverflow.com/q/31726643/7758804). This [answer](https://stackoverflow.com/a/69228859/7758804) explains `.subplots(nrows=1, ncols=2, ...)` returns a 1d array, so you should use `ax=axes[0]` or `ax=axes[1]`. Only when nrows and ncols are both 2 or greater is axes a 2d array. However, this should typically result in `IndexError`, so there may be a different issue. – Trenton McKinney Sep 03 '23 at 01:57

0 Answers0