python - Labels for scatterplot-matrices -
i have been trying plot scatterplot matrix using great example given joe kington:
however, add xlabels , ylabels on subplots have displayed ticks. when change positions of ticks, associated x/ylabel not follow. have not been able find option change location of label; hoping find ax.set_xlabel('xlabel',position='top')
not exist.
this finally,
example x axis4 above ticks.
if want change x-label bottom top, or y-label left right, can (provided specific suplot called ax
) calling:
ax.xaxis.set_label_position('top') ax.yaxis.set_label_position('right')
if example want label "x label 2" stay don't overlap other subplot, can try add a
fig.tight_layout()
just before fig.show()
.