Parameters

takes an optional argument 'ax' which allows you to reuse an Axis to plot multiple lines. We need to put ax = plt.gca(), where gca stands for get current axis. .gcs() tells matplotlib to reuse the existing axis to plot other lines. Try the following code. ................
................