-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
More symbols for gl2d and gl3d plots #1550
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
Changes from all commits
fb092cf
ffad7fa
4c2929a
2bee6b2
c0eb065
88974c3
f68104b
0c8c613
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"type": "scattergl", | ||
"x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7], | ||
"y": [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5], | ||
"mode": "markers", | ||
"text": [ | ||
"marker symbol: 'circle'", | ||
"marker symbol: 'circle-open'", | ||
"marker symbol: 'square'", | ||
"marker symbol: 'square-open'", | ||
"marker symbol: 'diamond'", | ||
"marker symbol: 'diamond-open'", | ||
"marker symbol: 'cross'", | ||
"marker symbol: 'x'", | ||
"marker symbol: 'triangle-up'", | ||
"marker symbol: 'triangle-up-open'", | ||
"marker symbol: 'triangle-down'", | ||
"marker symbol: 'triangle-down-open'", | ||
"marker symbol: 'triangle-left'", | ||
"marker symbol: 'triangle-left-open'", | ||
"marker symbol: 'triangle-right'", | ||
"marker symbol: 'triangle-right-open'", | ||
"marker symbol: 'triangle-ne'", | ||
"marker symbol: 'triangle-ne-open'", | ||
"marker symbol: 'triangle-nw'", | ||
"marker symbol: 'triangle-nw-open'", | ||
"marker symbol: 'triangle-se'", | ||
"marker symbol: 'triangle-se-open'", | ||
"marker symbol: 'triangle-sw'", | ||
"marker symbol: 'triangle-sw-open'", | ||
"marker symbol: 'pentagon'", | ||
"marker symbol: 'pentagon-open'", | ||
"marker symbol: 'hexagon'", | ||
"marker symbol: 'hexagon-open'", | ||
"marker symbol: 'hexagon2'", | ||
"marker symbol: 'star'", | ||
"marker symbol: 'star-open'", | ||
"marker symbol: 'hexagram'", | ||
"marker symbol: 'diamond-tall'", | ||
"marker symbol: 'diamond-tall-open'", | ||
"marker symbol: 'hourglass'", | ||
"marker symbol: 'hourglass-open'", | ||
"marker symbol: 'bowtie'", | ||
"marker symbol: 'bowtie-open'", | ||
"marker symbol: 'circle-cross'", | ||
"marker symbol: 'circle-x'", | ||
"marker symbol: 'square-cross'", | ||
"marker symbol: 'square-x'", | ||
"marker symbol: 'asterisk'" | ||
], | ||
"marker": { | ||
"color": "blue", | ||
"size": 20, | ||
"symbol": [ | ||
"circle", | ||
"circle-open", | ||
"square", | ||
"square-open", | ||
"diamond", | ||
"diamond-open", | ||
"cross", | ||
"x", | ||
"triangle-up", | ||
"triangle-up-open", | ||
"triangle-down", | ||
"triangle-down-open", | ||
"triangle-left", | ||
"triangle-left-open", | ||
"triangle-right", | ||
"triangle-right-open", | ||
"triangle-ne", | ||
"triangle-ne-open", | ||
"triangle-nw", | ||
"triangle-nw-open", | ||
"triangle-se", | ||
"triangle-se-open", | ||
"triangle-sw", | ||
"triangle-sw-open", | ||
"pentagon", | ||
"pentagon-open", | ||
"hexagon", | ||
"hexagon-open", | ||
"hexagon2", | ||
"star", | ||
"star-open", | ||
"hexagram", | ||
"diamond-tall", | ||
"diamond-tall-open", | ||
"hourglass", | ||
"hourglass-open", | ||
"bowtie", | ||
"bowtie-open", | ||
"circle-cross", | ||
"circle-x", | ||
"square-cross", | ||
"square-x", | ||
"asterisk" | ||
], | ||
"line": { | ||
"color": "orange", | ||
"width": 1.5 | ||
} | ||
} | ||
} | ||
], | ||
"layout": { | ||
"width": 500, | ||
"height": 500, | ||
"xaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false, | ||
"range": [0, 10] | ||
}, | ||
"yaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false, | ||
"range": [0, 6] | ||
}, | ||
"annotations": [ | ||
{ | ||
"x": 0.5, | ||
"y": 1, | ||
"xref": "paper", | ||
"yref": "paper", | ||
"text": "Add 100 (or '-open') to marker number (or string) to remove the fill color,<br>Add 200 (or '-dot') to marker number (or string) to add a dot in the middle,<br>Add 300 (or '-open-dot', 'dot-open') to marker number (or string) for both.", | ||
"font": { | ||
"size": 10 | ||
}, | ||
"align": "left", | ||
"showarrow": false, | ||
"xanchor": "center", | ||
"yanchor": "bottom" | ||
} | ||
], | ||
"hovermode": "closest" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"type": "scatter3d", | ||
"x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7], | ||
"y": [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5], | ||
"z": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], | ||
"mode": "markers", | ||
"text": [ | ||
"marker symbol: 'circle'", | ||
"marker symbol: 'circle-open'", | ||
"marker symbol: 'square'", | ||
"marker symbol: 'square-open'", | ||
"marker symbol: 'diamond'", | ||
"marker symbol: 'diamond-open'", | ||
"marker symbol: 'cross'", | ||
"marker symbol: 'x'", | ||
"marker symbol: 'triangle-up'", | ||
"marker symbol: 'triangle-up-open'", | ||
"marker symbol: 'triangle-down'", | ||
"marker symbol: 'triangle-down-open'", | ||
"marker symbol: 'triangle-left'", | ||
"marker symbol: 'triangle-left-open'", | ||
"marker symbol: 'triangle-right'", | ||
"marker symbol: 'triangle-right-open'", | ||
"marker symbol: 'triangle-ne'", | ||
"marker symbol: 'triangle-ne-open'", | ||
"marker symbol: 'triangle-nw'", | ||
"marker symbol: 'triangle-nw-open'", | ||
"marker symbol: 'triangle-se'", | ||
"marker symbol: 'triangle-se-open'", | ||
"marker symbol: 'triangle-sw'", | ||
"marker symbol: 'triangle-sw-open'", | ||
"marker symbol: 'pentagon'", | ||
"marker symbol: 'pentagon-open'", | ||
"marker symbol: 'hexagon'", | ||
"marker symbol: 'hexagon-open'", | ||
"marker symbol: 'hexagon2'", | ||
"marker symbol: 'star'", | ||
"marker symbol: 'star-open'", | ||
"marker symbol: 'hexagram'", | ||
"marker symbol: 'diamond-tall'", | ||
"marker symbol: 'diamond-tall-open'", | ||
"marker symbol: 'hourglass'", | ||
"marker symbol: 'hourglass-open'", | ||
"marker symbol: 'bowtie'", | ||
"marker symbol: 'bowtie-open'", | ||
"marker symbol: 'circle-cross'", | ||
"marker symbol: 'circle-x'", | ||
"marker symbol: 'square-cross'", | ||
"marker symbol: 'square-x'", | ||
"marker symbol: 'asterisk'" | ||
], | ||
"marker": { | ||
"color": "blue", | ||
"size": 8, | ||
"symbol": [ | ||
"circle", | ||
"circle-open", | ||
"square", | ||
"square-open", | ||
"diamond", | ||
"diamond-open", | ||
"cross", | ||
"x", | ||
"triangle-up", | ||
"triangle-up-open", | ||
"triangle-down", | ||
"triangle-down-open", | ||
"triangle-left", | ||
"triangle-left-open", | ||
"triangle-right", | ||
"triangle-right-open", | ||
"triangle-ne", | ||
"triangle-ne-open", | ||
"triangle-nw", | ||
"triangle-nw-open", | ||
"triangle-se", | ||
"triangle-se-open", | ||
"triangle-sw", | ||
"triangle-sw-open", | ||
"pentagon", | ||
"pentagon-open", | ||
"hexagon", | ||
"hexagon-open", | ||
"hexagon2", | ||
"star", | ||
"star-open", | ||
"hexagram", | ||
"diamond-tall", | ||
"diamond-tall-open", | ||
"hourglass", | ||
"hourglass-open", | ||
"bowtie", | ||
"bowtie-open", | ||
"circle-cross", | ||
"circle-x", | ||
"square-cross", | ||
"square-x", | ||
"asterisk" | ||
], | ||
"line": { | ||
"color": "orange", | ||
"width": 1.5 | ||
} | ||
} | ||
} | ||
], | ||
"layout": { | ||
"width": 500, | ||
"height": 500, | ||
"scene": { | ||
"camera": { | ||
"eye": { | ||
"x": 0.1, | ||
"y": 0.1, | ||
"z": 2.1 | ||
} | ||
}, | ||
"xaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false, | ||
"title": "", | ||
"range": [0, 10] | ||
}, | ||
"yaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false, | ||
"title": "", | ||
"range": [0, 6] | ||
}, | ||
"zaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false, | ||
"title": "", | ||
"range": [0, 2] | ||
} | ||
}, | ||
"annotations": [ | ||
{ | ||
"x": 0.5, | ||
"y": 1, | ||
"xref": "paper", | ||
"yref": "paper", | ||
"text": "Add 100 (or '-open') to marker number (or string) to remove the fill color,<br>Add 200 (or '-dot') to marker number (or string) to add a dot in the middle,<br>Add 300 (or '-open-dot', 'dot-open') to marker number (or string) for both.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I presume There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See b4db0ef |
||
"font": { | ||
"size": 10 | ||
}, | ||
"align": "left", | ||
"showarrow": false, | ||
"xanchor": "center", | ||
"yanchor": "bottom" | ||
} | ||
], | ||
"hovermode": "closest" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9], | ||
"y": [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5], | ||
"mode": "markers", | ||
"text": [ | ||
"marker number: 0<br>marker string: 'circle'", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexcjohnson Turns out we didn't have a mock testing all our marker symbols. I dug out https://github.com/plotly/streambed/pull/358 and plotly/documentation#16 and made this one here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! Can you include just a few examples of 1xx ( And then we'll be able to see how this compares with the gl implementation, where I'm pretty sure colors are handled differently in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in 083b00a |
||
"marker number: 1<br>marker string: 'square'", | ||
"marker number: 2<br>marker string: 'diamond'", | ||
"marker number: 3<br>marker string: 'cross'", | ||
"marker number: 4<br>marker string: 'x'", | ||
"marker number: 5<br>marker string: 'triangle-up'", | ||
"marker number: 6<br>marker string: 'triangle-down'", | ||
"marker number: 7<br>marker string: 'triangle-left'", | ||
"marker number: 8<br>marker string: 'triangle-right'", | ||
"marker number: 9<br>marker string: 'triangle-ne'", | ||
"marker number: 10<br>marker string: 'triangle-se'", | ||
"marker number: 11<br>marker string: 'triangle-sw'", | ||
"marker number: 12<br>marker string: 'triangle-nw'", | ||
"marker number: 13<br>marker string: 'pentagon'", | ||
"marker number: 14<br>marker string: 'hexagon'", | ||
"marker number: 15<br>marker string: 'hexagon2'", | ||
"marker number: 16<br>marker string: 'octagon'", | ||
"marker number: 17<br>marker string: 'star'", | ||
"marker number: 18<br>marker string: 'hexagram'", | ||
"marker number: 19<br>marker string: 'star-triangle-up'", | ||
"marker number: 20<br>marker string: 'star-triangle-down'", | ||
"marker number: 21<br>marker string: 'star-square'", | ||
"marker number: 22<br>marker string: 'star-diamond'", | ||
"marker number: 23<br>marker string: 'diamond-tall'", | ||
"marker number: 24<br>marker string: 'diamond-wide'", | ||
"marker number: 25<br>marker string: 'hourglass'", | ||
"marker number: 26<br>marker string: 'bowtie'", | ||
"marker number: 27<br>marker string: 'circle-cross'", | ||
"marker number: 28<br>marker string: 'circle-x'", | ||
"marker number: 29<br>marker string: 'square-cross'", | ||
"marker number: 30<br>marker string: 'square-x'", | ||
"marker number: 31<br>marker string: 'diamond-cross'", | ||
"marker number: 32<br>marker string: 'diamond-x'", | ||
"marker number: 33<br>marker string: 'cross-thin'", | ||
"marker number: 34<br>marker string: 'x-thin'", | ||
"marker number: 35<br>marker string: 'asterisk'", | ||
"marker number: 36<br>marker string: 'hash'", | ||
"marker number: 37<br>marker string: 'y-up'", | ||
"marker number: 38<br>marker string: 'y-down'", | ||
"marker number: 39<br>marker string: 'y-left'", | ||
"marker number: 40<br>marker string: 'y-right'", | ||
"marker number: 41<br>marker string: 'line-ew'", | ||
"marker number: 42<br>marker string: 'line-ns'", | ||
"marker number: 43<br>marker string: 'line-ne'", | ||
"marker number: 44<br>marker string: 'line-nw'" | ||
], | ||
"marker": { | ||
"color": "blue", | ||
"size": 20, | ||
"symbol": [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], | ||
"line": { | ||
"color": "orange", | ||
"width": 1.5 | ||
} | ||
}, | ||
"type": "scatter" | ||
} | ||
], | ||
"layout": { | ||
"width": 500, | ||
"height": 500, | ||
"xaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false | ||
}, | ||
"yaxis": { | ||
"showgrid": false, | ||
"zeroline": false, | ||
"showline": false, | ||
"showticklabels": false | ||
}, | ||
"annotations": [ | ||
{ | ||
"x": 0.5, | ||
"y": 1, | ||
"xref": "paper", | ||
"yref": "paper", | ||
"text": "Add 100 (or '-open') to marker number (or string) to remove the fill color,<br>Add 200 (or '-dot') to marker number (or string) to add a dot in the middle,<br>Add 300 (or '-open-dot', 'dot-open') to marker number (or string) for both.", | ||
"font": { | ||
"size": 10 | ||
}, | ||
"align": "left", | ||
"showarrow": false, | ||
"xanchor": "center", | ||
"yanchor": "bottom" | ||
} | ||
], | ||
"hovermode": "closest" | ||
} | ||
} |
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.
There are two other tweaks this is going to need before it can really match how the svg symbols behave:
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.
Basically this is going to require passing symbol-dependent offsets and scales to the relevant
gl-vis
modules. @destradafilm not sure if you want to take a crack at this, I'm afraid it'll be a little bit tedious and @etpinard and I may not be able to get to it for a while.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.
@alexcjohnson I'd like to take a crack at it, but it will take a while for me since I've got a full plate at the moment, as well.