Cant get correct Heatmap xaxis range

Hey @alp, welcome to the forums.

Not sure if I understand what you are after, but are your referring to something like this?

import plotly.graph_objects as go
from plotly.subplots import make_subplots
import numpy as np

data = np.random.randint(0, 255, size=(31, 31))

fig = go.Figure(
    go.Heatmap(z=data)
)

fig.update_xaxes(range=[1, 31], tickmode='array', tickvals=[i for i in range(1, 32) if i>17])
fig.show()


mrep tickmode