Repository navigation
Plots and small Julia examples in lectures and tutorials where they teach something - #45
Merged
Merged
Conversation
The course style moves into include/plot_style.jl, so lectures can load it in a hidden cell while tutorials still show it through include/plot_style.qmd. Lectures: bottling minutes against capacity (05), the optimality gap over a 10-minute solve (07), a one-dimensional p-median with its plot (08), the fluctuation bound as a quick check and plot (09), and the set I_p as one line of Julia (12). Tutorials: the whole-number plans around the best one (04-04), the district map in the course colors with neighboring districts kept apart (08), and a hint to use the course style for the utilization plot (09).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #44. New plots go only where they get something across that the text cannot. Lecture code stays short and uses toy data, so it never writes the constraints a graded tutorial asks for.
Shared style
include/plot_style.jl. Tutorials still show it throughinclude/plot_style.qmd; lectures load it in a hidden cell.Lectures
Tutorials
visualize_departmentsnow takeseuclidianDistancesand no longer takes the unusedp; all four calls are updated.course_styleand draw the capacity as a dashed line.Skipped on purpose: lecture 01 profit per route, the 04-05 cost histogram, both tutorial 06 plots (the heatmap would answer the students' own question), lecture 11 points per seat, and lectures 06, 10, 13 and 14.
Checks: every changed page renders, the slide overflow gate passes for lectures 05, 07, 08, 09 and 12, and each new slide and plot was looked at as an image. A code review (high) ran; its fixes are in.
Not included: the internal session solutions (05, 07, 08, 11) still have the old plot code.