# mathematics support plotting data including multi-dimensional plots (surfaces) Follow

I can successfully plot (show below) using python3.5 with a support package using anaconda. How do I add this capability to PyCharm4.5? It does not recognize import matplotlib.pyplot as pet and I am not sure how to add this to PyCharm.

import numpy as np

import matplotlib.pyplot as plt

x = np.linspace(0, 2 * np.pi)

offsets = np.linspace(0, 2*np.pi, 4, endpoint=False)

plt.rc('lines', linewidth=4)

fig, (ax0, ax1) = plt.subplots(nrows=2)

plt.rc('axes', color_cycle=['r', 'g', 'b', 'y'])

ax0.plot(yy)

ax0.set_title('Set default color cycle to rgby')

ax1.set_color_cycle(['c', 'm', 'y', 'k'])

ax1.plot(yy)

ax1.set_title('Set axes color cycle to cmyk')

plt.show()

import numpy as np

import matplotlib.pyplot as plt

x = np.linspace(0, 2 * np.pi)

offsets = np.linspace(0, 2*np.pi, 4, endpoint=False)

- Create array with shifted-sine curve along each column

plt.rc('lines', linewidth=4)

fig, (ax0, ax1) = plt.subplots(nrows=2)

plt.rc('axes', color_cycle=['r', 'g', 'b', 'y'])

ax0.plot(yy)

ax0.set_title('Set default color cycle to rgby')

ax1.set_color_cycle(['c', 'm', 'y', 'k'])

ax1.plot(yy)

ax1.set_title('Set axes color cycle to cmyk')

- Tweak spacing between subplots to prevent labels from overlapping

plt.show()

Please sign in to leave a comment.