![]() scatter ( x, y ) # Share a X axis with each column of subplots plt. subplots ( 2, 2, subplot_kw = dict ( polar = True )) axs. scatter ( x, y ) # Create four polar axes and access them through the returned array fig, axs = plt. set_title ( 'Simple plot' ) # Create two subplots and unpack the output array immediately f, ( ax1, ax2 ) = plt. sin ( x ** 2 ) # Create just a figure and only one subplot fig, ax = plt. Typical idioms for handling the return value are: Theĭimensions of the resulting array can be controlled with the squeeze **fig_kwĪll additional keyword arguments are passed to theĪx can be either a single Axes object or anĪrray of Axes objects if more than one subplot was created.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |