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

Add a Figure Options Dialog to Web Backends? #4011

Open
blink1073 opened this issue Jan 19, 2015 · 8 comments
Open

Add a Figure Options Dialog to Web Backends? #4011

blink1073 opened this issue Jan 19, 2015 · 8 comments

Comments

@blink1073
Copy link
Member

This would emulate the Dialog used for Qt backend using the following method:

  • Create a figureoptions.json file and use jquery.dform (MIT license) to create the form.
  • Clicking the tool calls the Python layer, which in turn calls a JS function with a snapshot object with all of the IDs and their current values.
  • Populate the Form by looping through the object and using $(#my_id).val(my_val) and display it as a modal Dialog.
  • When the form is validated, slurp up all of the values using $(#my_id).val() and send to the Python layer.
  • Note there would be a middle step of bringing up an Axes Selection Dialog if there is more than one axes.

I'd like to take this on as a learning experience if there is interest. This should work the same on both web backends with only an icon difference (I hope). I didn't want to try the Subplots Dialog because 1) I don't find it that useful and 2) It would have to be interactive.

@tacaswell tacaswell added this to the v1.5.x milestone Jan 19, 2015
@tacaswell
Copy link
Member

Sounds awesome to me.

When working on figureoptions.json it is probably worth looking at the object model that Bokeh or plotly uses. If their model are too far from what seems natural for mpl don't worry about it, having a json rep on our end is still a step in the right direction. There is a long-running and very slow moving effort to make everything talk to everything.

attn @pelson

@blink1073
Copy link
Member Author

The structure of figureoptions.json is dictated by jquery.dform, but can be munged quite nicely on the Python end as well. 😄

@blink1073
Copy link
Member Author

@blink1073
Copy link
Member Author

But I see jquery.dform as an analog to formlayout and a completely separate issue.

@petehuang
Copy link
Contributor

@blink1073 you mentioned that you might want to engage on this - could you provide an update on where you are and what help you might need? Just so we can keep this fresh. Thanks!

@blink1073
Copy link
Member Author

Hi @petehuang, thank you the nudge. I am not planning to implement this myself. Feel free to close this issue if there is no interested implementer.

@tacaswell tacaswell modified the milestones: 2.1 (next point release), 2.2 (next next feature release) Oct 3, 2017
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Aug 4, 2023
@QuLogic
Copy link
Member

QuLogic commented Aug 4, 2023

Create a figureoptions.json file and use jquery.dform (MIT license) to create the form.

As a note, we no longer depend on jQuery, and the suggested form library is now archived. I'm sure that there probably exists a newer library for doing forms though. Possibly one might be available from ipywidgets or some Jupyter lab stuff.

@github-actions github-actions bot removed the status: inactive Marked by the “Stale” Github Action label Aug 7, 2023
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

4 participants