diff --git a/ipython_examples/PoincareMap.ipynb b/ipython_examples/PoincareMap.ipynb index df880c68f8..213bf3e660 100644 --- a/ipython_examples/PoincareMap.ipynb +++ b/ipython_examples/PoincareMap.ipynb @@ -344,15 +344,13 @@ "source": [ "%matplotlib inline \n", "import matplotlib.pyplot as plt\n", - "import matplotlib.cm\n", "fig = plt.figure(figsize=(14,8))\n", "ax = plt.subplot(111)\n", "ax.set_xlabel(\"$\\phi$\"); ax.set_ylabel(\"$\\dot{\\phi}$\")\n", "ax.set_xlim([-np.pi,np.pi]); ax.set_ylim([-0.06,0.1])\n", - "cm = matplotlib.cm.get_cmap('brg')\n", "for m, megno, vx in res:\n", " c = np.empty(len(m[:,0])); c.fill(megno)\n", - " p = ax.scatter(m[:,0],m[:,1],marker=\".\",c=c, vmin=1.4, vmax=3, s=25,edgecolor='none', cmap=cm)\n", + " p = ax.scatter(m[:,0],m[:,1],marker=\".\",c=c, vmin=1.4, vmax=3, s=25,edgecolor='none', cmap=\"brg\")\n", "cb = plt.colorbar(p, ax=ax)\n", "cb.set_label(\"MEGNO $$\")" ]