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 support for retrieving device types per engine #5

Closed
zmughal opened this issue Sep 24, 2021 · 3 comments
Closed

Add support for retrieving device types per engine #5

zmughal opened this issue Sep 24, 2021 · 3 comments

Comments

@zmughal
Copy link
Member

zmughal commented Sep 24, 2021

Something like list_devices. As these are going to be different for each
engine, perhaps standardizing info about the devices might be useful (e.g.,
using MIME types for files). Some of this information could be directly placed
in the upstream dists.

@mohawk2
Copy link
Member

mohawk2 commented Mar 29, 2024

This is now implemented in 3d7f16f (PGPLOT, which always had the API available) and d674bea (PLplot, with API added by you).

@mohawk2 mohawk2 closed this as completed Mar 29, 2024
@zmughal
Copy link
Member Author

zmughal commented Apr 7, 2024

Right, I think I wanted to provide a devices to MIME types / file extension mapping as well because each engine uses different names. This can be done in a future API after the backend split. The idea behind this is that other code can inspect the devices available and choose from that given a requested filename. I believe this could be incorporated for Jupyter notebook support (right now I use P::G::Gnuplot directly in most of my notebooks).

One issue: there might be multiple devices that support the same output type (multiple PNG backends).

@mohawk2
Copy link
Member

mohawk2 commented Apr 7, 2024

Do feel free to reopen this, if you can provide example code that the user would run. PGS is absolutely the right place to have that uniform-ised interface!

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

2 participants