question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

launch an interactive plot without creating a GUI for it

See original GitHub issue

After creating a plot:

var plt = new ScottPlot.Plot(width, height);
var data = ScottPlot.DataGen.Sin(100);
plt.PlotSignal(data);

It would be nice if you could launch a launch a data browser window using a one-line command without actually having to create a window and add a user control… something like:

plt.LaunchFormsPlot();
plt.LaunchWpfPlot();

The code could live in extension methods packaged in the user control modules.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
swhardencommented, Feb 6, 2020

programmatically add a FormsPlot

Going this way you get right result, but this is not so simple. You need to inject or sync existing plot with FormsControl.Plot.There are a lot possible side effects. To avoid that, good way is add additional FormsControl constructor accepting plot as argument. In this constructor repeat all code instead of creating new plot.

This is an interesting idea! I think I understand it properly… it would let the user do something like this to launch their plot in a mouse-interactive window:

var plt = new ScottPlot.Plot();
plt.PlotSignal(ScottPlot.DataGen.Sin(100));

ScottPlot.WinForms.Show(plt);
0reactions
swhardencommented, Feb 7, 2020

I’ll keep developing this as part of 4.1 (it’s not really an issue)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interactive figures — Matplotlib 3.7.2 documentation
Matplotlib keeps a reference to all of the open figures created via pyplot.figure or pyplot.subplots so that the figures will not be garbage...
Read more >
Creating a stand alone GUI which shows interactive ...
I'm looking to build a stand-alone tool (preferably EXE) that will take on a text file of specific format and plot it's content...
Read more >
5 Python Libraries for Creating Interactive Plots
Learn how to create interactive plots with Python with our 5 favorite Python visualization libraries. Make charts that you can embed online ...
Read more >
Creating a Python Interactive Plot Using Matplotlib in Jupyter
Put away those new libraries, you can build a Python interactive plot in Matplotlib. Customize them with UI controls in Jupyter lab using...
Read more >
How to produce Interactive Matplotlib Plots in Jupyter ...
In this tutorial, I will cover some use cases and examples of interactive data visualization with Matplotlib using ipympl. We will first cover ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found