Generate custom dynamic custom labels given corresponding tick values

Hi, so I currently have a sequence of strings (years and months) called labels and a corresponding sequence of integers (the number of months) called x_ticks for one axis. Right now, I can manually choose the ticks in a Surface plot by first feeding in tickvals=x_ticks and ticktext=labels.take(x_ticks) inside scene.xaxis. However, I can’t dynamically adjust the labels based on the current ticks chosen. Ideally I’d just like to set nticks, have the tick marks be chosen automatically, and then have the label change when you zoom in by looking up the corresponding entry in tick text. Same idea for displaying the hover text for the x value. Is this possible?