Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) ylabel( )(I) To display the graph
(B) title( )(II) To set the heading of the graph
(C) show( )(III) To set or get the current ticks location and labels
(D) ticks( )(IV) To set the title of y axes

Solution

✅ Correct Option: 3
List IList II
(A) ylabel( )(IV) To set the title of y axes
(B) title( )(II) To set the heading of the graph
(C) show( )(I) To display the graph
(D) ticks( )(III) To set or get the current ticks location and labels

ylabel( ) names the y axis, while title( ) names the whole graph. Students often swap these two.

In Matplotlib, xticks( ) and yticks( ) are the functions that set or get tick locations and labels.

Keyboard Shortcuts

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