Let's now see how this code works:
- x, y , and y1 define the data for two curves to be plotted on the first chart
- label=r'$y=10*\sqrt{x^2}$' defines the label for first curve plotted in green
- It is a regular expression, so it is enclosed within r'......'
- sqrt is a mathematical symbol, so the whole expression is enclosed within $ ..... $
- Similarly, label for the second curve, plotted in blue color, is printed
- In Theta_i^j, Theta represents the uppercase Greek letter Θ , '_' represents subscript, '^' represents superscript.
- In r'$\Delta_i^j \hspace{0.4} \mathrm{versus} \hspace{0.4} and r'\Delta_{i+1}^j$', ' connects two regular expressions spanning to two lines:
- Delta_i^j represents the uppercase Greek letter Δ with subscript ...