News for hackers. Stuff that matters.
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...
Re:Tips and tricks to write LaTeX papers in with figures gen... by stilley2 on Monday March 18, 2019 @11:08PM (#19427746)
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.
Re:Tips and tricks to write LaTeX papers in with figures gen... by p10_user on Tuesday March 19, 2019 @01:35AM (#19428346)
Agg works for all outputs. I use it in combination with OO over ssh all the time.