Python Forum
Tuple Unpacking with graphs in matplotlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tuple Unpacking with graphs in matplotlib
#1
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.
Reply


Messages In This Thread
Tuple Unpacking with graphs in matplotlib - by smw10c - Mar-23-2017, 04:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamically plotting graphs with matplotlib CAD79 11 552 Apr-17-2024, 04:09 PM
Last Post: deanhystad
  How to plot 2 graphs in one figure? man0s 1 1,392 Apr-25-2022, 09:18 AM
Last Post: Axel_Erfurt
  plotting of graphs mudezda1 2 2,856 Feb-11-2019, 12:44 PM
Last Post: mudezda1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020