-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cartesian small domain #3404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+75
−1
Merged
Cartesian small domain #3404
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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.
This file contains hidden or 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,70 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 ], | ||
"y": [ 0, 1 ], | ||
"z": [ | ||
[ 3.7658, 2.5011, 2.0717, 1.6752, 0.8733, 1.2222, 0.7331, 0.5498, -1.0785, -0.059, -0.5587, -0.5076, -0.5458, -1.1039, -0.8066, -1.4149, -0.9971, -0.8106, -0.7879, -0.184, 0.1769, -0.2717, 1.3303, 0.8172, 0.8381, 0.8871, 0.2036, 0.293, 0.548, 0.6277, 0.4906, 0.5462, -0.7781, -0.6629, -0.9717, -0.7959, -0.565, -0.4884, -0.3175, -0.5329, -0.8867, -0.84, -1.1034, -1.0113, -0.5979, -0.3069, -0.698, -0.3803, -0.4226, 0.3691, 0.1195, 0.087, -0.2156, -0.0252 ], | ||
[ 0.1593, 0.479, 0.1225, 0.2636, 1.6744, 1.413, 0.9552, 0.4606, 3.1634, 1.5594, 1.4996, 1.5349, 1.574, 1.8937, 0.9506, 0.8693, -1.5682, -1.3773, -1.3742, -1.7599, -1.0759, -0.9985, -0.3828, -0.2164, -1.0315, -0.8436, -0.5653, -0.7393, -0.5814, -0.8789, -0.8505, -0.8635, -0.1919, -0.2593, -0.1742, 0.032, -0.8122, -0.7263, -0.6634, -0.474, -0.9601, -0.6542, -0.553, -0.4579, 0.6746, 0.5849, 0.3134, 0.249, 0.3188, 0.0872, -0.0814, -0.0393, -0.0385, 0.3602 ] | ||
], | ||
"type": "heatmap", | ||
"showscale": true, | ||
"colorbar": { | ||
"thicknessmode": "fraction", | ||
"thickness": 0.01, | ||
"lenmode": "fraction", | ||
"len": 0.3, | ||
"outlinecolor": "white", | ||
"nticks": 2, | ||
"ticklen": 0, | ||
"tickvals": [ -1.7599, -0.2037, 3.7658 ], | ||
"ticktext": [ "low", "median", "high" ], | ||
"tickcolor": "black", | ||
"tickfont": { | ||
"family": "Dorid Sans", | ||
"color": "black", | ||
"size": 10 | ||
} | ||
}, | ||
"colorscale": "Portland", | ||
"showlegend": false, | ||
"xaxis": "x", | ||
"yaxis": "y", | ||
"hoverinfo": "text", | ||
"name": "", | ||
"xgap": 1, | ||
"ygap": 1, | ||
"zmin": -1.7599, | ||
"zmax": 3.7658, | ||
"zauto": true | ||
}, | ||
{ | ||
"x": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 ], | ||
"y": [ 0, 1 ], | ||
"z": [ | ||
[ 3.7658, 2.5011, 2.0717, 1.6752, 0.8733, 1.2222, 0.7331, 0.5498, -1.0785, -0.059, -0.5587, -0.5076, -0.5458, -1.1039, -0.8066, -1.4149, -0.9971, -0.8106, -0.7879, -0.184, 0.1769, -0.2717, 1.3303, 0.8172, 0.8381, 0.8871, 0.2036, 0.293, 0.548, 0.6277, 0.4906, 0.5462, -0.7781, -0.6629, -0.9717, -0.7959, -0.565, -0.4884, -0.3175, -0.5329, -0.8867, -0.84, -1.1034, -1.0113, -0.5979, -0.3069, -0.698, -0.3803, -0.4226, 0.3691, 0.1195, 0.087, -0.2156, -0.0252 ], | ||
[ 0.1593, 0.479, 0.1225, 0.2636, 1.6744, 1.413, 0.9552, 0.4606, 3.1634, 1.5594, 1.4996, 1.5349, 1.574, 1.8937, 0.9506, 0.8693, -1.5682, -1.3773, -1.3742, -1.7599, -1.0759, -0.9985, -0.3828, -0.2164, -1.0315, -0.8436, -0.5653, -0.7393, -0.5814, -0.8789, -0.8505, -0.8635, -0.1919, -0.2593, -0.1742, 0.032, -0.8122, -0.7263, -0.6634, -0.474, -0.9601, -0.6542, -0.553, -0.4579, 0.6746, 0.5849, 0.3134, 0.249, 0.3188, 0.0872, -0.0814, -0.0393, -0.0385, 0.3602 ] | ||
], | ||
"type": "heatmap", | ||
"showscale": false, | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
} | ||
] | ||
,"layout": { | ||
"width": 600, | ||
"height": 1200, | ||
"xaxis": { | ||
"domain": [ 0, 0.9 ] | ||
}, | ||
"yaxis": { | ||
"domain": [ 0.5, 0.9 ] | ||
}, | ||
"xaxis2": { | ||
"domain": [ 0.0, 0.9 ] | ||
}, | ||
"yaxis2": { | ||
"domain": [ 0.445, 0.45 ] | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does that
32768
number come from?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(No need for the trailing
.0
in JS by the way)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
32768 = 2 ^ 15 is ofcourse the maximum signed short seems to be the maximum width/height on Chrome.
After more research I noticed this npm module updated today with good info! According to that we may reduce that to something like 16,384 for FF. Older versions of IE have lower limits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Thanks for the info!
I don't adding a dependency for this is worth it. I suggest finding the max of min values listed.
Inspecting
https://github.com/jhildenbiddle/canvas-size/blob/52382c95de0b66c447d032f3d8455c6aaaec1fc6/src/index.js#L55-L72
looks like
1 / 4096
will be good enough.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in a7c4485
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Maybe you could put a comment above this line explaining where that
4096
comes from.