File: minimal.txt

package info (click to toggle)
pyx3 0.13-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,676 kB
  • ctags: 3,145
  • sloc: python: 19,841; ansic: 127; makefile: 76; sh: 8
file content (11 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
Minimal example for drawing an isolated axis

This is the basic example of how to draw an axis alone -- without the whole
graph. It serves to simplify the following examples. ... The function
`pathaxis` from the `graph.axis` module takes a path and returns a canvas which
contains the drawn axis.

In contrast to the typical usecase of graphs containing data, we here have to
provide the range explicitly (using the `min` and `max` arguments). For real
graphs the range of an axis, of course, is adjusted automatically, although you
can still set minimal and/or maximal values to force a certain axis range.