I have the following code:
def compare(f,a,b,c,d,n,points):
"""Plots 2 figures - one of the color map of f, and one of the color map of a rectangle [a,b] x [c,d], split
into n^2 subareas, using the list of points to estimate the color map"""
#fig, axes = plt.subplots(nrows=2, ncols=2)
q = plt.figure(1)
colorMapList(f,a,b,c,d,n,points)
#q.show()
p = plt.figure(2)
colorMap(f)
plt.show()
The functions colorMapList
and colorMap
both return ax.contourf(Y,X,z)
.
When I have the code the way I have it, the program outputs two diagrams, one below the other. How can I have it so that the diagrams are displayed horizontally next to each other? Thanks!