0

I am trying to use matplotlib through IPython, here is my code:

In [9]: import matplotlib.pyplot as pp

In [10]: import numpy as np

In [11]: x=np.linspace(0,10,100)

In [12]: y=x**2

In [13]: mp.pyplot.plot(x,y)
Out[13]: [<matplotlib.lines.Line2D at 0x7f7dad912ad0>]

The code thus seems to be working, but the graph does not appear anywhere.

I am running Ubuntu.

1 Answer 1

1

You have to show it:

pp.show()
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.