Which parameter is used to define the position/alignment of the plot title in the title() function?

20. Which parameter is used to define the position/alignment of the plot title in the title() function?

  1. pos
  2. align
  3. loc
  4. All of the above

Answer: C) loc

Explanation:

The loc parameter is used to define the position/alignment of the plot title in the title() function with the following values –

  • left
  • right
  • center

Where "center" is the default value.

Consider the below code statement –

plt.title("Employee Data", loc = 'left')

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.