Here is an explanation of the code:
- ax1 = fig.add_axes([0.0, 0.55, 0.4, 0.4]) adds a new axis to the figure object:
- Co-ordinates are in the figure co-ordinate system, and specify the starting point of the axes from left, bottom, the width and height of the axes.
- The first co-ordinate 0.0 means the axes starts at the extreme left
- The second co-ordinate 0.55 means that the axes starts at 55 percent of the height of the figure from the bottom
- The third co-ordinate 0.4 specifies that the width of this axes is 40 percent of the width of the figure
- The fourth co-ordinate 0.4 specifies that the height of the axes is 40 percent of the height of the figure
- A sine graph is plotted on this axes
- ax2 = fig.add_axes([0.0, 0.1, 0.4, ...