I am trying to position two subplots next to each other (as opposed to under each other). I am expecting to see [sp1] [sp2]
Instead, only the second plot [sp2] is getting displayed.
from matplotlib import pyplot
x = [0, 1, 2]
pyplot.figure()
# sp1
pyplot.subplot(211)
pyplot.bar(x, x)
# sp2
pyplot.subplot(221)
pyplot.plot(x, x)
pyplot.show()
Regards,
Axel