![]() ![]() Hence, we need to call plt.show() method to show the figure as shown below:Īs there is nothing to plot, there will be no output. This is because we might want to add some extra features to the plot before displaying it, such as title and label customisation. Python will wait for a call-to-show method to display the plot. Also, Python Matplotlib will not show anything until told to do so. It only creates a figure of size 432 x 288 with 0 Axes. Upon running the above example, nothing happens really. The example mentioned below illustrates the use of the above-mentioned terms: The axes are effectively the area that we plot data on. It can be created using the figure method of pyplot module. We can have multiple independent figures, and each figure can have multiple Axes. It is the overall window where everything is drawn.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |