add ...
[PyX/mjg.git] / examples / axis / painter.txt
blob9f7730780a41756c7357cde8b6b5854bb78adb98
1 Painting of an axis
3 Axis painters performs the painting of an axis, which means they take all the
4 information of the axis an create a proper drawing for that. ...
6 While an usual axis painter has quite some parameters to adjust the output,
7 here we only alter the ticks. By default, ticks are stroked only towards the
8 inside of the graph (in the path examples there is no graph but don't mind).
9 The labels and the axis title are plotted outside of the graph. Futhermore the
10 axis title (when present as in this example) is rotated along the axis (without
11 writing it upside down), while the tick labels are not rotated at all.
13 In this example we set an `outerticklength`. Together with the
14 `innerticklength` set to the same value by default the ticks are stroked across
15 the axis. As it is common to sub-components of the axis, you need to pass the
16 adapted instances (stored in the variable `mypainter` here) to the axis in its
17 constructor.