3 ms·
Thanks for the write-up! Two notes from my experience: pgf output works well with latex as well (although will slowdown compilation), and I recommend not using
by stilley2 8y ago
Thanks for the write-up! Two notes from my experience: pgf output works well with latex as well (although will slowdown compilation), and I recommend not using the pyplot submodule, especially if you'll be running things remotely over ssh and don't have a display
- alanbernstein 8y agoWould you suggest an alternative to pyplot? What problems does it cause for you?
- stilley2 8y agoI 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 https://matplotlib.org/gallery/api/agg_oo_sgskip.html
- jpeloquin 8y agoChanging the plot backend should fix this. import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt https://stackoverflow.com/questions/2801882/generating-a-png-with-matplotlib-when-display-is-undefined https://stackoverflow.com/questions/2801882/generating-a-png...
- Wookai 8y agoIndeed, I remember having to switch to Agg for this reason but can't remember why I switched back. Maybe some rendering issues I had with Agg, not sure...