Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

综合评分表1.7.5 版本无法显示legend #157

Open
xigrug opened this issue Dec 24, 2023 · 1 comment
Open

综合评分表1.7.5 版本无法显示legend #157

xigrug opened this issue Dec 24, 2023 · 1 comment

Comments

@xigrug
Copy link

xigrug commented Dec 24, 2023

image
使用的是文档中的例子,没有显示legend

grade_list = [10,25]
member_list = ["ECMWF","CMA_GFS"]
far_array = np.array([[0.4,0.5],[0.6,0.7]])
mr_array =np.array([[0.2,0.3],[0.4,0.5]])
mem.performance_mr_far(mr_array,far_array,grade_list = grade_list,member_list = member_list,x_y = "far_mr",
               save_path = r"p4.png",show = True)
@kM-Stone
Copy link

kM-Stone commented Oct 5, 2024

最新版本还是没有修复,应该是在画图函数里面ax1.legend()中,bbox_to_anchor的参数设置问题,legend超出画布范围了,自行修改这个参数即可。修改后把画图函数所在的这个plot.py文件单独抽出来引用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants