Skip to content

Commit 848d4ee

Browse files
committed
Two Figures on Demand - test
1 parent ae841d6 commit 848d4ee

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.ipynb_checkpoints
22
_build
3+
.venv

content/01-demand/01-demand.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@
116116
"plt.xlim([-0.5, 10.5])\n",
117117
"plt.ylim([-25, 10])\n",
118118
"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",
120120
"plt.close(fig) \n"
121121
]
122122
},
123123
{
124124
"cell_type": "markdown",
125125
"metadata": {},
126126
"source": [
127-
"```{figure} orig-shifted-demand.png\n",
127+
"```{figure} fig-01-demand-orig-shifted-demand.png\n",
128128
"---\n",
129129
"name: orig-shifted-demand.png\n",
130130
"alt: Graph of shifting demand curve\n",
@@ -155,7 +155,7 @@
155155
},
156156
{
157157
"cell_type": "code",
158-
"execution_count": null,
158+
"execution_count": 6,
159159
"metadata": {
160160
"tags": [
161161
"remove_input"
@@ -169,7 +169,7 @@
169169
"q_1, p_1 = 1, 5\n",
170170
"q_2, p_2 = 8, -16\n",
171171
"\n",
172-
"plt.figure(figsize=[7,7])\n",
172+
"fig = plt.figure(figsize=[7,7])\n",
173173
"plt.plot(xs, ys)\n",
174174
"plt.scatter([q_1, q_2], [p_1, p_2], s=200, color=\"g\", zorder=15)\n",
175175
"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,17 +188,17 @@
188188
"plt.ylabel(\"Price\", size=16)\n",
189189
"plt.xlim([-0.5, 10.5])\n",
190190
"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",
192192
"plt.close(fig) "
193193
]
194194
},
195195
{
196196
"cell_type": "markdown",
197197
"metadata": {},
198198
"source": [
199-
"```{figure} demand-q1-p1-q2-p2.png\n",
199+
"```{figure} fig-01-demand-q1-p1-q2-p2.png\n",
200200
"---\n",
201-
"name: demand-q1-p1-q2-p2.png\n",
201+
"name: fig-01-demand-q1-p1-q2-p2.png\n",
202202
"alt: Graph of demand curve illustrating change in quantity purchased(q1) at price one(p1) to quanitity purchased(q2) at price two (p2)\n",
203203
"---\n",
204204
"Fig. Graph of a shifting demand curve as prices changes -- all other factors constant\n",
28.8 KB
Loading

0 commit comments

Comments
 (0)