-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.f
67 lines (61 loc) · 1.38 KB
/
main.f
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
60
61
62
63
64
65
66
67
# data file for the Fltk User Interface Designer (fluid)
version 1.0304
header_name {.h}
code_name {.cxx}
decl {\#include "cairo_plot.h"} {public local
}
decl {\#include <fstream>} {public local
}
decl {\#include <string>} {public local
}
Function {} {open
} {
Fl_Window mainwin {
label {start test} open
xywh {2615 492 960 575} type Double resizable visible
} {
Fl_Box plot {
xywh {15 15 765 555} box UP_BOX align 64
class cairo_plot
}
Fl_Button {} {
label {y = 0.5 * x}
callback {plot->clear ();
for (int k=0;k<10;++k)
plot->add_data(k, 0.5*k, 0);
plot->auto_zoom ();
plot->redraw ();}
xywh {800 20 150 40}
}
Fl_Button {} {
label {y = cos (x)}
callback {plot->clear ();
for (int k=0;k<100;++k)
{
double p = k/10.0;
plot->add_data(p, cos (p), 0);
}
plot->auto_zoom ();
plot->redraw ();}
xywh {800 65 150 40}
}
Fl_Button {} {
label {load csv}
callback {string fn = "Stahlwille_MANOSKOP_730_4_610315061_2.csv";
plot->load_csv (fn.c_str ());}
xywh {800 110 150 40}
}
Fl_Input vi_xlabel {
label xlabel
callback {plot->set_xlabel (o->value());
plot->redraw ();}
xywh {800 195 145 25} align 5 when 1
}
Fl_Input vi_ylabel {
label ylabel
callback {plot->set_ylabel (o->value());
plot->redraw ();}
xywh {800 245 145 25} align 5 when 1
}
}
}