Ted To
2015-06-17 14:13:03 UTC
Hi,
I'm having a strange problem and I don't understand why this is
happening. I am plotting the dataframe in: http://pastebin.com/C0Pt0iYd
but I'm getting too few tick marks. My code for the plot is:
fig, ax = plt.subplots()
plt.rc('text', usetex=True)
fig.autofmt_xdate()
ax.plot(indices.carli,'b-',label=r'\textsf{Carli}')
ax.plot(indices.geomean,'g-',label=r'\textsf{GeoMean}')
ax.plot(indices.laspeyres,'c-',label=r'\textsf{Laspeyres}')
ax.plot(indices.paasche,'m-',label=r'\textsf{Paasche}')
ax.plot(indices.tornqvist,'y-',label=r'\textsf{T\"ornqvist}')
plt.xlabel(r'\textsf{Month}')
plt.ylabel(r'\textsf{Index value}')
ax.set_xticklabels(indices.index)
Any ideas what I'm doing wrong?
Thanks,
Ted
I'm having a strange problem and I don't understand why this is
happening. I am plotting the dataframe in: http://pastebin.com/C0Pt0iYd
but I'm getting too few tick marks. My code for the plot is:
fig, ax = plt.subplots()
plt.rc('text', usetex=True)
fig.autofmt_xdate()
ax.plot(indices.carli,'b-',label=r'\textsf{Carli}')
ax.plot(indices.geomean,'g-',label=r'\textsf{GeoMean}')
ax.plot(indices.laspeyres,'c-',label=r'\textsf{Laspeyres}')
ax.plot(indices.paasche,'m-',label=r'\textsf{Paasche}')
ax.plot(indices.tornqvist,'y-',label=r'\textsf{T\"ornqvist}')
plt.xlabel(r'\textsf{Month}')
plt.ylabel(r'\textsf{Index value}')
ax.set_xticklabels(indices.index)
Any ideas what I'm doing wrong?
Thanks,
Ted