Skip to content
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

Plots require a .show() call to render #15

Open
alexpeters1208 opened this issue Apr 18, 2023 · 0 comments
Open

Plots require a .show() call to render #15

alexpeters1208 opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alexpeters1208
Copy link

Description

When creating Deephaven plots in the IDE and Jupyter, plots require a .show() method to render. It is unclear why this is necessary, and we should evaluate whether we can eliminate this call altogether.

Steps to reproduce

In the IDE (or Jupyter, having started a server), run:

from deephaven import time_table
from deephaven.plot.figure import Figure

realtime_table = time_table("00:00:00.25").update(["X = i", "Y = Math.sin(0.1 * i)"])
realtime_plot = Figure().plot_xy(series_name="Sine Wave", t=realtime_table, x="X", y="Y")

You will not see any plot render. If you change the last line to

realtime_plot = Figure().plot_xy(series_name="Sine Wave", t=realtime_table, x="X", y="Y").show()

you will now see a rendered plot.
It would be good if this call were not required, as it is not required to make tables render and the interface for the two should not feel substantially different.

Versions

  • Engine Version: DEMO 0.23.0
  • OS: M2 MacOS Ventura 13.2.1
  • Browser: Safari
@alexpeters1208 alexpeters1208 added the bug Something isn't working label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants