Editorial Summary :

Matplotlib is a python plotting library used mainly for data visualisation . It is used for creating static, animated and interactive visualization in python . Creating a plot in matplotlib, can be achieved with two different approaches . In this approach, the user uses pyplot to create figures(i.e create figure object) and through those figures, one or more axes object can be created . This approach allows for a robust control over the entire plot . To add axes onto the figure, we create axes object call by calling the add_axes() method . The add_axes() method allows us to create multiple axes as well as move and resize the axes . To plot on an axis we call the plot() on the axes object . The plt.figure() takes in parameters that characterize the figure . To save a figure, used the syntax The bbox argument create a saved plot with the x and y ticks . To create a figure we can also add title, xlabel , ylabel, xlim ,ylim on the axis .

Key Highlights :

  • Matplotlib is a python plotting library used mainly for data visualisation .
  • The library is a tool for creating static, animated and interactive visualization in python .
  • Creating a plot in matplotlib can be achieved with two different approaches .
  • The add_axes() method allows us to create multiple axes as well as move and resize the axes .
  • To plot on an axis we call the plot() on the axes object .

The editorial is based on the content sourced from medium.com

Read the full article.

Similar Posts