Which parameter is used to set the font properties for the plot?

18. Which parameter is used to set the font properties for the plot?

  1. fontdict
  2. fonts
  3. fontfamily
  4. plotfonts

Answer: A) fontdict

Explanation:

The fontdict parameter is used to set the font properties for the plot. Consider the below syntax of using fontdict parameter –

# define font properties
font1 = {'family':'Arial','color':'Red','size':17}
# Apply font properties to title
plt.title("Employee Data", fontdict = font1)

Comments and Discussions!

Load comments ↻






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