import matplotlib.pyplot as plt
import numpy as np
import random
x = np.arange(0,99)
y = []
for i in x:
y.append(random.uniform(0,100))
plt.plot(x,y)
figmanager = plt.get_current_fig_manager()
figmanager.window.state('zoomed') #最大化
plt.show()
import matplotlib.pyplot as plt
import numpy as np
import random
x = np.arange(0,99)
y = []
for i in x:
y.append(random.uniform(0,100))
plt.plot(x,y)
figmanager = plt.get_current_fig_manager()
figmanager.window.state('zoomed') #最大化
plt.show()
本文标题:Matplotlib图表窗口最大化
本文链接:https://www.haomeiwen.com/subject/kljzaktx.html
网友评论