Skip to content

added support for integrating selected data with plotly #34

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

atitus
Copy link

@atitus atitus commented Jan 1, 2020

If using Plotly, one can use the Box Select or Lasso Select tool and select data in a scatterplot. The area under the curve will be shaded, and the integral will be printed.

Here is a simple example program that illustrates the feature:

g = gdots(fast=False, integrate_selected=True)
for t in arange(0,10,0.01):
    g.plot(t, cos(t))

I have not tested it with gcurve(fast=False, integrate_selected=True). Because this also produces a Plotly scatterplot, it's possible that the data can be selected in this case too. Plotly only shows the selection tools for a scatterplot. Thus, this feature won't work for a default gcurve().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant