JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.84k stars 354 forks source link

[FR] Change to ticks=:native after zooming or panning in the PyPlot backend #3304

Open isentropic opened 3 years ago

isentropic commented 3 years ago

Matplotlib is able to handle canvas events https://matplotlib.org/stable/users/event_handling.html Perhaps, after mouse clicking or panning the ticks handling could be delegated back to matplotlib? So this could perhaps elimate the need in ticks=:native for pyplot backend

isentropic commented 3 years ago

Some tips here https://matplotlib.org/stable/gallery/event_handling/zoom_window.html

relevant code here https://github.com/JuliaPlots/Plots.jl/blob/82f31c48b7d81e99145e7023a0a2c191128eb892/src/backends/pyplot.jl#L1275