|
116 | 116 | "plt.xlim([-0.5, 10.5])\n",
|
117 | 117 | "plt.ylim([-25, 10])\n",
|
118 | 118 | "plt.legend()\n",
|
119 |
| - "fig.savefig('orig-shifted-demand.png', bbox_inches='tight')\n", |
| 119 | + "fig.savefig('fig-01-demand-orig-shifted-demand.png', bbox_inches='tight')\n", |
120 | 120 | "plt.close(fig) \n"
|
121 | 121 | ]
|
122 | 122 | },
|
123 | 123 | {
|
124 | 124 | "cell_type": "markdown",
|
125 | 125 | "metadata": {},
|
126 | 126 | "source": [
|
127 |
| - "```{figure} orig-shifted-demand.png\n", |
| 127 | + "```{figure} fig-01-demand-orig-shifted-demand.png\n", |
128 | 128 | "---\n",
|
129 | 129 | "name: orig-shifted-demand.png\n",
|
130 | 130 | "alt: Graph of shifting demand curve\n",
|
|
155 | 155 | },
|
156 | 156 | {
|
157 | 157 | "cell_type": "code",
|
158 |
| - "execution_count": null, |
| 158 | + "execution_count": 6, |
159 | 159 | "metadata": {
|
160 | 160 | "tags": [
|
161 | 161 | "remove_input"
|
|
169 | 169 | "q_1, p_1 = 1, 5\n",
|
170 | 170 | "q_2, p_2 = 8, -16\n",
|
171 | 171 | "\n",
|
172 |
| - "plt.figure(figsize=[7,7])\n", |
| 172 | + "fig = plt.figure(figsize=[7,7])\n", |
173 | 173 | "plt.plot(xs, ys)\n",
|
174 | 174 | "plt.scatter([q_1, q_2], [p_1, p_2], s=200, color=\"g\", zorder=15)\n",
|
175 | 175 | "plt.arrow(q_1, p_1, q_2 - q_1, p_2 - p_1, color=\"tab:orange\", width=.1, head_length=1.5, head_width=0.5, length_includes_head=True, zorder=-1)\n",
|
|
188 | 188 | "plt.ylabel(\"Price\", size=16)\n",
|
189 | 189 | "plt.xlim([-0.5, 10.5])\n",
|
190 | 190 | "plt.ylim([-25, 10])\n",
|
191 |
| - "fig.savefig('demand-q1-p1-q2-p2.png', bbox_inches='tight')\n", |
| 191 | + "fig.savefig('fig-01-demand-q1-p1-q2-p2.png', bbox_inches='tight')\n", |
192 | 192 | "plt.close(fig) "
|
193 | 193 | ]
|
194 | 194 | },
|
195 | 195 | {
|
196 | 196 | "cell_type": "markdown",
|
197 | 197 | "metadata": {},
|
198 | 198 | "source": [
|
199 |
| - "```{figure} demand-q1-p1-q2-p2.png\n", |
| 199 | + "```{figure} fig-01-demand-q1-p1-q2-p2.png\n", |
200 | 200 | "---\n",
|
201 |
| - "name: demand-q1-p1-q2-p2.png\n", |
| 201 | + "name: fig-01-demand-q1-p1-q2-p2.png\n", |
202 | 202 | "alt: Graph of demand curve illustrating change in quantity purchased(q1) at price one(p1) to quanitity purchased(q2) at price two (p2)\n",
|
203 | 203 | "---\n",
|
204 | 204 | "Fig. Graph of a shifting demand curve as prices changes -- all other factors constant\n",
|
|
0 commit comments