<div dir="ltr">The contour function can be called in many forms. <div><br></div><div>Without your data, it's hard to see exactly what's going on, but it looks like you're using the contour(Z, V) form.</div><div><br></div><div>I recommend using the contour(X, Y, Z) form. Passing Y as an array of datetime-like object should "just work".</div><div><br></div><div>If it doesn't, boil this example down to something we can copy-paste into a terminal/notebook and mess around with. A 5 x 5 array for your Z values and some of the dates in the format you currently have them should suffice.</div><div>-Paul </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 10, 2017 at 12:26 PM, vaultron94 <span dir="ltr"><<a href="mailto:sbuechele@albany.edu" target="_blank">sbuechele@albany.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
So I ran into a snare when making a Hovmoller for a case study. I have<br>
everything done and colors picked out. But for the life of me cannot find a<br>
way to get the Y-axis to plot the dates provided in the data. Here is the<br>
script I have.<br>
<br>
import numpy as np<br>
import datetime<br>
import matplotlib.pyplot as plt<br>
import os<br>
import pandas as pd<br>
<br>
def cmap(cmap):<br>
    cmap = plt.cm.get_cmap(cmap)<br>
<br>
data = pd.read_excel('/Users/<wbr>operator/Documents/Hovmoller_<wbr>dewpt.xlsx')<br>
<br>
a=np.array(data)<br>
<br>
time= (a[:,0])<br>
lat= (a[:,1])<br>
lon= (a[:,2])<br>
BATA= (a[:,3])<br>
BSPA= (a[:,4])<br>
BUFF= (a[:,5])<br>
CLIF= (a[:,6])<br>
FAYE= (a[:,7])<br>
HERK= (a[:,8])<br>
JOHN= (a[:,9])<br>
JORD= (a[:,10])<br>
OPPE= (a[:,11])<br>
WEST= (a[:,12])<br>
timeZ= (a[:,13])<br>
<br>
<br>
b=np.vstack((BUFF,BATA,CLIF,<wbr>JORD,FAYE,WEST,HERK,OPPE,JOHN,<wbr>BSPA)).T<br>
<br>
plt.contourf(b, np.arange(40,67), cmap=('jet'))<br>
<br>
<br>
plt.xlabel('BUFF  BATA  CLIF  JORD  FAYE  WEST  HERK  OPPE  JOHN  BSPA')<br>
plt.ylabel('Time')<br>
plt.grid('off')<br>
plt.colorbar()<br>
<br>
plt.title('Dewpoint Hovmoller for Mesonet Sites')<br>
plt.figure()<br>
<br>
#timeZ contains the dates I want, and instead of having the number of rows<br>
as the y axis I want the dates there instead. Attached is the graphic I get<br>
as of now. Any thoughts or advice is much appreciated!<br>
<br>
Thank you<br>
<br>
<<a href="http://matplotlib.1069221.n5.nabble.com/file/n48081/DewPoint.png" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.<wbr>nabble.com/file/n48081/<wbr>DewPoint.png</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Plotting-dates-on-the-y-axis-of-a-contour-map-hovmoller-tp48081.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.<wbr>nabble.com/Plotting-dates-on-<wbr>the-y-axis-of-a-contour-map-<wbr>hovmoller-tp48081.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
</blockquote></div><br></div>