Skip to content

Unable/unclear to use keyword 'extent' with imshow #192

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
jensdenbraber opened this issue May 25, 2020 · 2 comments
Open

Unable/unclear to use keyword 'extent' with imshow #192

jensdenbraber opened this issue May 25, 2020 · 2 comments

Comments

@jensdenbraber
Copy link

When setting the 'extent' keyword in the imshow function I receive the following error:

due to unexpected exception with message:
Call to imshow() failed

How I call the imshow function:

PyObject* mat;
plt::imshow(values, height, width, 1, {{"interpolation","bilinear"},{"origin", "lower"},{"aspect", "auto"}, {"extent","{0, 100, 0, 40}"}, &mat);

How could I provide imshow() with the extent keyword?

@Cryoris
Copy link
Contributor

Cryoris commented May 25, 2020

That's probably because "{0, 100, 0, 40}" is passed as string to matplotlib but it expects an array or list. That's another case of #184: currently it is only possible to pass string kwargs.

@RaphaelViards
Copy link

I suggested a solution for this in #241

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

3 participants