From 4bb6dd7ebcb49929f88efde3c3686ce83828c643 Mon Sep 17 00:00:00 2001 From: gsingh58 <gurmail-singh@wisc.edu> Date: Tue, 19 Mar 2024 00:55:51 -0500 Subject: [PATCH] lec16 updated --- lecture_material/16-viz-1/vis_1.ipynb | 20 +++++++++---------- lecture_material/16-viz-1/vis_1_lec_001.ipynb | 4 ++-- lecture_material/16-viz-1/vis_1_lec_002.ipynb | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lecture_material/16-viz-1/vis_1.ipynb b/lecture_material/16-viz-1/vis_1.ipynb index 8d28600..66843b2 100644 --- a/lecture_material/16-viz-1/vis_1.ipynb +++ b/lecture_material/16-viz-1/vis_1.ipynb @@ -66,7 +66,7 @@ { "data": { "text/plain": [ - "<matplotlib.patches.Circle at 0x7f28b7358640>" + "<matplotlib.patches.Circle at 0x7f3598817c40>" ] }, "execution_count": 2, @@ -325,7 +325,7 @@ { "data": { "text/plain": [ - "<matplotlib.patches.Circle at 0x7f28b4d88d90>" + "<matplotlib.patches.Circle at 0x7f359624d820>" ] }, "execution_count": 9, @@ -361,13 +361,13 @@ "# Observe that we get a different circle\n", "\n", "# Transform based on ax1, but crop based on ax2\n", - "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", - "c = plt.Circle((1, 1), 0.3, transform=ax1.transData, color=\"lightblue\") # where to position the shape \n", - "ax2.add_artist(c) # how to crop the shape\n", - "\n", - "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", + "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", "c = plt.Circle((1, 1), 0.3, transform=ax1.transData) # where to position the shape\n", - "ax1.add_artist(c) # how to crop the shape" + "ax1.add_artist(c) # how to crop the shape\n", + "\n", + "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", + "c = plt.Circle((1, 1), 0.3, transform=ax1.transData, color=\"lightblue\") # where to position the shape \n", + "ax2.add_artist(c) # how to crop the shape\n" ] }, { @@ -391,7 +391,7 @@ { "data": { "text/plain": [ - "<matplotlib.patches.Circle at 0x7f28b4ccfeb0>" + "<matplotlib.patches.Circle at 0x7f35961849a0>" ] }, "execution_count": 10, @@ -538,7 +538,7 @@ { "data": { "text/plain": [ - "<matplotlib.patches.FancyArrowPatch at 0x7f28b4b592e0>" + "<matplotlib.patches.FancyArrowPatch at 0x7f359602afa0>" ] }, "execution_count": 13, diff --git a/lecture_material/16-viz-1/vis_1_lec_001.ipynb b/lecture_material/16-viz-1/vis_1_lec_001.ipynb index 767640c..f1f16e6 100644 --- a/lecture_material/16-viz-1/vis_1_lec_001.ipynb +++ b/lecture_material/16-viz-1/vis_1_lec_001.ipynb @@ -238,11 +238,11 @@ "# Observe that we get a different circle\n", "\n", "# Transform based on ax1, but crop based on ax2\n", - "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", + "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", " # where to position the shape \n", " # how to crop the shape\n", "\n", - "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", + "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", " # where to position the shape\n", " # how to crop the shape" ] diff --git a/lecture_material/16-viz-1/vis_1_lec_002.ipynb b/lecture_material/16-viz-1/vis_1_lec_002.ipynb index 767640c..f1f16e6 100644 --- a/lecture_material/16-viz-1/vis_1_lec_002.ipynb +++ b/lecture_material/16-viz-1/vis_1_lec_002.ipynb @@ -238,11 +238,11 @@ "# Observe that we get a different circle\n", "\n", "# Transform based on ax1, but crop based on ax2\n", - "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", + "# Left subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", " # where to position the shape \n", " # how to crop the shape\n", "\n", - "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax1\n", + "# Right subplot: plot Circle at (1, 1) with radius 0.3 and crop using ax2\n", " # where to position the shape\n", " # how to crop the shape" ] -- GitLab