jneilliii / OctoPrint-BedLevelVisualizer

MIT License
371 stars 82 forks source link

[BUG]: Edit In Chart Studio shows empty plot because Z is not defined properly #530

Closed DanielLaberge closed 2 years ago

DanielLaberge commented 2 years ago

Describe the bug The Edit In Chart Studio stopped working in recent versions. It shows an empty plot because the Z axis is not defined properly; See Screenshot.

Expected behavior Z should be defined as "Z[0] Z[1] Z[2] ..." not as "y".

Debug Log N/A

Screenshots image

Version Version 1.1.1

jneilliii commented 2 years ago

I don't really control how the button works and transfers the data to chart studio, that's built into the plotly library itself. The version currently running in the plugin is fairly old though and might be the root cause. You could try my plotly 2.9.0 branch to see if it works any better for you by copying/pasting the URL below in plugin manager > get more > ...from URL and clicking install.

https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/refs/heads/test/plotly_2.9.0.zip
DanielLaberge commented 2 years ago

That sounded like a good guess, but the problem persists with that branch. (Version 1.1.2rc2)

jneilliii commented 2 years ago

Interestingly enough when I attempted this with their example 3d surface plots it doesn't load anything directly. You have to open in codepen and add the config options like this.

Plotly.newPlot('myDiv', data, layout, {showEditInChartStudio: true, plotlyServerURL: "https://chart-studio.plotly.com"});

and when I click the edit button I get this.

image

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days