python draw an icon --subplots_adjust

subplots_adjust
description Parameter
Adjusting the spacing of margins and subplots adjust the spacing of the margins and subpicture
subplots_adjust(self, left=None, bottom=None, right=None, top=None,
                    wspace=None, hspace=None)
Tune the subplot layout. FIG Adjustment sub layout.
The parameter meanings (and suggested defaults) are: Parameter Meaning (default and recommended value) is:
left = 0.125 # the left side of the subplots of the left side of the figure neutron image of FIG.
the right side of the figure of the subplots FIG neutron image of right = 0.9 # the right side
bottom = 0.1 # the bottom of the subplots neutron bottom of the figure image of FIG.
top = 0.9 # the top of the subplots top of the figure neutron image of FIG.
wspace = 0.2   # the amount of width reserved for space between subplots,
               # expressed as a fraction of the average axis width
# Width of the space between a part of the reserved sub-picture, the average width of the shaft
hspace = 0.2   # the amount of height reserved for space between subplots,
               # expressed as a fraction of the average axis height
# Reserved space height between the sub-view portion of the average height of the axis
The addition of this statement, the child will vary slightly smaller, because the space occupied part of the axis
fig.subplots_adjust(wspace=0.5,hspace=0.5)
FIG contrast effect:
the right is a jerk of subplots_adjust

More details and examples refer to the code:

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots_adjust.html

 

Guess you like

Origin www.cnblogs.com/huangchenggener/p/10971316.html