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

display hooks for matplotlib #15

Closed
stevengj opened this issue Jul 27, 2013 · 2 comments
Closed

display hooks for matplotlib #15

stevengj opened this issue Jul 27, 2013 · 2 comments

Comments

@stevengj
Copy link
Member

Requires a bit of surgery to get matplotlib to use our new display functionality in order to get inline plots.

A model here is provided by pylab/backend_inline.py and the corresponding code in core/pylabtools.py from IPython, as pointed out by @fperez

@stevengj
Copy link
Member Author

As a prerequisite, I just added functionality to PyCall so that it can pass Julia IO objects as native Python IO objects (along with the patch JuliaLang/julia#3878).

@stevengj
Copy link
Member Author

Until DataDisplay is merged into Base, at which point this can be merged directly into PyCall, IJulia now includes a wrapper module IPylab. Doing using IPylab imports Pylab as plt, and adds the hooks to display figures inline.

I haven't written a proper Pylab backend yet. So far I've only implemented the ability to display Figure objects. So, if you do:

plt.plot(.....)
plt.gcf()

the gcf function will return a figure object that is displayed graphically inline.

stevengj added a commit that referenced this issue Aug 5, 2013
…of cell) for #15; updated multimedia.jl to latest proposal
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

1 participant