Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96105
License: OTHER
1
from IPython.display import set_matplotlib_formats, display
2
import pandas as pd
3
import numpy as np
4
import matplotlib.pyplot as plt
5
import mglearn
6
from cycler import cycler
7
8
set_matplotlib_formats('pdf', 'png')
9
plt.rcParams['figure.dpi'] = 300
10
plt.rcParams['image.cmap'] = "viridis"
11
plt.rcParams['image.interpolation'] = "none"
12
plt.rcParams['savefig.bbox'] = "tight"
13
plt.rcParams['lines.linewidth'] = 2
14
plt.rcParams['legend.numpoints'] = 1
15
plt.rc('axes', prop_cycle=(
16
cycler('color', mglearn.plot_helpers.cm_cycle.colors) +
17
cycler('linestyle', ['-', '-', "--", (0, (3, 3)), (0, (1.5, 1.5))])))
18
19
np.set_printoptions(precision=3, suppress=True)
20
21
pd.set_option("display.max_columns", 8)
22
pd.set_option('precision', 2)
23
24
__all__ = ['np', 'mglearn', 'display', 'plt', 'pd']
25
26