I use Pandas to draw a scatter matrix matrix: from pandas.tools.plotting import scatter_matrix . The problem is that the column names in the DataFrame too large, and I need them to be vertical along the x axis and horizontal along the y axis so that they can fit. I generally cannot figure out how to do this in Pandas. I know how to do this in matplotlib , but not in Pandas.
My code is:
pylab.clf() df = pd.DataFrame(X, columns=the_labels) axs = scatter_matrix(df, alpha=0.2, diagonal='kde')
Edit: I need to use pylab.clf() because I draw a lot of numbers, so calling pylab.figure() every time has too much memory.
source share