# 绘制图表
def plt_show(x: dict,
y: Union[dict, List[dict]],
size: Tuple[int, int],
subplot: Tuple[int, int] = (2, 2),
isSubplot: bool = True) -> None:
"""
根据传入的数据进行折线图的绘制
:param x: x轴坐标数据
x = dict(
data=, # 数据集
name= # x轴名称
xlim=(1, 100) # x轴数据范围
)
:param y: y轴需要绘制的数据
y = dict(
data=, # 数据集
name=, # y轴名称
line="r-", # 绘制线条及颜色,r:red, -:直线,其余样式自行网查
label=, # 表格上提示部分的线段名称
title=
# 表格title)
:param size: 画布大小
size = (8, 4) # width, height
:param subplot: 同时绘制图表的网格尺寸, 当isSubplot为True是才需要设置, 默认设置(2, 2)
subplot = (2, 2) # 在2*2的网格中分别绘制图表
:param isSubplot: 是否使用网格绘制图表
isSubplot: True/False
:return: None
"&#