Skip to content

Commit

Permalink
add trace w/ coloraxis to contour_heatmap_coloring_reversescale mock
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Dec 20, 2019
1 parent 6b9dc74 commit af025a2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
Binary file modified test/image/baselines/contour_heatmap_coloring_reversescale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 35 additions & 1 deletion test/image/mocks/contour_heatmap_coloring_reversescale.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,46 @@
"contours": {
"coloring": "heatmap"
},
"reversescale": true
"reversescale": true,
"colorbar": {
"len": 0.5,
"y": 1,
"yanchor": "top",
"title": {"text": "trace colorscale", "side": "right"}
}
},
{
"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"
},
"coloraxis": "coloraxis",
"xaxis": "x2",
"yaxis": "y2"
}
],
"layout": {
"grid": {"rows": 2, "columns": 1, "pattern": "independent"},
"title": {
"text": "Setting the X and Y Coordinates in a Contour Plot + reverse scale"
},
"coloraxis": {
"reversescale": true,
"colorbar": {
"len": 0.5,
"y": 0,
"yanchor": "bottom",
"title": {"text": "coloraxis colorscale", "side": "right"}
}
}
}
}

0 comments on commit af025a2

Please sign in to comment.