From fd8e253ebbf79f38c8ffb0a5cf8c9f1450a040f4 Mon Sep 17 00:00:00 2001 From: tynanpurdy Date: Mon, 17 Sep 2018 18:32:39 -0400 Subject: [PATCH] cleaning --- .gitignore | 2 ++ py/{3rdbezeir.py => 3rdbezier.py} | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .gitignore rename py/{3rdbezeir.py => 3rdbezier.py} (79%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..504c5d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +latex/tynan-ee.aux +latex/tynan-ee.log diff --git a/py/3rdbezeir.py b/py/3rdbezier.py similarity index 79% rename from py/3rdbezeir.py rename to py/3rdbezier.py index fc69d68..d1bc38e 100644 --- a/py/3rdbezeir.py +++ b/py/3rdbezier.py @@ -24,9 +24,9 @@ def y(t): for t in np.linspace(0, 1, 100): - xarray = x(t) # match with chosen functions from above + xarray = x(t) x.append(xarray) - yarray = y(t) # match with chosen functions from above + yarray = y(t) y.append(yarray) fig = plt.figure() @@ -39,13 +39,13 @@ plt.grid() plt.xlim(0, 10) plt.ylim(0, 10) -# label control points. comment out lines referencing cps that aren't being used +# label control points ax.text( cpx[0]+0.1, cpy[0]+0.1, 'P0') ax.text( cpx[1]-0.1, cpy[1]+0.2, 'P1') ax.text( cpx[2]+0.1, cpy[2]+.01, 'P2') ax.text( cpx[3]-0.1, cpy[3]+0.2, 'P3') - ax.set_aspect("equal") -plt.title('3rd Order B\'ezier Curve') + +plt.title('3rd Order Bezier Curve') plt.draw() plt.show() \ No newline at end of file -- 2.51.2