From 812fe8d12b6bb5c8b10c0c864e229c0fcbb98e49 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:43:57 +0800 Subject: [PATCH] =?UTF-8?q?add=20homework=5F02=5Fnumpy=5Fmatplotlib/2.?= =?UTF-8?q?=EF=BC=881=EF=BC=89.text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2.\357\274\2101\357\274\211.text" | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 "homework_02_numpy_matplotlib/2.\357\274\2101\357\274\211.text" diff --git "a/homework_02_numpy_matplotlib/2.\357\274\2101\357\274\211.text" "b/homework_02_numpy_matplotlib/2.\357\274\2101\357\274\211.text" new file mode 100644 index 0000000..02d4dad --- /dev/null +++ "b/homework_02_numpy_matplotlib/2.\357\274\2101\357\274\211.text" @@ -0,0 +1,8 @@ +import numpy as np +import matplotlib.pyplot as plt +t=np.arange(-5,5,0.05) +tt=np.arange(-5,5.5,0.5) +plt.plot(t,t**2+3) +plt.vlines(tt,0,tt**2+3) +plt.axis([-6,6,0,35]) +plt.show() \ No newline at end of file -- Gitee