, display_toolbar=True)[source]

Shows the current context figure in the output area.

  • key (hashable, optional) – Any variable that can be used as a key for a dictionary.
  • display_toolbar (bool (default: True)) – If True, a toolbar for different mouse interaction is displayed with the figure.

KeyError – When no context figure is associated with the provided key.


>>> import numpy as np
>>> import pyplot as plt
>>> n = 100
>>> x = np.arange(n)
>>> y = np.cumsum(np.random.randn(n))
>>> plt.plot(x,y)