From 116cbf810a58729e3f12c84de24a13411b22e319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=BC=E5=B0=8F=E8=BE=89=E4=B8=B6?= <760198141@qq.com> Date: Wed, 13 Oct 2021 14:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Matplotlib Drawing/Problem 7/D.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Matplotlib Drawing/Problem 7/D.py diff --git a/Matplotlib Drawing/Problem 7/D.py b/Matplotlib Drawing/Problem 7/D.py new file mode 100644 index 0000000..0568575 --- /dev/null +++ b/Matplotlib Drawing/Problem 7/D.py @@ -0,0 +1,8 @@ +import numpy as np +import matplotlib.pyplot as plt +x = np.linspace(0, 8, 1000) +y = 2.0 * x + 0.5 * 5 * x ** 2 +plt.xlabel('Time') +plt.ylabel('distance') +plt.plot(x, y, c = 'c') +plt.show() \ No newline at end of file -- GitLab