Robotics & Artificial Intelligence

In Matplotlib, xlabel and ylabel are used to:

  1. add legend to the plot.
  2. set the axis limit.
  3. label x-axis and y-axis.
  4. colour the x-axis and y-axis.

Python Modules

2 Likes

Answer

label x-axis and y-axis.

Reason — In Matplotlib, xlabel is used to label the x-axis and ylabel is used to label the y-axis of a plot, helping users understand what each axis represents.

Answered By

1 Like


Related Questions