I would have to specify the line value but with a different contour scale, i.e. the lines of this figure:
contour plot with 0.1 size
But with the scale of this one:
contour plot with 0.01 size
With the code for the first image:
plot_ly(data = TRW_Gamir, x = ~TRW_Gamir, y=~coef_spei1_TRW.month, z=~value,
type = "contour", colorscale ="Jet" , showscale= TRUE,
line= list(width=0.5, color="black"),
contours = list(start = -0.3, end = 0.6, size = 0.1, showlabels = T))
And for the second:
plot_ly(data = TRW_Gamir, x = ~TRW_Gamir, y=~coef_spei1_TRW.month, z=~value,
type = "contour", colorscale ="Jet" , showscale= TRUE,
line= list(width=0.01, color="black"),
contours = list(start = -0.3, end = 0.6, size = 00.1, showlabels = F))
The final figure has to be like this: