I have the following code:
xlocs, xlabels = pylab.xticks(range(0, data.shape+1), xlabels)
pylab.setp(xlabels, 'rotation', 70)
where data is a 2D numpy array containing some masked values and
'xlabels' is - originally - a list of strings for the xlabels.
This gives me two problems:
- The "column" on the right is shown as blank, although this column has
valid data and
- the labels aren't placed below the center of a field, but below the
xticks. I would like to have them centered, below a field, as the ticks
are merely separators and not associated with any unit.