-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4437 from plotly/contour-heatmap-coloring-colorsc…
…ale-reversescale-fix Fix colorbar of reversescale colorbars of heatmap-coloring contours
- Loading branch information
Showing
3 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions
59
test/image/mocks/contour_heatmap_coloring_reversescale.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"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, | ||
"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"} | ||
} | ||
} | ||
} | ||
} |