bigly icon indicating copy to clipboard operation
bigly copied to clipboard

headless systems

Open colindaven opened this issue 8 years ago • 1 comments

Hi,

nice, I like the plotting function very much.

Any chance the plotting function could take an argument to save an image directly to disk instead of requiring x11 ?

Then it would be a nice way to script lots of images without manual work for example, and supply them to users.

Thanks, Colin

colindaven avatar Mar 30 '17 15:03 colindaven

Hi, glad it's useful! The script was just meant to be an example of using the output. You can change it to shave a image by replacing plt.show() with plt.savefig('some.png')

which may require you to set:

import matplotlib
matplotlib.use('Agg')

at the top of the script.

brentp avatar Mar 30 '17 15:03 brentp