Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jpeloquin
7y ago
0 comments
Share
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...
0 comments
default
newest
oldest
stilley2
7y ago
I believe Agg is only for bitmap output. While there are probably backends that work with a headless system, I find the OO option much more flexible.
p10_user
7y ago
Agg works for all outputs. I use it in combination with OO over ssh all the time.
j
/
k
navigate · click thread line to collapse