plotting.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:triage 作者: dssg 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号