~jeremysanders/veusz/trunk

« back to all changes in this revision

Viewing changes to examples/dsexpressions.vsz

  • Committer: Jeremy Sanders
  • Date: 2013-06-23 13:24:56 UTC
  • Revision ID: git-v1:d054f565a3db97af52cad7bf4b69eb82803aa74e
Add dsexpressions self test

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Veusz saved document (version 1.17.1)
 
2
 
 
3
ImportString('x(numeric)','''
 
4
0.000000e+00
 
5
4.188790e-01
 
6
8.377580e-01
 
7
1.256637e+00
 
8
1.675516e+00
 
9
2.094395e+00
 
10
2.513274e+00
 
11
2.932153e+00
 
12
3.351032e+00
 
13
3.769911e+00
 
14
4.188790e+00
 
15
4.607669e+00
 
16
5.026548e+00
 
17
5.445427e+00
 
18
5.864306e+00
 
19
6.283185e+00
 
20
''')
 
21
ImportString('y(numeric)','''
 
22
0.000000e+00
 
23
4.067366e-01
 
24
7.431448e-01
 
25
9.510565e-01
 
26
9.945219e-01
 
27
8.660254e-01
 
28
5.877853e-01
 
29
2.079117e-01
 
30
-2.079117e-01
 
31
-5.877853e-01
 
32
-8.660254e-01
 
33
-9.945219e-01
 
34
-9.510565e-01
 
35
-7.431448e-01
 
36
-4.067366e-01
 
37
-2.449213e-16
 
38
''')
 
39
Set('StyleSheet/Font/font', u'Bitstream Vera Serif')
 
40
Add('page', name='page1', autoadd=False)
 
41
To('page1')
 
42
Add('graph', name='graph1', autoadd=False)
 
43
To('graph1')
 
44
Add('axis', name='x', autoadd=False)
 
45
To('x')
 
46
Set('label', '\\italic{x}')
 
47
Set('autoRange', u'exact')
 
48
To('..')
 
49
Add('axis', name='y', autoadd=False)
 
50
To('y')
 
51
Set('label', u'\\italic{y}')
 
52
Set('direction', 'vertical')
 
53
To('..')
 
54
Add('xy', name='xy1', autoadd=False)
 
55
To('xy1')
 
56
Set('PlotLine/color', '#3b57d0')
 
57
Set('MarkerFill/color', '#3b57d0')
 
58
Set('ErrorBarLine/color', '#3b57d0')
 
59
To('..')
 
60
Add('xy', name='xy2', autoadd=False)
 
61
To('xy2')
 
62
Set('yData', u'y*1.5')
 
63
Set('PlotLine/color', '#d7dede')
 
64
Set('MarkerFill/color', '#d7dede')
 
65
Set('ErrorBarLine/color', '#d7dede')
 
66
To('..')
 
67
Add('xy', name='xy3', autoadd=False)
 
68
To('xy3')
 
69
Set('yData', u'(-y*1.5,0.1)')
 
70
Set('PlotLine/color', '#526c38')
 
71
Set('MarkerFill/color', '#526c38')
 
72
Set('ErrorBarLine/color', '#526c38')
 
73
To('..')
 
74
Add('xy', name='xy4', autoadd=False)
 
75
To('xy4')
 
76
Set('yData', u'(-y, 0.1, -0.2)')
 
77
Set('PlotLine/color', '#5e136d')
 
78
Set('MarkerFill/color', '#5e136d')
 
79
Set('ErrorBarLine/color', '#5e136d')
 
80
To('..')
 
81
Add('xy', name='xy5', autoadd=False)
 
82
To('xy5')
 
83
Set('xData', u'(x+y,0.1)')
 
84
Set('yData', u'(-y*1.5,y*0.2)')
 
85
Set('PlotLine/color', '#a60523')
 
86
Set('MarkerFill/color', '#a60523')
 
87
Set('ErrorBarLine/color', '#a60523')
 
88
To('..')
 
89
Add('label', name='label1', autoadd=False)
 
90
To('label1')
 
91
Set('label', u'Using expressions of datasets')
 
92
Set('xPos', [0.5])
 
93
Set('yPos', [0.98])
 
94
Set('alignHorz', u'centre')
 
95
Set('alignVert', u'top')
 
96
To('..')
 
97
To('..')
 
98
To('..')