.ipynb
file containing your work.This homework assignment must be submitted in Gradescope by Noon central time on Tuesday April 4, 2023.
Collaboration is prohibited, and you may only access resources (books, online, etc.) listed below.
This homework is about matplotlib
.
Most relevant:
Less likely to be relevant, but also allowed:
This homework assignment has 2 problems, numbered 2 and 3. The grading breakdown is:
Points | Item |
---|---|
3 | Autograder |
6 | Problem 2 |
6 | Problem 3 |
15 | Total |
The part marked "autograder" reflects points assigned to your submission based on some simple automated checks for Python syntax, etc. The result of these checks is shown immediately after you submit.
Ask your instructor or TA a question by email, in office hours, or on discord.
Submit your work on this assignment as a notebook file hwk11.ipynb
. You can create that notebook from scratch or you can just add your solutions to the notebook file containing the assignment. Do whatever you find most convenient.
Make a figure with a single set of axes. The horizontal axis should be labeled $n$ and the vertical axis should be labeled $y$. Two sets of data should be shown on those axes:
Give the plot a title "Log Fibonacci numbers".
Note: The $n^{\mathrm{th}}$ Fibonacci number is quite close to $\left (\frac{1 + \sqrt{5}}{2} \right)^n$, so your plot should show a line and a bunch of dots that are close to that line!
Write matplotlib code to produce a plot as similar to this one as you can manage. (Including the grid lines you see here is optional; they're the default in the stylesheet recommended in VanderPlas's book.)