add ...
[PyX/mjg.git] / examples / axis / minimal.txt
blobde24651d9bb421c999df4cd917075c32a40f2aab
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. ... As opposed to 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.