How to disable just the zoom and pan interactions?

I would like to disable the zoom and pan interactions. For my graphs zoom and pan are not useful.
However I would like to keep the Hover interaction.



Here you go:

I need that feature too, but not with plotly.js – how to do that with normal py.iplot, e.g., with example from https://


@xpt Same place in the Python reference docs:

1 Like

Thanks a lot Jack, finally got it working now.

For anyone that cares, I’ve upload my code to,

showing how to do fixedrange.


I did not find “staticPlot: true” in the attribute reference. It should be added to the documentation.

staticPlot is documented here:

Is it possible to only disable the zoom but keep the pan option over the axes?