From b02f9915a4b798f70f1425666e0c6c9e6751557b Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Sun, 25 Aug 2019 10:03:18 -0700 Subject: [PATCH 1/3] clean up matplotlib notebook --- ...Introduction_To_Matplotlib_solutions.ipynb | 269 ++++++++++-------- 1 file changed, 143 insertions(+), 126 deletions(-) diff --git a/PythonBootcamp/solutions/06_Introduction_To_Matplotlib_solutions.ipynb b/PythonBootcamp/solutions/06_Introduction_To_Matplotlib_solutions.ipynb index ef4fac8..ee55807 100644 --- a/PythonBootcamp/solutions/06_Introduction_To_Matplotlib_solutions.ipynb +++ b/PythonBootcamp/solutions/06_Introduction_To_Matplotlib_solutions.ipynb @@ -112,7 +112,7 @@ ], "source": [ "x = np.arange(0, 10, 0.01) #make evenly spaced points between 0 and 10 at intervals of 0.01\n", - "y = np.sin(2*np.pi*x)*np.exp(-0.5*x) #some function of x\n", + "y = np.sin(2*np.pi*x) * np.exp(-0.5*x) #some function of x\n", "print(\"first five elements of x: {}\".format(x[:5]))\n", "print(\"first five elements of y: {}\".format(y[:5]))" ] @@ -145,7 +145,7 @@ " } else if (typeof(MozWebSocket) !== 'undefined') {\n", " return MozWebSocket;\n", " } else {\n", - " alert('Your browser does not have WebSocket support.' +\n", + " alert('Your browser does not have WebSocket support. ' +\n", " 'Please try Chrome, Safari or Firefox ≥ 6. ' +\n", " 'Firefox 4 and 5 are also supported but you ' +\n", " 'have to enable WebSockets in about:config.');\n", @@ -362,7 +362,7 @@ "mpl.figure.prototype._init_toolbar = function() {\n", " var fig = this;\n", "\n", - " var nav_element = $('
')\n", + " var nav_element = $('
');\n", " nav_element.attr('style', 'width: 100%');\n", " this.root.append(nav_element);\n", "\n", @@ -419,7 +419,7 @@ " var fmt = mpl.extensions[ind];\n", " var option = $(\n", " '