Closed ashesh-0 closed 2 years ago
For people of the future: It worked for me, you need something like this in your loop: ax[rowIndexInYourSubplot, colIndexInYourSubplot] = plt.subplot( numberOfRows, numberOfCols, posOfCurrentSubplot ) Maybe it works also with a "one index" subplot (only 1 row or 1 col), cfr subplot doc
The capability to plot target and taylor diagrams inside matplotlib's subplots is now available in SkillMetrics 1.2.1 (released 9/5/2022). Refer to the following examples that use this capability:
"pip install SkillMetrics --upgrade" doesn't install the latest update (1.2.1). It still installs version 1.1.8
I tried specifying the version to install but got this error: "No matching distribution found for SkillMetrics==1.2.1"
Collins,
The latest version of SkillMetrics only supports Python 3. Try the following command instead:
pip3 install SkillMetrics --upgrade
It works fine for me in installing version 1.2.1. I have updated the documentation on the Wiki home https://github.com/PeterRochford/SkillMetrics/wiki page accordingly.
The project description on the PyPI page will not get updated until I post a new release.
Peter Rochford
On Sep 7, 2022, at 2:33 AM, Collins Owusu @.***> wrote:
"pip install SkillMetrics --upgrade" doesn't install the latest update (1.2.1). It still installs version 1.1.8
I tried specifying the version to install but got this error: "No matching distribution found for SkillMetrics==1.2.1"
— Reply to this email directly, view it on GitHub https://github.com/PeterRochford/SkillMetrics/issues/22#issuecomment-1238965643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3YS7F4GYOIBOGLTCME7E3V5AZKBANCNFSM4TAEZVMA. You are receiving this because you commented.
Hello Peter,
I use Python 3. I have uninstalled the previous version and even purged pip's cache but it still installs version 1.1.8.
Below is the results of my installation process:
Perhaps there is a conflict with anaconda3 which you appear to have installed on your computer. I don't use anaconda, but according to my internet search you need to start anaconda and then install from within that environment. The steps appear to be:
I hope this helps.
Hello Peter,
Thanks for your help. I installed it within my working environment but it didn't resolve the problem.
I downloaded the SkillMetrics code from the repository and imported it directly, which works for me.
I still don't know why the pip install is not working for me.
Thank you for the update. Since you've solved your problem I will now close this issue.
Hello Peter,
Thanks for your help. I installed it within my working environment but it didn't resolve the problem.
I downloaded the SkillMetrics code from the repository and imported it directly, which works for me.
I still don't know why the pip install is not working for me.
Hello @collinsowusu ,
I am currently having the same issue with installing SkillMetrics -1.2.1 using Google Colab. Can you share the process of downloading and importing the code directly?
All attempts to install version 1.2.1 failed.
Thank you.
Hello @ogunjosam,
Open the SkillMetrics code repository and download the code as zip. Unzip and copy the skill_metrics folder to the location of your code.
You can then do: "import skill_metrics as sm" Python will first look at the package folder at your code location before it will search in any other location on your computer so it will import the from the folder you downloaded.
Collins
Hello @ogunjosam,
Open the SkillMetrics code repository and download the code as zip. Unzip and copy the skill_metrics folder to the location of your code.
You can then do: "import skill_metrics as sm" Python will first look at the package folder at your code location before it will search in any other location on your computer so it will import the from the folder you downloaded.
Collins
Thank you so much.
@collinsowusu: Thank you for posting a solution. I've added it to the FAQ under Installation Issues as Q2.
Hello, I was looking to plot the taylor diagram inside matplotlib's subplots. Something like:
I don't see
taylor_diagram
supportingax
arguement. Do let me know if there is already some (even hacky) way to do this. Thanks !!