Advertisements
Advertisements
प्रश्न
Write short notes on different customisation options available with any plot.
लघु उत्तरीय
Advertisements
उत्तर
- Titles & Labels:
plt.title(): Adds a main heading at the top.plt.xlabel(): Sets the horizontal x-axis label.plt.ylabel(): Sets the vertical y-axis label.
- Line & Marker Styling:
color: Changes line or bar colors (e.g., 'red', 'g').linestyle: Changes line appearance (e.g.,'dashed','dotted').linewidth: Adjusts the thickness of the line.marker: Adds symbols to data points (e.g., 'o', '*').
- Grid & Legend:
plt.grid(True): Displays background lines for easier reading.plt.legend(): Adds a key to identify multiple data series.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
