-
Notifications
You must be signed in to change notification settings - Fork 31
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
Scatter plots do not draw points in the right locations #1046
Comments
Seemingly only reproducible on M1 MacBooks. Looking at the data passed into plotly, it looks correct: It appears to be because of the |
Still an issue with the latest version of plotly.js (2.17.0). |
https://deephaven.atlassian.net/browse/DH-14666 duplicate issue reported in enterprise |
There is a workaround for Chrome on M1 Mac: plotly/plotly.js#5970 (comment) |
This looks like it is fixed in plotly.js 2.28: plotly/plotly.js#5970 (comment) We should update to plotly 2.28 |
Re-test #1730 after 2.28 update as well, possibly related, possibly not. |
For posterity, the snippet converted for the latest/correct formatting: from deephaven import time_table
from deephaven.plot.figure import Figure
from deephaven.plot import PlotStyle
from deephaven.plot import Color, Colors
from deephaven.plot import font_family_names, Font, FontStyle, Shape
data = time_table('PT0.1s') \
.update(["Open = i + 10*random()","High = Open + 1", "Low = Open - 1", "Close = Open + 0.5"])
points = data \
.where("i%5 = 0") \
.view(["Timestamp", "Point = i%3==0 ? High : Low"])
# broken
plot = Figure() \
.figure_title("OHLC + Points")\
.plot_xy(series_name="OHLC", t=data, x="Timestamp", y_high="High", y_low="Low", y="Close") \
.axes(plot_style=PlotStyle.SCATTER)\
.plot_xy(series_name="Points", t=points, x="Timestamp", y="Point")\
.point(shape=Shape.DIAMOND, size=8, label="Big Triangle",color=Colors.BLUE )\
.show()
# broken
plot = Figure() \
.axes(plot_style=PlotStyle.SCATTER)\
.plot_xy(series_name="Points", t=points, x="Timestamp", y="Point")\
.point(shape=Shape.DIAMOND, size=8, label="Big Triangle",color=Colors.BLUE )\
.show()
# broken
plot = Figure() \
.axes(plot_style=PlotStyle.SCATTER)\
.plot_xy(series_name="Points", t=points, x="Timestamp", y="Point")\
.show()
# drawing the line plot works
plot = Figure() \
.plot_xy(series_name="Points", t=points, x="Timestamp", y="Point")\
.show() |
The text was updated successfully, but these errors were encountered: