-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Surface graph has issue with small time ranges #3306
Comments
It looks like this may be related to #3155 but would appreciate any help on the matter. |
@ShaneHudson Thank you very much for reporting this issue. |
Also another thing I've noticed, potentially related to this, is if there is no data on the graph but ranges are set on the axis then for the heatmap it shows correct ranges but the surface plot shows from 2000 to 2001. |
@ShaneHudson Could you please create a demo related to the second issue? |
Thanks for doing that bug fix @archmoj. Do you have any idea when the next version will be published on npm please? |
My pleasure @ShaneHudson. |
@ShaneHudson Also here is an alternative demo using superscripts & break-lines. Hope it may help. |
@ShaneHudson FYI - here is the new release v.1.43.0. |
@archmoj can we close this issue? |
@etpinard No. It is not fixed yet. |
@ShaneHudson |
I'm afraid not. I understand that the very small time scales are bound to throw it off, but the use-case is a raspberry pi that is uploading scans of radio frequency at regular intervals. The steps on the graph are caused by the scan being done in sweeps. Another thing I noticed but probably related to this is that the 3D graph also struggles/fails when only one point in time is available. Is that expected behaviour? |
Do note though that the bug does look different that it did originally, but my data has changed since then so I am looking at a small time range. |
+1. |
The bug still happens, here is a simple plotly.py that reproduces this kind of error
I managed to find a workaround which is uncommenting the lines
It will not fit every use case but... it's what I got right now after hours banging head on the wall. |
This issue has been tagged with A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort. What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
Hi, I would like to know if you are able to and would be interested in trying to move forward the related pull request that I opened in the gl-axes3d repository that you depend on? My main motivation in the PR is improving plotly :) and I saw that plotly maintainers are also maintaining some of the gl-vis repositories. @archmoj maybe? |
Hey, how are you doing? I found this issue, and there is something related to what I'm facing here. I have some dates and would like to use them on my x labels, but it's not getting nice: |
Any progress on this? I see there is a related PR for a project that haven't been updated in 4 years... |
Hi @positron96 , I still like my changes in that PR. Currently the pipeline for my project that uses plotly patches the plotly bundle with those adjustments, which is not ideal 😄 but works. I can post the script later, in case nothing will happen. |
Here's the patch as a bash script, to be called with the dist folder containing plotly as first argument: set -x
PATH_WHERE_TO_REPLACE=$1;
# replace `* model * vec4(something)` with `* (model * vec4(something))` for better numerical stability in 3D graphs
find $PATH_WHERE_TO_REPLACE -type f -name "*plotly*.js" | xargs sed -r -i -e 's/\* model \* vec4\(([^\)]*)\)/* (model * vec4(\1))/g' |
Hello,
I've had an issue for quite a while and thought it would be good to raise here. It's an issue with graphs that are over a small amount of time. I've attempted to make a demonstration but the screenshot below will show my issue more clearly.
Take a look at the following:
A) https://jsfiddle.net/Lv4qpoyu/3/
B) https://jsfiddle.net/5au0xepd/1/
In A) you can see some random data over 50 minutes. In B) you can see random data over 50 seconds. A) works perfectly well, nice little graph. B) looks like an utter mess and is near impossible to use.
So that brings us to C), the screenshots (the first taken a few months ago, the second today) below that shows my real dataset. In a 2D heatmap it works fine but in a 3D surface graph it shows the data correctly but with the axis completely messed up. Sometimes it looks worse than others, but all the time there is a continuation of the date (y) axis. Sometimes it requires you to zoom out to see, but it is always there in the distance. This makes it unusable to me if I want to put it in front of users.
When I've looked online for help I found someone else having the exact same issue but they were using the python version of the library with a scatter3d.
This seems to be a bug opposed to an issue in my code. I have autorange set to false, the range of data is correct (
["2018-09-06 20:48:32", "2018-09-06 20:55:57"]
for second screenshot) and is using moment dates. I have double checked it on the latest version too and no change. Does anyone have any idea what is causing this issue?Cheers
Shane
The text was updated successfully, but these errors were encountered: