Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Revised pixelRatio in 3D plots to address multiple bugs#3573
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
c2a9e3f2a806739ad6634012625d4542e8d85233b227cfcab7f48ecf9586f785096f4fFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -343,7 +343,7 @@ proto.update = function(data) { | ||
| this.dataPoints = options.position; | ||
| lineOptions = { | ||
| gl: gl, | ||
| gl: this.scene.glplot.gl, | ||
etpinard marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| position: options.position, | ||
| color: options.lineColor, | ||
| lineWidth: options.lineWidth || 1, | ||
| @@ -371,7 +371,7 @@ proto.update = function(data) { | ||
| if(data.marker && data.marker.opacity) scatterOpacity *= data.marker.opacity; | ||
| scatterOptions = { | ||
| gl: gl, | ||
| gl: this.scene.glplot.gl, | ||
| position: options.position, | ||
| color: options.scatterColor, | ||
| size: options.scatterSize, | ||
| @@ -400,7 +400,7 @@ proto.update = function(data) { | ||
| } | ||
| textOptions = { | ||
| gl: gl, | ||
| gl: this.scene.glplot.gl, | ||
| position: options.position, | ||
| glyph: options.text, | ||
| color: options.textColor, | ||
| @@ -431,7 +431,7 @@ proto.update = function(data) { | ||
| } | ||
| errorOptions = { | ||
| gl: gl, | ||
| gl: this.scene.glplot.gl, | ||
| position: options.position, | ||
| color: options.errorColor, | ||
| error: options.errorBounds, | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
This may break graphs where users set config option
plotGlPixelRatio:plotly.js/src/plot_api/plot_config.js
Lines 309 to 319 in 13b925c
Orca does it here:
https://github.com/plotly/orca/blob/776d5c3f1faf7272f7eb6e1c11ba8d7fb0057734/src/component/plotly-graph/render.js#L30
using (a strange) value:
https://github.com/plotly/orca/blob/776d5c3f1faf7272f7eb6e1c11ba8d7fb0057734/src/component/plotly-graph/constants.js#L35
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.
Oh wait nevermind,
this.pixelRatioisn't set by default (correct?) sooptions.plotGlPixelRatiois honoured.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.
Yes I think so.
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.
Ok great. Can you try generating the
gl3d_*baseline using orca with a few differentplotGlPixelRatiovalues?You may want to modify:
plotly.js/tasks/noci_test.sh
Lines 31 to 39 in 3e15f17
to get orca started easily and you might have to tweak the orca
srcfiles e.g. here:https://github.com/plotly/orca/blob/776d5c3f1faf7272f7eb6e1c11ba8d7fb0057734/src/component/plotly-graph/constants.js#L35
or
https://github.com/plotly/orca/blob/776d5c3f1faf7272f7eb6e1c11ba8d7fb0057734/src/component/plotly-graph/render.js#L30
to pass the different
plotGlPixelRatiovalues down to plotly.jsThere 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.
@etpinard Thank you so much for the links. Using orca I was able to produce gl3d_* images from this branch and compared them against the master branch. I also tweaked the
pixelRatioof orca module and the configuration has an impact.