You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reversescale: True doesn't reverse the colorbar on a contour plot with {contours: {coloring: 'heatmap'}}.
In the plot below, the colorbar indicates the red region has larger values, but it actually has smaller values.
Code
vardata=[{z: [[10,10.625,12.5,15.625,20],[5.625,6.25,8.125,11.25,15.625],[2.5,3.125,5.,8.125,12.5],[0.625,1.25,3.125,6.25,10.625],[0,0.625,2.5,5.625,10]],x: [-9,-6,-5,-3,-1],y: [0,1,4,5,7],type: 'contour',contours: {coloring: 'heatmap'},reversescale: true,}];varlayout={title: 'Setting the X and Y Coordinates in a Contour Plot'};Plotly.newPlot('myDiv',data,layout);