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

A question/request for imshow(), in lieu of an issue. #9

Open
Sporean opened this issue Aug 2, 2016 · 1 comment
Open

A question/request for imshow(), in lieu of an issue. #9

Sporean opened this issue Aug 2, 2016 · 1 comment

Comments

@Sporean
Copy link

Sporean commented Aug 2, 2016

I don't see any option of how to contact directly, so I hope you don't mind me using this instead.

I love what you're doing with matplotlib here, thank you for developing this as an easy way to plot; all other ways to plot in C++ are horrendous. I was curious if it has the capability of plotting matrices yet, and if not, will it be implemented in the future? I would modify the file myself, but I'm not versed enough in code to do that yet. I'm specifically looking to use matplotlib's function's: figure() & imshow(), in order to plot a matrix as an image (see any picture of Ising Model as an example of what I wish to accomplish). [I also hope to use it as a means to do contour maps in the future, and it would be beneficial also to have matplotlib's 2d quiver() option.]

Thank you for your time.

@lava
Copy link
Owner

lava commented Aug 2, 2016

Just exposing the functions would be easy, the question is what kind of data they expect. The doc for imshow() just says array_like (http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.imshow), but I'm not sure what that means. I imagine going through a huge matrix and converting each element into PyNumber individually could become very slow.

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