What is the difference between add_subplot() and subplot()? They both seem to add a subplot if one isn\'t there. I looked at the documentation but
pyplot.subplot is wrapper of Figure.add_subplot with a difference in behavior.
Creating a subplot with pyplot.subplot will delete any pre-existing subplot that overlaps with it beyond sharing a boundary.
If you do not want this behavior, use the Figure.add_subplot method or the pyplot.axes function instead. More