Mar-23-2017, 04:16 PM

I hope you are all having a good day. I am currently taking a MOOC on Python. We went over a bit of code in matplotlib:

Fig=plt.figure()

Fig,axes=plt.subplots(nrows=1,ncols=2)

The instructor said that "fig, axes" is a way of doing tuple unpacking. I know what tuple unpacking is, however, I don't understand it in this context. If someone could please explain it would be greatly appreciated.

Fig=plt.figure()

Fig,axes=plt.subplots(nrows=1,ncols=2)

The instructor said that "fig, axes" is a way of doing tuple unpacking. I know what tuple unpacking is, however, I don't understand it in this context. If someone could please explain it would be greatly appreciated.