4 ms·
Would you suggest an alternative to pyplot? What problems does it cause for you?
by alanbernstein 8y ago
Would 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...