I'm having a hard time getting pandas.tools.rplots to label my axes. Here's a minimal example:
import pandas as pd
import pandas.tools.rplot as rplot
import numpy as np
import matplotlib.pyplot as plt
sitecodes = ['A'] * 10 + ['B'] * 10 + ['C'] * 10
altitude = np.random.rand(len(sitecodes)) * 1000
obs = np.random.rand(len(sitecodes))
df = pd.DataFrame({'sitecodes':sitecodes,
'altitude':altitude,
'obs':obs})
plt.figure()
plot = rplot.RPlot(df, x='altitude', y='obs')
plot.add(rplot.TrellisGrid(['sitecodes', '.']))
plot.add(rplot.GeomScatter())
discard = plot.render()
plt.show()
Some of the examples in http://pandas.pydata.org/pandas-docs/stable/visualization.html#trellis-plotting-interface have axis labels and some do not; in my example above mine don't. I can't find a way to add them in the documentation I can find or by poking around inside the plot object that rplot.RPlot returns.
Surely there's a way to label axes?