From 0c29a982d11df4ff0317e7dce211db324e827d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=AD=E6=97=A5=E4=B8=9C=E5=8D=87?= <8113091+xrdspxd@user.noreply.gitee.com> Date: Mon, 19 Oct 2020 14:44:56 +0800 Subject: [PATCH] =?UTF-8?q?add=20homework=5F02=5Fnumpy=5Fmatplotlib/2.?= =?UTF-8?q?=EF=BC=882=EF=BC=89.text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.\357\274\2102\357\274\211.text" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "homework_02_numpy_matplotlib/2.\357\274\2102\357\274\211.text" diff --git "a/homework_02_numpy_matplotlib/2.\357\274\2102\357\274\211.text" "b/homework_02_numpy_matplotlib/2.\357\274\2102\357\274\211.text" new file mode 100644 index 0000000..63c3375 --- /dev/null +++ "b/homework_02_numpy_matplotlib/2.\357\274\2102\357\274\211.text" @@ -0,0 +1,10 @@ +import numpy as np +import matplotlib.pyplot as plt +x=np.arange(0,2,0.01) +y=np.sin(x-2)*np.sin(x-2)*np.exp(-x*x) +plt.plot(x,y) +plt.xlabel('x label') +plt.ylabel('y label') +plt.title('sin(x-2)^2*exp(-x^2)') +plt.show() + -- Gitee