diff --git a/Quickstart.ipynb b/Quickstart.ipynb index 796c617a2a6bb39ae606e5ab163aa29bdb8483c4..c38cd0b5b0edfad5cf668e12029d65bff03a4407 100644 --- a/Quickstart.ipynb +++ b/Quickstart.ipynb @@ -105,7 +105,7 @@ "source": [ "%matplotlib widget\n", "import matplotlib.pyplot as plt\n", - "from rwth_colors_matplotlib import *\n", + "import rwth_nb.plots.mpl_decorations as rwth_plots\n", "\n", "fs = 44100;\n", "(t, deltat) = np.linspace(-10, 10, 20*fs, retstep=True) # t axis in seconds\n", @@ -115,19 +115,6 @@ "ax.set_xlabel(r'$t$'); ax.set_ylabel(r'$s(t) = \\sin(2 \\pi t)$'); " ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from scipy import misc\n", - "f = misc.face()\n", - "\n", - "fig,ax = plt.subplots();\n", - "ax.imshow(f);" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -204,10 +191,9 @@ "metadata": {}, "outputs": [], "source": [ - "from rwth_colors_matplotlib import *\n", - "\n", "# adapted from https://matplotlib.org/2.0.0/examples/color/named_colors.html\n", - "colors = rwth_colors;\n", + "\n", + "colors = rwth_plots.colors.rwth_colors;\n", "ncols = 5; nrows = len(colors.keys()) // ncols + 1;\n", " \n", "fig, ax = plt.subplots()\n", @@ -264,7 +250,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -278,7 +264,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.9.7" } }, "nbformat": 4,