Appearance
Overview
PyConsole supports visualization with matplotlib
Usage
In order for matplotlib to work, you need to first activate it in the console
Steps
- activate matplotlib
python
%activate matplotlib
- import matplotlib
python
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
- make a plot
python
plt.plot(x, y)
- show the plot with
plt.show
python
plt.show()