update the axes examples to the new structure -- hopefully its now becoming more...
[PyX/mjg.git] / examples / axis / minimal.txt
blob65c5921a3bc092e16ccb317e34c8de0680b3491c
1 Minimal example drawing an axis along a path
3 This is the basic example how to draw an axis along an arbitrary path. The
4 function `pathaxis` from the `graph.axis` module takes a path and returns a
5 canvas. Different from the typical usecase in graphs, we must fix the axis
6 range by appropriate `min` and `max` arguments, because no data is provided to
7 the axis instance where a data range could be extracted from. In graphs the
8 range of an axis gets adjusted automatically although you can still set minimal
9 and/or maximal values to force a certain axis range.
11 The axis instance is passed as the second argument to the `pathaxis` function.
12 To use the axis at a graph all you need to do is to path the instance to the
13 axis constructor using an appropriate keyword specifying the axis name.