<jupyter_start><jupyter_text>Stack Plot Example Using Random Numbers<jupyter_code>import numpy as np 
import matplotlib.pyplot as plt
x = range(1,21)
y1 = np.random.rand(20)
y2 = np.random.rand(20)
plt.plot([], [], color='r', label='y1')
plt.plot([], [], color='b', label='y2')

plt.stackplot(x, y1, y2, colors=['r', 'b'])
plt.title("Stack Plot with Random Numbers")
plt.legend()
plt.show()<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup