Re:Tips and tricks to write LaTeX papers in with figures gen...
by stilley2 on Monday March 18, 2019 @07:23PM
(#19426361)
I had problems using pyplot over ssh because it can assume there's a display and fail when it couldn't find one.
Maybe this has changed. I use the OO interface. For example https://matplotlib.org/gallery/api/agg_oo_sgskip.html
[ Parent
| on HN ]
Re:Tips and tricks to write LaTeX papers in with figures gen...
by jpeloquin on Monday March 18, 2019 @07:53PM
(#19426568)
Changing the plot backend should fix this.
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
https://stackoverflow.com/questions/2801882/generating-a-png...