-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBasicPlot.qml
59 lines (52 loc) · 1.3 KB
/
BasicPlot.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import QtQuick 2.0
import MrPlotter 0.1
Item {
id: toplevel
property alias timeDomain: mrp.timeDomain
property alias scrollableDomain: mrp.scrollableDomain
property alias timeZone: mrp.timeZone
property alias timeTickPromotion: mrp.timeTickPromotion
property alias axisList: yaa.axisList
property alias streamList: pa.streamList
property alias scrollZoomable: pa.scrollZoomable
property var autozoom: function ()
{
mrp.autozoom(pa.streamList);
}
PlotArea {
id: pa
anchors.top: parent.top
anchors.left: fyaa.right
anchors.right: parent.right
anchors.bottom: taa.top
yAxisAreaList: [yaa]
}
Flickable {
id: fyaa
y: parent.y
width: Math.min(parent.width / 5, yaa.width)
height: parent.height
contentWidth: yaa.width
clip: true
YAxisArea {
id: yaa
height: fyaa.height
rangeStart: pa.y + pa.height
rangeEnd: pa.y
}
}
TimeAxisArea {
id: taa
x: 0
y: parent.height - taa.height
width: parent.width
height: 60
rangeStart: pa.x
rangeEnd: pa.x + pa.width
}
MrPlotter {
id: mrp
plotList: [pa]
timeaxisarea: taa
}
}