import mermaid from ''; mermaid.initialize({ startOnLoad: true });
Links, pointers on many plotting libraries.
from jyquickhelper import add_notebook_menu
add_notebook_menu()
To include graphs in a notebook, many modules require to execute a line before it is imported.
%matplotlib inline
Changing style
import matplotlib.pyplot as plt
plt.style.use('ggplot')
Available styles:
plt.style.available
['bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-bright', 'seaborn-colorblind', 'seaborn-dark-palette', 'seaborn-dark', 'seaborn-darkgrid', 'seaborn-deep', 'seaborn-muted', 'seaborn-notebook', 'seaborn-paper', 'seaborn-pastel', 'seaborn-poster', 'seaborn-talk', 'seaborn-ticks', 'seaborn-white', 'seaborn-whitegrid', 'seaborn', 'Solarize_Light2', 'tableau-colorblind10', '_classic_test']
import pyecharts
Only with matplotlib
import matplotlib.pyplot as plt
plt.style.use('ggplot')