From a7b27f98cb7f899c88157e19557b23f182a2facd Mon Sep 17 00:00:00 2001 From: gsingh58 <gurmail-singh@wisc.edu> Date: Tue, 19 Mar 2024 08:44:49 -0500 Subject: [PATCH] lec16 minor fix --- lecture_material/16-viz-1/vis_1.ipynb | 4 ++-- 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, 6 insertions(+), 6 deletions(-) diff --git a/lecture_material/16-viz-1/vis_1.ipynb b/lecture_material/16-viz-1/vis_1.ipynb index 66843b2..3983193 100644 --- a/lecture_material/16-viz-1/vis_1.ipynb +++ b/lecture_material/16-viz-1/vis_1.ipynb @@ -361,7 +361,7 @@ "# 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 ax1\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) # where to position the shape\n", "ax1.add_artist(c) # how to crop the shape\n", "\n", @@ -518,7 +518,7 @@ "\n", "- `ax.transData.transform((x, y))`: converts axes / data coords into raw coordinates\n", "- How to draw an arrow:\n", - " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, (<y2>)), transform=None, arrowstyle=<STYLE>)`\n", + " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, <y2>)), transform=None, arrowstyle=<STYLE>)`\n", " - arrowstyle=\"simple,head_width=10,head_length=10\"" ] }, 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 f1f16e6..e60ae70 100644 --- a/lecture_material/16-viz-1/vis_1_lec_001.ipynb +++ b/lecture_material/16-viz-1/vis_1_lec_001.ipynb @@ -238,7 +238,7 @@ "# 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 ax1\n", + "# Left 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\n", "\n", @@ -350,7 +350,7 @@ "\n", "- `ax.transData.transform((x, y))`: converts axes / data coords into raw coordinates\n", "- How to draw an arrow:\n", - " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, (<y2>)), transform=None, arrowstyle=<STYLE>)`\n", + " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, <y2>)), transform=None, arrowstyle=<STYLE>)`\n", " - arrowstyle=\"simple,head_width=10,head_length=10\"" ] }, 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 f1f16e6..e60ae70 100644 --- a/lecture_material/16-viz-1/vis_1_lec_002.ipynb +++ b/lecture_material/16-viz-1/vis_1_lec_002.ipynb @@ -238,7 +238,7 @@ "# 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 ax1\n", + "# Left 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\n", "\n", @@ -350,7 +350,7 @@ "\n", "- `ax.transData.transform((x, y))`: converts axes / data coords into raw coordinates\n", "- How to draw an arrow:\n", - " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, (<y2>)), transform=None, arrowstyle=<STYLE>)`\n", + " `matplotlib.patches.FancyArrowPatch((<x1>, <y1>), (<x2>, <y2>)), transform=None, arrowstyle=<STYLE>)`\n", " - arrowstyle=\"simple,head_width=10,head_length=10\"" ] }, -- GitLab