Constructing a Contour Plot with Three Different Arrays Corresponding to X, Y, and Z in Python
<p>If I have specific x and y values corresponding to a z value separated by array, how would I make a contour plot? For example:</p>

<pre><code>Array 1 (X):
1
4
6
7
8
2
6

Array 2 (Y):
7
7
8
9
0
1
2

Array 3 (Z):
8
9 
7
1
2
2
3
</code></pre>

<p>Would I have to do X1, Y1 = np.meshgrid(X, Y) and shape the Z array somehow? Is there another way to do this without using meshgrid? Also, if I add a fourth array and name it Z1 with the same x and y values corresponding to a particular Z1, can I plot this contour plot together with the first contour plot?</p>