add UnicodeEngine (MultiEngineText and axis texters returning MultiEngineText), texte...
[PyX.git] / examples / graphstyles / errorbar.txt
blob6b84206ef2b9041857c4a86d74c08f31fcc051b5
1 Combining several graph styles
3 In this example several graph styles are applied one after the other to stroke
4 symbols and errorbars for the given data. This can be achieved by passing a
5 list of graph styles as the second parameter to the graph style. ...
7 When you do set the second argument in the graphs plot command, default graph
8 styles are used to plot the data. The default for the graph styles depend is a
9 property of the data instance passed in the first argument of the plot command.
10 While the list and file data instances use a `graph.style.symbol` instance by
11 default, for functions and parametric functions a `graph.style.line` instance
12 is used.
14 The style instances parse the column names for appropriate entries to generate
15 the corresponding output. In this case, the `x` and `y` values are used by
16 both, the symbol and the errorbar style, whereas `dy` is used by the
17 `errorbar` style only.
19 ! You could also provide data for `ymin` and `ymax` to the errorbar style
20 instead of `dy`. The errorbar style can also draw errorbars in x-direction
21 using `dx` or `xmin` and `xmax`. You can add errorbars in both graph directions
22 at the same time.
24 !! The `x` and `y` data is not used by the symbol style nor the errorbar style
25 directly (except for calculating the minimal and maximal value in y-direction
26 by the errorbar due to the parametrization by `y` and `dy`). Instead a
27 positioning style is inserted implicitly (a instance of graph.style.pos) as a
28 position information is needed by the symbol and errorbar styles. By that the
29 styles don't need to perform certain operations several times. Additionally the
30 styles can also be used on graphs, which behave different in their positioning
31 properties like bar graphs where you can use the same styles by just using a
32 different positioning style.