Skip to content

Displaying inline plots with matplotlib #86

Answered by cjdoris
icweaver asked this question in Q&A
Discussion options

You must be logged in to vote

Happy holidays!

PythonCall knows how to display a matplotlib.Figure so you need to return one of those from a Pluto cell.

For example something like

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

or

fig = plt.figure()
fig.plot(.....)
fig

should work.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@icweaver
Comment options

@cjdoris
Comment options

@icweaver
Comment options

@cjdoris
Comment options

Answer selected by icweaver
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cjdoris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants