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

Pyplot interactive output figure needed #140

Open
wyrzykow opened this issue May 28, 2024 · 4 comments
Open

Pyplot interactive output figure needed #140

wyrzykow opened this issue May 28, 2024 · 4 comments

Comments

@wyrzykow
Copy link

Interactive plot as an output figure from modelling is needed. We use MulensModel in BHTOM service (http://bhtom.space) for quick-look models and it would be useful to interact with the output figure, both in the light curve and residuals.
image

@rpoleski
Copy link
Owner

I would say there are 2 approaches:

  1. Allow plotly instead of pyplot in various plotting functions in MM.
  2. Just make an example that calls: Model.get_lc(), Event.fits[].scale_fluxes(), and Event.fits[].get_residuals() to calculate model, scaled datasets, and residuals, respectively.

First one will be definitely more time-consuming to implement. Any comments?

@rpoleski
Copy link
Owner

@mjmroz, do you have an example that you could share?

@mjmroz
Copy link
Contributor

mjmroz commented May 29, 2024

Of course, I have Plotly codes for everything: light curve with residuals and cumulative chi2, trajectory, and even some animations of both :) .
I wrote them gradually, so they are a bit messy, but I can prepare a clean example in free time.
I can also work on allowing Plotly in MM or build an additional visualization tool with more options than currently available in MM.

@rpoleski
Copy link
Owner

rpoleski commented Jun 3, 2024

@mjmroz Please add a simple plot of a data and model in one subplot and residuals in another subplot.

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

No branches or pull requests

3 participants