I'm making three scatter plots, and I'd like them to all show up in the same window (but not in the same plot). Right now, three separate windows pop up, one for each plot. If I move matplotlib.pyplot.show()
outside the loop, then they are all plotted on the same set of axes.
import matplotlib.pyplot
time = [1,2,3]
value = {}
value['x'] = [1,2,3]
value['y'] = [1,4,9]
value['z'] = [1,8,27]
for dimension in ['x', 'y', 'z']:
matplotlib.pyplot.scatter(time, value[dimension])
matplotlib.pyplot.show()