You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
cate should display plots maps and time series (in Desktop mode) or create a plot file (in Command Line mode)
Taking as example the workflow in https://cate.readthedocs.io/en/latest/quick_start.html, the various figures in the example should be created as png files - or displayed on screen if running the equivalent set of operations in Desktop mode
Actual behaviour
the desktop version stalls (without throwing any error) when attempting to create a plot. The Command Line interface throws an error message with multiple exception codes, see example below.
The problem appears to be that the matplotlib plotting library on the OSX installation does not see the TkAgg backend to actually render the plots.
This matplotlib issue on MacOS has been reported elsewhere on GitHub: MTG/sms-tools#36
One way of fixing this issue is as shown in MTG/sms-tools#36 (comment) i.e. by prescribing TkAgg in matplotlibrc, for instance like that: $ mkdir -p ~/.matplotlib $ echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
After this both the Desktop and the CLI appear to output plots correctly
The text was updated successfully, but these errors were encountered:
I have not seen this problem so far. Cate does not set a default matplotlib backend and from official matplotlib docs:
With a typical installation of matplotlib, such as from a binary installer or a linux distribution package, a good default backend will already be set, allowing both interactive work and plotting from scripts, with output to the screen and/or to a file, so at least initially you will not need to use any of the methods given above.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected behavior
cate should display plots maps and time series (in Desktop mode) or create a plot file (in Command Line mode)
Taking as example the workflow in https://cate.readthedocs.io/en/latest/quick_start.html, the various figures in the example should be created as png files - or displayed on screen if running the equivalent set of operations in Desktop mode
Actual behaviour
the desktop version stalls (without throwing any error) when attempting to create a plot. The Command Line interface throws an error message with multiple exception codes, see example below.
Steps to reproduce the problem
Using a subset of the example in https://cate.readthedocs.io/en/latest/quick_start.html:
$ cate ws new
$ cate res open oz07 esacci.OZONE.mon.L3.NP.multi-sensor.multi-platform.MERGED.fv0002.r1 2007-01-01 2007-12-30
$ cate res set oz_tot select_var ds=@oz07 var=O3_du_tot
$ cate ws run plot_map ds=@oz_tot var=O3_du_tot file=fig2.png
At this point the CLI trows the error:
Specifications
cate v2.0.0. on MacOs High Sierra 10.13.6
Interpretation and solution
The problem appears to be that the matplotlib plotting library on the OSX installation does not see the TkAgg backend to actually render the plots.
This matplotlib issue on MacOS has been reported elsewhere on GitHub:
MTG/sms-tools#36
One way of fixing this issue is as shown in MTG/sms-tools#36 (comment) i.e. by prescribing TkAgg in matplotlibrc, for instance like that:
$ mkdir -p ~/.matplotlib
$ echo "backend: TkAgg" > ~/.matplotlib/matplotlibrc
After this both the Desktop and the CLI appear to output plots correctly
The text was updated successfully, but these errors were encountered: