I have a question about paddings in plotly heatmaps. Indeed if i want to make a regular space between all cells of my heatmap I juste need to do this :
data = np.random.uniform(size= (5,5))
fig = go.Figure(data=go.Heatmap(z = data,
xgap= 5,
ygap= 5,
colorscale="RdBu_r"))
But, the thing I want is, for example, to left a space each 2 cells in order to make squares of 4, or more. This will give something like this :

Is there a way to do this in plotly ?
Thank you in advance
You can achieve this by customizing the x and y axes tick labels and then adjusting the xgap and ygap parameters accordingly.
Like this :
Output :
[EDIT] :
Finally, plotly does not have a built-in feature to directly reduce the size of a specific row or column. you may need to consider alternative approaches, such as creating custom grid-like visualizations using scatter plots, annotations, or custom shapes in Plotly. Here's an example