Skip to main contentSkip to solution

______ and _____ governs the values displayed on the x and y-axis.

Solution

✅ Correct Option: 3

In Matplotlib, xticks() and yticks() set the tick positions on the x and y axes, and optionally their labels. These tick marks are the values shown along each axis, so they control what is displayed.


Option 1: xlabel() and ylabel() set the axis titles (the text describing the axis), not the values on it.

Option 2: xlim() and ylim() set the range (lower and upper limits) of the axis, not which values are shown.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question