update upload data
[PyX.git] / examples / axis / texter.txt
blob25ae4e950a7219bc4d23dfb6bd6bee305069cdd6
1 Texter: Controlling the formatting of tick labels
3 Texters do the formatting of the tick labels: They create the strings which are
4 then passed to the painter. You can choose between fractions and decimal
5 numbers with/without an exponential part. ... The `texter` should not be mixed
6 up with the `painter`: The `painter` is afterwards doing the TeXing and finally
7 creates the labels -- the `texter` prepares the string that is to be processed
8 by TeX.
10 The first example shows the default behavior, which chooses either decimal and
11 exponential formatting.
13 The second example is for special purpose only (because it is ugly), in case
14 that it is strictly necessary to have the same width of all labels.
16 The third example shows how to create fractions instead of decimal numbers.
18 ! At the rightmost axis we also show how to create a special piaxis. Here, some
19 axis parameters are altered to fit an pi-scaled axis nicely. Futhermore,
20 instead of just creating a special axis instance by setting the divisor and
21 texter parameters, a `piaxis` class is created which just alters the defaults
22 of the linear axis it is based at.