henry2004y / Batsrus.jl

BATSRUS/SWMF Data Processor
https://henry2004y.github.io/Batsrus.jl/dev/
MIT License
5 stars 2 forks source link

Headless Matplotlib support #23

Closed henry2004y closed 3 years ago

henry2004y commented 3 years ago

When doing processing in batch mode on a cluster, there's usually no need to render the plots on screen. There exists such a backend for this purpose:

using PyPlot
PyPlot.matplotlib.use("Agg")

However, notice that currently Agg backend does not support draw_artist. For example, you cannot add an anchored text to your figure.

Right now I use this in tests.