Trouble understanding plotting what this does - fig,ax = plt.subplots(1,1,figsize=(5,4))

Hey so i was going through the optional lab and the above syntax is not clear to me.I know it returns fig and axes as tuples but can u just in case explain me what it does and the attributes

Hey @Monster,
Welcome to the community. There’s nothing better than the official documentation and the tutorials to understand how plt.subplots() works. You can check out the tutorial here and the documentation here. Whichever attribute you don’t understand, you can simply google search for it with matplotlib added in front of your query, and check out the documentation for that attribute. I hope this helps.