0

I created a matplotlib figure (matplotlib on server) and displaying it with mpld3.draw_figure (nodejs on client) only gives blurry images, similar to the ones here:

How to 'turn off' blurry effect of imshow() in matplotlib?

        mpld3.draw_figure(`chartBox-${round}`,chart,false,true)

Interpolation setting 'nearest', 'none', did not change anything:

        plt.imshow(G,interpolation='nearest')

I assume its some interpolation problem... maybe also there is a 0.5 shift, so that gridpoints 1 -> 1.5 and are then interpolated.

instantlink
  • 180
  • 1
  • 9

1 Answers1

0

First switching back to matplotlib 1.5.1 and then

mpl.use('Agg')

solved it

see here: Generating a PNG with matplotlib when DISPLAY is undefined

instantlink
  • 180
  • 1
  • 9