Skip to content

MAINT: Refactor graphviz figures to be lecture_specific figures.ipynb assets #424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
manage merge conflict and ensure black edges
  • Loading branch information
mmcky committed Apr 22, 2024
commit 2077d9318966e23becd35b1c022c8805ffa20322
4 changes: 2 additions & 2 deletions lectures/_static/lecture_specific/markov_chains_II/example4
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ digraph {
rankdir=LR
0
1
0 -> 1 [label=1.0 color=red]
1 -> 0 [label=1.0 color=red]
0 -> 1 [label=1.0]
1 -> 0 [label=1.0]
}
Binary file modified lectures/_static/lecture_specific/markov_chains_II/example4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions lectures/_static/lecture_specific/markov_chains_II/figures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: graphviz in /Users/mmcky/anaconda3/envs/quantecon/lib/python3.11/site-packages (0.20.3)\n"
"Collecting graphviz\n",
" Using cached graphviz-0.20.3-py3-none-any.whl.metadata (12 kB)\n",
"Using cached graphviz-0.20.3-py3-none-any.whl (47 kB)\n",
"Installing collected packages: graphviz\n",
"Successfully installed graphviz-0.20.3\n"
]
}
],
Expand Down Expand Up @@ -147,8 +151,8 @@
"dot.node(\"0\")\n",
"dot.node(\"1\")\n",
"\n",
"dot.edge(\"0\", \"1\", label=\"1.0\", color='red')\n",
"dot.edge(\"1\", \"0\", label=\"1.0\", color='red')\n",
"dot.edge(\"0\", \"1\", label=\"1.0\")\n",
"dot.edge(\"1\", \"0\", label=\"1.0\")\n",
"\n",
"dot\n",
"dot.render(filename='example4')"
Expand Down