Disabling smoothing / anti-aliasing / filtering / interpolation / Using nearest filtering?

Hello everyone,

when you use the to_image or the write_image function, is there a way to disable the smoothing of the graphics?
What I mean is to disable any filtering / smoothing of the resulting graphics. The goal would be jagged, but pixel perfect lines here.
Is there an option to set this, like interpolation='nearest' or something?

For further explaination, I wanted a resulting graph that looks like the one on the left:


Best regards! :slight_smile:

Hi @Pyrit,

Were you able to find a solution for this?
I think that this linke might be interesting for you: plotly.py/_line.py at b14f8ada2fd18aa60a480570e95d599d125ba5ba ยท plotly/plotly.py ยท GitHub

1 Like