def _plot_lines(frame, x_col, y_col, ax, grp_col, colordict, cat_col, styledict):
# plot the lines, one for each model group,
# looking up the color by model type from above
for grp_val in np.unique(frame[grp_col]):
df = frame.loc[frame[grp_col] == grp_val]
cat = df.iloc[0][cat_col]
df.plot(x_col, y_col, ax=ax, c=colordict[cat], style=styledict[cat], legend=False)
评论列表
文章目录