Home > other >  Matplotlib HuaShe diagram method
Matplotlib HuaShe diagram method

Time:09-25

Follow B stand to learn, to share learning,

The from matplotlib import pyplot as PLT # let program calls the use of more simple
FIG=PLT. Figure (=50 figsize=(20, 10), dpi)
Draw a line chart #
X=range (2,26,2) # 12 Numbers, the range does not include the 26
Y=,13,14,5,17,20,25,26,26,24,22,18 [15]

PLT. The plot (x, y)
PLT. Xticks (range (2, 26)) # minister, the scale of the X
PLT. Savefig (' JQP. SVG ') # save, SVG is suitable for the hd picture
PLT. The show () # show
  • Related