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

Example Fails to work #2

Open
kociak opened this issue Oct 20, 2022 · 2 comments
Open

Example Fails to work #2

kociak opened this issue Oct 20, 2022 · 2 comments

Comments

@kociak
Copy link

kociak commented Oct 20, 2022

Running the example found in the comments of Matplotlibbackend.py is not working. I think two points are missing:

  • SwiftCanvas must be init with a get_font_metrics_fn callback, but it can't be found in the example. What sort of function is it?
  • A DrawingContextmust be be given as argument to canvas.render, but its type is unclear (is it same as context needed for Action?
@cmeyer
Copy link
Contributor

cmeyer commented Oct 24, 2022

The matplotlib Swift package was partially abandoned (i.e. not updated or maintained). I've had another request to revisit this. I have some ideas on how to proceed to make it useful and maintainable.

How important is this to you?

@kociak
Copy link
Author

kociak commented Oct 25, 2022

TBH, I was experimenting while preparing a paper. As the data analysis is simple on my data I wanted to make it in swift rather than jupyter, and then making the plots directly in nionswift.
On the longer run, what would be fantastic would be to be able to use matplotlib AND give a way to interact with the graphics interactively.
As a summary, this is not a priority for me.

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

No branches or pull requests

2 participants