Commit 3d9f03c1 authored by Romain Casati's avatar Romain Casati
Browse files

Fix: not really clean examples.

parent 9254b6a7
Pipeline #365976 passed with stages
in 2 minutes and 42 seconds
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from mpl_toolkits.mplot3d import Axes3D\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfig = plt.figure(figsize=(6, 4))\nax = fig.gca(projection='3d')\nX = np.linspace(-10, 10, 101)\nY = np.linspace(-10, 10, 101)\nX, Y = np.meshgrid(X, Y)\nD = np.sqrt(X ** 2 + Y ** 2)\nZ = np.exp(-D/2) * np.cos(1.5 * D)\nax.plot_wireframe(X, Y, Z, rstride=2, cstride=2, linewidth=0.5)\n\nplt.show()","execution_count":1,"outputs":[{"output_type":"display_data","data":{"application/javascript":"element.append(window.mplBus.pop(0));"},"metadata":{}}]},{"metadata":{"trusted":true},"cell_type":"code","source":"","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from mpl_toolkits.mplot3d import Axes3D\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfig = plt.figure(figsize=(6, 4))\nax = fig.gca(projection='3d')\nX = np.linspace(-10, 10, 101)\nY = np.linspace(-10, 10, 101)\nX, Y = np.meshgrid(X, Y)\nD = np.sqrt(X ** 2 + Y ** 2)\nZ = np.exp(-D/2) * np.cos(1.5 * D)\nax.plot_wireframe(X, Y, Z, rstride=2, cstride=2, linewidth=0.5)\n\nplt.show()","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from matplotlib import image\nimport matplotlib.pyplot as plt","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"# image released to public domain\nimg = image.imread(\"sandbox.png\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"plt.figure()\nplt.imshow(img)\nplt.axis(\"off\")\nplt.show()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"img = 1 - img","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"plt.figure()\nplt.imshow(img)\nplt.axis(\"off\")\nplt.show()","execution_count":null,"outputs":[{"output_type":"display_data","data":{"application/javascript":"element.append(window.mplBus.pop(0));"},"metadata":{}}]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from matplotlib import image\nimport matplotlib.pyplot as plt","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"# image released to public domain\nimg = image.imread(\"sandbox.png\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"plt.figure()\nplt.imshow(img)\nplt.axis(\"off\")\nplt.show()","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"img = 1 - img","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"plt.figure()\nplt.imshow(img)\nplt.axis(\"off\")\nplt.show()","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"name":"python3","display_name":"Python 3","language":"python"}},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment