PeterRochford / SkillMetrics

A Python library for calculating and displaying the skill of model predictions against observations.
GNU General Public License v3.0
195 stars 91 forks source link

Need to be able to change Legend size as well as the color on the Taylor diagrams #26

Closed yousef1983 closed 1 year ago

yousef1983 commented 2 years ago

I am running taylor_diagram_ex10.py but I am not happy with the legend size. Can you please help in adjusting the legend size and location? how can I change the marker color for each of them?

image

Thanks!

PeterRochford commented 1 year ago

I have added a 'markers" option to the SkillMetrics package in version 1.2.2 that I hope to release soon. This allows the user to individually control of the marker label, label color, symbol, size, face color, and edge color via specifications given via a dictionary. Refer to the examples Target 11 and Taylor 15.

This will meet your need to change the color and shape of the markers. How to change the size of the legend remains an outstanding issue. The cleaner way to accomplish this would be within the main script using legend handles that are returned with the diagram rather than a custom feature of the SkillMetrics package. I will add this to the To Do list as a FAQ after releasing SkillMetrics 1.2.2 via pip.

PeterRochford commented 1 year ago

I have added to the FAQ under the Plotting Issues section a new Q13 on how to adjust the legend size and other properties. However, the SkillMetrics package as currently designed does not allow you to control the legend location.

PeterRochford commented 1 year ago

SkillMetrics 1.2.2 is now available.