English 中文(简体)
Matplotlib - Figure Class
  • 时间:2024-12-22

Matplotpb - Figure Class


Previous Page Next Page  

The matplotpb.figure module contains the Figure class. It is a top-level container for all plot elements. The Figure object is instantiated by calpng the figure() function from the pyplot module −

fig = plt.figure()

The following table shows the additional parameters −

Figsize (width,height) tuple in inches
Dpi Dots per inches
Facecolor Figure patch facecolor
Edgecolor Figure patch edge color
Linewidth Edge pne width
Advertisements