हिंदी

Write short notes on different customisation options available with any plot.

Advertisements
Advertisements

प्रश्न

Write short notes on different customisation options available with any plot.

लघु उत्तरीय
Advertisements

उत्तर

  1. Titles & Labels:
    1. plt.title(): Adds a main heading at the top.
    2. plt.xlabel(): Sets the horizontal x-axis label.
    3. plt.ylabel(): Sets the vertical y-axis label.
  2. Line & Marker Styling:
    1. color: Changes line or bar colors (e.g., 'red', 'g').
    2. linestyle: Changes line appearance (e.g., 'dashed', 'dotted').
    3. linewidth: Adjusts the thickness of the line.
    4. marker: Adds symbols to data points (e.g., 'o', '*').
  3. Grid & Legend:
    1. plt.grid(True): Displays background lines for easier reading.
    2. plt.legend(): Adds a key to identify multiple data series.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: Plotting Data using Matplotlib - Exercise [पृष्ठ १३४]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
अध्याय 4 Plotting Data using Matplotlib
Exercise | Q 4. | पृष्ठ १३४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×