CardCape
CardCape

Reputation: 3

Unable to Plot 3d Function Using Matplotlib

I am trying to plot a 3d function in python using matplotlib. For some reason I get the error "Invalid syntax (pyflakes E)" in the second line of the code provided when trying to plot it. I got this part from another person, and this works for them. The packages from matplotlib I have installed are mplot3d, cm, and Subplot. Perhaps there is another package I need?

fig = plt.figure(figsize=(12,12))
ax = fig.add_subplot(projection='3d')

Upvotes: 0

Views: 283

Answers (1)

Related Questions