Skip to content

Overview

PyConsole supports visualization with matplotlib

Usage

In order for matplotlib to work, you need to first activate it in the console

Steps

  1. activate matplotlib
python
%activate matplotlib
  1. import matplotlib
python
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
  1. make a plot
python
plt.plot(x, y)
  1. show the plot with plt.show
python
plt.show()