Changeset 491 for trunk/python


Ignore:
Timestamp:
02/21/05 17:41:18 (20 years ago)
Author:
cal103
Message:

Suppressing tick labels by deleting the associated text kills position
tracking! It has to be done by setting label1On = False for the underlying
Tick objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplot.py

    r482 r491  
    1414        FigureManagerTkAgg
    1515from matplotlib.figure import Figure, Text
     16from matplotlib.font_manager import FontProperties
    1617from matplotlib.numerix import sqrt
    1718from matplotlib import rc, rcParams
     
    636637                if i <= (rows-1)*cols - 1:
    637638                    # Suppress x-labels for frames not in the bottom row.
    638                     self.subplots[i]['axes'].set_xticklabels([])
     639                    for tick in self.subplots[i]['axes'].xaxis.majorTicks:
     640                        tick.label1On = False
    639641
    640642                if i%cols:
    641643                    # Suppress y-labels for frames not in the left column.
    642                     self.subplots[i]['axes'].set_yticklabels([])
     644                    for tick in self.subplots[i]['axes'].yaxis.majorTicks:
     645                        tick.label1On = False
    643646
    644647                self.rows = rows
Note: See TracChangeset for help on using the changeset viewer.