-
-
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 #5985 from andrew-matteson/log-contour
Interpolate contours in linear space, not data space
- Loading branch information
Showing
5 changed files
with
84 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Improve drawing the contour lines in non-linear space e.g. on log axes [[#5985](https://github.com/plotly/plotly.js/pull/5985)], with thanks to @andrew-matteson for the contribution! |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,72 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"x": [1,2,3,4,5], | ||
"y": [1,2,3,4,5], | ||
"z": [ | ||
[0 , 3.1250, 12.5000, 28.1250, 50.0000], | ||
[3.1250, 6.2500, 15.6250, 31.2500, 53.1250], | ||
[12.5000, 15.6250, 25.0000, 40.6250, 62.5000], | ||
[28.1250, 31.2500, 40.6250, 56.2500, 78.1250], | ||
[50.0000, 53.1250, 62.5000, 78.1250, 100.0000] | ||
], | ||
"contours": {"start": 10, "end": 90, "size": 10}, | ||
"type": "contour" | ||
}, | ||
{ | ||
"x": [1,10,100,1000,10000], | ||
"y": [1,2,3,4,5], | ||
"z": [ | ||
[0 , 3.1250, 12.5000, 28.1250, 50.0000], | ||
[3.1250, 6.2500, 15.6250, 31.2500, 53.1250], | ||
[12.5000, 15.6250, 25.0000, 40.6250, 62.5000], | ||
[28.1250, 31.2500, 40.6250, 56.2500, 78.1250], | ||
[50.0000, 53.1250, 62.5000, 78.1250, 100.0000] | ||
], | ||
"contours": {"start": 10, "end": 90, "size": 10}, | ||
"type": "contour", | ||
"showscale": false, | ||
"xaxis": "x2" | ||
}, | ||
{ | ||
"x": [1,2,3,4,5], | ||
"y": [1,10,100,1000,10000], | ||
"z": [ | ||
[0 , 3.1250, 12.5000, 28.1250, 50.0000], | ||
[3.1250, 6.2500, 15.6250, 31.2500, 53.1250], | ||
[12.5000, 15.6250, 25.0000, 40.6250, 62.5000], | ||
[28.1250, 31.2500, 40.6250, 56.2500, 78.1250], | ||
[50.0000, 53.1250, 62.5000, 78.1250, 100.0000] | ||
], | ||
"contours": {"start": 10, "end": 90, "size": 10}, | ||
"type": "contour", | ||
"showscale": false, | ||
"yaxis": "y2" | ||
}, | ||
{ | ||
"x": [1,10,100,1000,10000], | ||
"y": [1,10,100,1000,10000], | ||
"z": [ | ||
[0 , 3.1250, 12.5000, 28.1250, 50.0000], | ||
[3.1250, 6.2500, 15.6250, 31.2500, 53.1250], | ||
[12.5000, 15.6250, 25.0000, 40.6250, 62.5000], | ||
[28.1250, 31.2500, 40.6250, 56.2500, 78.1250], | ||
[50.0000, 53.1250, 62.5000, 78.1250, 100.0000] | ||
], | ||
"contours": {"start": 10, "end": 90, "size": 10}, | ||
"type": "contour", | ||
"showscale": false, | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
} | ||
], | ||
"layout": { | ||
"xaxis": {"domain": [0, 0.45]}, | ||
"xaxis2": {"domain": [0.55, 1], "type": "log"}, | ||
"yaxis": {"domain": [0, 0.45]}, | ||
"yaxis2": {"domain": [0.55, 1], "type": "log"}, | ||
"margin": {"l": 50, "b": 50, "r": 110, "t": 10}, | ||
"width": 500, | ||
"height": 400 | ||
} | ||
} |