Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
matplotlib in spyder
#1
Hi everyone,

When I type the below code I get the following output but no graph visual. How do I display graphs with matplotlib when using spyder?

import matplotlib.pyplot as plt
import numpy as np
data = np.arange(10)
data
plt.plot(data)
<IPython.core.display.Javascript object>
<IPython.core.display.HTML object>
Out[3]: [<matplotlib.lines.Line2D at 0x2610f7bc198>]
Reply


Messages In This Thread
matplotlib in spyder - by Scott - May-11-2018, 03:32 AM
RE: matplotlib in spyder - by Larz60+ - May-11-2018, 06:36 AM
RE: matplotlib in spyder - by Scott - May-11-2018, 06:46 AM
RE: matplotlib in spyder - by Larz60+ - May-11-2018, 01:06 PM
RE: matplotlib in spyder - by Scott - May-11-2018, 07:12 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020