You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Autograder demo: Checking Matplotlib plots

This question uses the built-in methods in code_feedback.py to check Matplotlib plots. The Feedback.check_plot() function can be used to check correctness of plots, with an optional keyword argument check_axes_scale to check if the student plot has the same axis scales as the reference solution.

Plot the function $$ f(x) = e^x $$ on the integer values of $x \in \left[0, 10\right]$, with a linear scale for the x-axis and a logarithmic scale for the y-axis. Save the plot in the variable plot using plt.gca().

The setup code does not provide any variables.

Your code snippet should define the following variables:

Name Type Description
plot matplotlib.axes instance The plot as described above.
user_code.py

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Autograder demo: Checking Matplotlib plots

Variant

Started at:
2026-09-19 07:59:27 (CDT)
Duration:
0s
Show/Hide answer
{}
History
dec frac
rad deg