#加载包import numpy as np
import pandas as pd
from plotnine import*import seaborn as sns
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
# 中文显示问题
plt.rcParams['font.sans-serif']=['Noto Serif SC']
plt.rcParams['axes.unicode_minus']=Falseimport scienceplots
plt.style.use(['science','ieee','notebook'])# notebook嵌入图片%matplotlib inline
# 提高分辨率%config InlineBackend.figure_format='retina'# 忽略警告import warnings
warnings.filterwarnings('ignore')
x = np.arange(1,10,0.5)
y_1 = x *2+4+ x **2
y_2 = x *0.5+3+ x **1.5
y_3 = x *3.5+2+ x **3
plt.figure()
plt.plot(x, y_1)
plt.plot(x, y_2)
plt.plot(x, y_3)
plt.xlabel('时间(s)')
plt.ylabel('电力情况(k)')
plt.show()