File: QwtPlot.3

package info (click to toggle)
qwt 6.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,848 kB
  • ctags: 15,811
  • sloc: cpp: 57,382; makefile: 41
file content (1573 lines) | stat: -rw-r--r-- 35,460 bytes parent folder | download
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
.TH "QwtPlot" 3 "Thu Dec 11 2014" "Version 6.1.2" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlot \- 
.PP
A 2-D plotting widget\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot\&.h>\fP
.PP
Inherits QFrame, and \fBQwtPlotDict\fP\&.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBAxis\fP { \fByLeft\fP, \fByRight\fP, \fBxBottom\fP, \fBxTop\fP, \fBaxisCnt\fP }"
.br
.RI "\fIAxis index\&. \fP"
.ti -1c
.RI "enum \fBLegendPosition\fP { \fBLeftLegend\fP, \fBRightLegend\fP, \fBBottomLegend\fP, \fBTopLegend\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBreplot\fP ()"
.br
.RI "\fIRedraw the plot\&. \fP"
.ti -1c
.RI "void \fBautoRefresh\fP ()"
.br
.RI "\fIReplots the plot if \fBautoReplot()\fP is \fCtrue\fP\&. \fP"
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBitemAttached\fP (\fBQwtPlotItem\fP *plotItem, bool on)"
.br
.ti -1c
.RI "void \fBlegendDataChanged\fP (const QVariant &itemInfo, const QList< \fBQwtLegendData\fP > &data)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQwtPlot\fP (QWidget *=NULL)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "\fBQwtPlot\fP (const \fBQwtText\fP &\fBtitle\fP, QWidget *=NULL)"
.br
.RI "\fIConstructor\&. \fP"
.ti -1c
.RI "virtual \fB~QwtPlot\fP ()"
.br
.RI "\fIDestructor\&. \fP"
.ti -1c
.RI "void \fBapplyProperties\fP (const QString &)"
.br
.ti -1c
.RI "QString \fBgrabProperties\fP () const "
.br
.ti -1c
.RI "void \fBsetAutoReplot\fP (bool=true)"
.br
.RI "\fISet or reset the autoReplot option\&. \fP"
.ti -1c
.RI "bool \fBautoReplot\fP () const "
.br
.ti -1c
.RI "void \fBsetPlotLayout\fP (\fBQwtPlotLayout\fP *)"
.br
.RI "\fIAssign a new plot layout\&. \fP"
.ti -1c
.RI "\fBQwtPlotLayout\fP * \fBplotLayout\fP ()"
.br
.ti -1c
.RI "const \fBQwtPlotLayout\fP * \fBplotLayout\fP () const "
.br
.ti -1c
.RI "void \fBsetTitle\fP (const QString &)"
.br
.ti -1c
.RI "void \fBsetTitle\fP (const \fBQwtText\fP &t)"
.br
.ti -1c
.RI "\fBQwtText\fP \fBtitle\fP () const "
.br
.ti -1c
.RI "\fBQwtTextLabel\fP * \fBtitleLabel\fP ()"
.br
.ti -1c
.RI "const \fBQwtTextLabel\fP * \fBtitleLabel\fP () const "
.br
.ti -1c
.RI "void \fBsetFooter\fP (const QString &)"
.br
.ti -1c
.RI "void \fBsetFooter\fP (const \fBQwtText\fP &t)"
.br
.ti -1c
.RI "\fBQwtText\fP \fBfooter\fP () const "
.br
.ti -1c
.RI "\fBQwtTextLabel\fP * \fBfooterLabel\fP ()"
.br
.ti -1c
.RI "const \fBQwtTextLabel\fP * \fBfooterLabel\fP () const "
.br
.ti -1c
.RI "void \fBsetCanvas\fP (QWidget *)"
.br
.RI "\fISet the drawing canvas of the plot widget\&. \fP"
.ti -1c
.RI "QWidget * \fBcanvas\fP ()"
.br
.ti -1c
.RI "const QWidget * \fBcanvas\fP () const "
.br
.ti -1c
.RI "void \fBsetCanvasBackground\fP (const QBrush &)"
.br
.RI "\fIChange the background of the plotting area\&. \fP"
.ti -1c
.RI "QBrush \fBcanvasBackground\fP () const "
.br
.ti -1c
.RI "virtual \fBQwtScaleMap\fP \fBcanvasMap\fP (int axisId) const "
.br
.ti -1c
.RI "double \fBinvTransform\fP (int axisId, int pos) const "
.br
.ti -1c
.RI "double \fBtransform\fP (int axisId, double value) const "
.br
.RI "\fITransform a value into a coordinate in the plotting region\&. \fP"
.ti -1c
.RI "\fBQwtScaleEngine\fP * \fBaxisScaleEngine\fP (int axisId)"
.br
.ti -1c
.RI "const \fBQwtScaleEngine\fP * \fBaxisScaleEngine\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBsetAxisScaleEngine\fP (int axisId, \fBQwtScaleEngine\fP *)"
.br
.ti -1c
.RI "void \fBsetAxisAutoScale\fP (int axisId, bool on=true)"
.br
.RI "\fIEnable autoscaling for a specified axis\&. \fP"
.ti -1c
.RI "bool \fBaxisAutoScale\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBenableAxis\fP (int axisId, bool tf=true)"
.br
.RI "\fIEnable or disable a specified axis\&. \fP"
.ti -1c
.RI "bool \fBaxisEnabled\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBsetAxisFont\fP (int axisId, const QFont &f)"
.br
.RI "\fIChange the font of an axis\&. \fP"
.ti -1c
.RI "QFont \fBaxisFont\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBsetAxisScale\fP (int axisId, double min, double max, double step=0)"
.br
.RI "\fIDisable autoscaling and specify a fixed scale for a selected axis\&. \fP"
.ti -1c
.RI "void \fBsetAxisScaleDiv\fP (int axisId, const \fBQwtScaleDiv\fP &)"
.br
.RI "\fIDisable autoscaling and specify a fixed scale for a selected axis\&. \fP"
.ti -1c
.RI "void \fBsetAxisScaleDraw\fP (int axisId, \fBQwtScaleDraw\fP *)"
.br
.RI "\fISet a scale draw\&. \fP"
.ti -1c
.RI "double \fBaxisStepSize\fP (int axisId) const "
.br
.RI "\fIReturn the step size parameter that has been set in setAxisScale\&. \fP"
.ti -1c
.RI "\fBQwtInterval\fP \fBaxisInterval\fP (int axisId) const "
.br
.RI "\fIReturn the current interval of the specified axis\&. \fP"
.ti -1c
.RI "const \fBQwtScaleDiv\fP & \fBaxisScaleDiv\fP (int axisId) const "
.br
.RI "\fIReturn the scale division of a specified axis\&. \fP"
.ti -1c
.RI "const \fBQwtScaleDraw\fP * \fBaxisScaleDraw\fP (int axisId) const "
.br
.RI "\fIReturn the scale draw of a specified axis\&. \fP"
.ti -1c
.RI "\fBQwtScaleDraw\fP * \fBaxisScaleDraw\fP (int axisId)"
.br
.RI "\fIReturn the scale draw of a specified axis\&. \fP"
.ti -1c
.RI "const \fBQwtScaleWidget\fP * \fBaxisWidget\fP (int axisId) const "
.br
.ti -1c
.RI "\fBQwtScaleWidget\fP * \fBaxisWidget\fP (int axisId)"
.br
.ti -1c
.RI "void \fBsetAxisLabelAlignment\fP (int axisId, Qt::Alignment)"
.br
.ti -1c
.RI "void \fBsetAxisLabelRotation\fP (int axisId, double rotation)"
.br
.ti -1c
.RI "void \fBsetAxisTitle\fP (int axisId, const QString &)"
.br
.RI "\fIChange the title of a specified axis\&. \fP"
.ti -1c
.RI "void \fBsetAxisTitle\fP (int axisId, const \fBQwtText\fP &)"
.br
.RI "\fIChange the title of a specified axis\&. \fP"
.ti -1c
.RI "\fBQwtText\fP \fBaxisTitle\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBsetAxisMaxMinor\fP (int axisId, int maxMinor)"
.br
.ti -1c
.RI "int \fBaxisMaxMinor\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBsetAxisMaxMajor\fP (int axisId, int maxMajor)"
.br
.ti -1c
.RI "int \fBaxisMaxMajor\fP (int axisId) const "
.br
.ti -1c
.RI "void \fBinsertLegend\fP (\fBQwtAbstractLegend\fP *, \fBLegendPosition\fP=\fBQwtPlot::RightLegend\fP, double ratio=-1\&.0)"
.br
.RI "\fIInsert a legend\&. \fP"
.ti -1c
.RI "\fBQwtAbstractLegend\fP * \fBlegend\fP ()"
.br
.ti -1c
.RI "const \fBQwtAbstractLegend\fP * \fBlegend\fP () const "
.br
.ti -1c
.RI "void \fBupdateLegend\fP ()"
.br
.ti -1c
.RI "void \fBupdateLegend\fP (const \fBQwtPlotItem\fP *)"
.br
.ti -1c
.RI "virtual QSize \fBsizeHint\fP () const "
.br
.ti -1c
.RI "virtual QSize \fBminimumSizeHint\fP () const "
.br
.RI "\fIReturn a minimum size hint\&. \fP"
.ti -1c
.RI "virtual void \fBupdateLayout\fP ()"
.br
.RI "\fIAdjust plot content to its current size\&. \fP"
.ti -1c
.RI "virtual void \fBdrawCanvas\fP (QPainter *)"
.br
.ti -1c
.RI "void \fBupdateAxes\fP ()"
.br
.RI "\fIRebuild the axes scales\&. \fP"
.ti -1c
.RI "void \fBupdateCanvasMargins\fP ()"
.br
.RI "\fIUpdate the canvas margins\&. \fP"
.ti -1c
.RI "virtual void \fBgetCanvasMarginsHint\fP (const \fBQwtScaleMap\fP maps[], const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const "
.br
.RI "\fICalculate the canvas margins\&. \fP"
.ti -1c
.RI "virtual bool \fBevent\fP (QEvent *)"
.br
.RI "\fIAdds handling of layout requests\&. \fP"
.ti -1c
.RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)"
.br
.RI "\fIEvent filter\&. \fP"
.ti -1c
.RI "virtual void \fBdrawItems\fP (QPainter *, const QRectF &, const \fBQwtScaleMap\fP maps[\fBaxisCnt\fP]) const "
.br
.ti -1c
.RI "virtual QVariant \fBitemToInfo\fP (\fBQwtPlotItem\fP *) const "
.br
.RI "\fIBuild an information, that can be used to identify a plot item on the legend\&. \fP"
.ti -1c
.RI "virtual \fBQwtPlotItem\fP * \fBinfoToItem\fP (const QVariant &) const "
.br
.RI "\fIIdentify the plot item according to an item info object, that has bee generated from \fBitemToInfo()\fP\&. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)"
.br
.in -1c
.SS "Static Protected Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBaxisValid\fP (int axisId)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBQwtPlotItem\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A 2-D plotting widget\&. 

\fBQwtPlot\fP is a widget for plotting two-dimensional graphs\&. An unlimited number of plot items can be displayed on its canvas\&. Plot items might be curves (\fBQwtPlotCurve\fP), markers (\fBQwtPlotMarker\fP), the grid (\fBQwtPlotGrid\fP), or anything else derived from \fBQwtPlotItem\fP\&. A plot can have up to four axes, with each plot item attached to an x- and a y axis\&. The scales at the axes can be explicitly set (\fBQwtScaleDiv\fP), or are calculated from the plot items, using algorithms (\fBQwtScaleEngine\fP) which can be configured separately for each axis\&.
.PP
The simpleplot example is a good starting point to see how to set up a plot widget\&.
.PP
.PP
\fBExample\fP
.RS 4
The following example shows (schematically) the most simple way to use \fBQwtPlot\fP\&. By default, only the left and bottom axes are visible and their scales are computed automatically\&. 
.PP
.nf
#include <qwt_plot.h>
#include <qwt_plot_curve.h>

QwtPlot *myPlot = new QwtPlot("Two Curves", parent);

// add curves
QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");
QwtPlotCurve *curve2 = new QwtPlotCurve("Curve 2");

// connect or copy the data to the curves
curve1->setData(...);
curve2->setData(...);

curve1->attach(myPlot);
curve2->attach(myPlot);

// finally, refresh the plot
myPlot->replot();

.fi
.PP
 
.RE
.PP

.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBQwtPlot::Axis\fP"

.PP
Axis index\&. 
.PP
\fBEnumerator\fP
.in +1c
.TP
\fB\fIyLeft \fP\fP
Y axis left of the canvas\&. 
.TP
\fB\fIyRight \fP\fP
Y axis right of the canvas\&. 
.TP
\fB\fIxBottom \fP\fP
X axis below the canvas\&. 
.TP
\fB\fIxTop \fP\fP
X axis above the canvas\&. 
.TP
\fB\fIaxisCnt \fP\fP
Number of axes\&. 
.SS "enum \fBQwtPlot::LegendPosition\fP"
Position of the legend, relative to the canvas\&.
.PP
\fBSee Also:\fP
.RS 4
\fBinsertLegend()\fP 
.RE
.PP

.PP
\fBEnumerator\fP
.in +1c
.TP
\fB\fILeftLegend \fP\fP
The legend will be left from the \fBQwtPlot::yLeft\fP axis\&. 
.TP
\fB\fIRightLegend \fP\fP
The legend will be right from the \fBQwtPlot::yRight\fP axis\&. 
.TP
\fB\fIBottomLegend \fP\fP
The legend will be below the footer\&. 
.TP
\fB\fITopLegend \fP\fP
The legend will be above the title\&. 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "QwtPlot::QwtPlot (QWidget *parent = \fCNULL\fP)\fC [explicit]\fP"

.PP
Constructor\&. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent widget 
.RE
.PP

.SS "QwtPlot::QwtPlot (const \fBQwtText\fP &title, QWidget *parent = \fCNULL\fP)\fC [explicit]\fP"

.PP
Constructor\&. 
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP Title text 
.br
\fIparent\fP Parent widget 
.RE
.PP

.SH "Member Function Documentation"
.PP 
.SS "void QwtPlot::applyProperties (const QString &)"
This method is intended for manipulating the plot widget from a specific editor in the Qwt designer plugin\&.
.PP
\fBWarning:\fP
.RS 4
The plot editor has never been implemented\&. 
.RE
.PP

.SS "bool QwtPlot::autoReplot () const"

.PP
\fBReturns:\fP
.RS 4
true if the autoReplot option is set\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAutoReplot()\fP 
.RE
.PP

.SS "bool QwtPlot::axisAutoScale (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
\fCTrue\fP, if autoscaling is enabled 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "bool QwtPlot::axisEnabled (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
\fCTrue\fP, if a specified axis is enabled 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "QFont QwtPlot::axisFont (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
The font of the scale labels for a specified axis 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "\fBQwtInterval\fP QwtPlot::axisInterval (intaxisId) const"

.PP
Return the current interval of the specified axis\&. This is only a convenience function for axisScaleDiv( axisId )->interval();
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Scale interval
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleDiv\fP, \fBaxisScaleDiv()\fP 
.RE
.PP

.SS "int QwtPlot::axisMaxMajor (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
The maximum number of major ticks for a specified axis 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisMaxMajor()\fP, \fBQwtScaleEngine::divideScale()\fP 
.RE
.PP

.SS "int QwtPlot::axisMaxMinor (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
the maximum number of minor ticks for a specified axis 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisMaxMinor()\fP, \fBQwtScaleEngine::divideScale()\fP 
.RE
.PP

.SS "const \fBQwtScaleDiv\fP & QwtPlot::axisScaleDiv (intaxisId) const"

.PP
Return the scale division of a specified axis\&. axisScaleDiv(axisId)\&.lowerBound(), axisScaleDiv(axisId)\&.upperBound() are the current limits of the axis scale\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Scale division
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleDiv\fP, \fBsetAxisScaleDiv()\fP, \fBQwtScaleEngine::divideScale()\fP 
.RE
.PP

.SS "const \fBQwtScaleDraw\fP * QwtPlot::axisScaleDraw (intaxisId) const"

.PP
Return the scale draw of a specified axis\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Specified scaleDraw for axis, or NULL if axis is invalid\&. 
.RE
.PP

.SS "\fBQwtScaleDraw\fP * QwtPlot::axisScaleDraw (intaxisId)"

.PP
Return the scale draw of a specified axis\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Specified scaleDraw for axis, or NULL if axis is invalid\&. 
.RE
.PP

.SS "\fBQwtScaleEngine\fP * QwtPlot::axisScaleEngine (intaxisId)"

.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Scale engine for a specific axis 
.RE
.PP

.SS "const \fBQwtScaleEngine\fP * QwtPlot::axisScaleEngine (intaxisId) const"

.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
Scale engine for a specific axis 
.RE
.PP

.SS "double QwtPlot::axisStepSize (intaxisId) const"

.PP
Return the step size parameter that has been set in setAxisScale\&. This doesn't need to be the step size of the current scale\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP
\fBReturns:\fP
.RS 4
step size parameter value
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisScale()\fP, \fBQwtScaleEngine::divideScale()\fP 
.RE
.PP

.SS "\fBQwtText\fP QwtPlot::axisTitle (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
Title of a specified axis 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "bool QwtPlot::axisValid (intaxisId)\fC [static]\fP, \fC [protected]\fP"

.PP
\fBReturns:\fP
.RS 4
\fCtrue\fP if the specified axis exists, otherwise \fCfalse\fP 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP axis index 
.RE
.PP

.SS "const \fBQwtScaleWidget\fP * QwtPlot::axisWidget (intaxisId) const"

.PP
\fBReturns:\fP
.RS 4
Scale widget of the specified axis, or NULL if axisId is invalid\&. 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "\fBQwtScaleWidget\fP * QwtPlot::axisWidget (intaxisId)"

.PP
\fBReturns:\fP
.RS 4
Scale widget of the specified axis, or NULL if axisId is invalid\&. 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.RE
.PP

.SS "QWidget * QwtPlot::canvas ()"

.PP
\fBReturns:\fP
.RS 4
the plot's canvas 
.RE
.PP

.SS "const QWidget * QwtPlot::canvas () const"

.PP
\fBReturns:\fP
.RS 4
the plot's canvas 
.RE
.PP

.SS "QBrush QwtPlot::canvasBackground () const"
Nothing else than: \fBcanvas()\fP->palette()\&.brush( QPalette::Normal, QPalette::Window);
.PP
\fBReturns:\fP
.RS 4
Background brush of the plotting area\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetCanvasBackground()\fP 
.RE
.PP

.SS "\fBQwtScaleMap\fP QwtPlot::canvasMap (intaxisId) const\fC [virtual]\fP"

.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis 
.RE
.PP
\fBReturns:\fP
.RS 4
Map for the axis on the canvas\&. With this map pixel coordinates can translated to plot coordinates and vice versa\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleMap\fP, \fBtransform()\fP, \fBinvTransform()\fP 
.RE
.PP

.SS "void QwtPlot::drawCanvas (QPainter *painter)\fC [virtual]\fP"
Redraw the canvas\&. 
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter used for drawing
.RE
.PP
\fBWarning:\fP
.RS 4
drawCanvas calls drawItems what is also used for printing\&. Applications that like to add individual plot items better overload \fBdrawItems()\fP 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBdrawItems()\fP 
.RE
.PP

.SS "void QwtPlot::drawItems (QPainter *painter, const QRectF &canvasRect, const \fBQwtScaleMap\fPmaps[axisCnt]) const\fC [virtual]\fP"
Redraw the canvas items\&.
.PP
\fBParameters:\fP
.RS 4
\fIpainter\fP Painter used for drawing 
.br
\fIcanvasRect\fP Bounding rectangle where to paint 
.br
\fImaps\fP \fBQwtPlot::axisCnt\fP maps, mapping between plot and paint device coordinates
.RE
.PP
\fBNote:\fP
.RS 4
Usually canvasRect is contentsRect() of the plot canvas\&. Due to a bug in Qt this rectangle might be wrong for certain frame styles ( f\&.e QFrame::Box ) and it might be necessary to fix the margins manually using QWidget::setContentsMargins() 
.RE
.PP

.SS "void QwtPlot::enableAxis (intaxisId, booltf = \fCtrue\fP)"

.PP
Enable or disable a specified axis\&. When an axis is disabled, this only means that it is not visible on the screen\&. Curves, markers and can be attached to disabled axes, and transformation of screen coordinates into values works as normal\&.
.PP
Only xBottom and yLeft are enabled by default\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fItf\fP \fCtrue\fP (enabled) or \fCfalse\fP (disabled) 
.RE
.PP

.SS "bool QwtPlot::event (QEvent *event)\fC [virtual]\fP"

.PP
Adds handling of layout requests\&. 
.PP
\fBParameters:\fP
.RS 4
\fIevent\fP Event
.RE
.PP
\fBReturns:\fP
.RS 4
See QFrame::event() 
.RE
.PP

.SS "bool QwtPlot::eventFilter (QObject *object, QEvent *event)\fC [virtual]\fP"

.PP
Event filter\&. The plot handles the following events for the canvas:
.PP
.IP "\(bu" 2
QEvent::Resize The canvas margins might depend on its size
.IP "\(bu" 2
QEvent::ContentsRectChange The layout needs to be recalculated
.PP
.PP
\fBParameters:\fP
.RS 4
\fIobject\fP Object to be filtered 
.br
\fIevent\fP Event
.RE
.PP
\fBReturns:\fP
.RS 4
See QFrame::eventFilter()
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBupdateCanvasMargins()\fP, \fBupdateLayout()\fP 
.RE
.PP

.SS "\fBQwtText\fP QwtPlot::footer () const"

.PP
\fBReturns:\fP
.RS 4
Text of the footer 
.RE
.PP

.SS "\fBQwtTextLabel\fP * QwtPlot::footerLabel ()"

.PP
\fBReturns:\fP
.RS 4
Footer label widget\&. 
.RE
.PP

.SS "const \fBQwtTextLabel\fP * QwtPlot::footerLabel () const"

.PP
\fBReturns:\fP
.RS 4
Footer label widget\&. 
.RE
.PP

.SS "void QwtPlot::getCanvasMarginsHint (const \fBQwtScaleMap\fPmaps[], const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const\fC [virtual]\fP"

.PP
Calculate the canvas margins\&. 
.PP
\fBParameters:\fP
.RS 4
\fImaps\fP \fBQwtPlot::axisCnt\fP maps, mapping between plot and paint device coordinates 
.br
\fIcanvasRect\fP Bounding rectangle where to paint 
.br
\fIleft\fP Return parameter for the left margin 
.br
\fItop\fP Return parameter for the top margin 
.br
\fIright\fP Return parameter for the right margin 
.br
\fIbottom\fP Return parameter for the bottom margin
.RE
.PP
Plot items might indicate, that they need some extra space at the borders of the canvas by the \fBQwtPlotItem::Margins\fP flag\&.
.PP
\fBupdateCanvasMargins()\fP, \fBQwtPlotItem::getCanvasMarginHint()\fP 
.SS "QString QwtPlot::grabProperties () const"
This method is intended for manipulating the plot widget from a specific editor in the Qwt designer plugin\&.
.PP
\fBReturns:\fP
.RS 4
QString::null 
.RE
.PP
\fBWarning:\fP
.RS 4
The plot editor has never been implemented\&. 
.RE
.PP

.SS "\fBQwtPlotItem\fP * QwtPlot::infoToItem (const QVariant &itemInfo) const\fC [virtual]\fP"

.PP
Identify the plot item according to an item info object, that has bee generated from \fBitemToInfo()\fP\&. The default implementation simply tries to unwrap a \fBQwtPlotItem\fP pointer:
.PP
.PP
.nf
if ( itemInfo\&.canConvert<QwtPlotItem *>() )
    return qvariant_cast<QwtPlotItem *>( itemInfo );
.fi
.PP
 
.PP
\fBParameters:\fP
.RS 4
\fIitemInfo\fP Plot item 
.RE
.PP
\fBReturns:\fP
.RS 4
A plot item, when successful, otherwise a NULL pointer\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBitemToInfo()\fP 
.RE
.PP

.SS "void QwtPlot::insertLegend (\fBQwtAbstractLegend\fP *legend, \fBQwtPlot::LegendPosition\fPpos = \fC\fBQwtPlot::RightLegend\fP\fP, doubleratio = \fC-1\&.0\fP)"

.PP
Insert a legend\&. If the position legend is \fC\fBQwtPlot::LeftLegend\fP\fP or \fC\fBQwtPlot::RightLegend\fP\fP the legend will be organized in one column from top to down\&. Otherwise the legend items will be placed in a table with a best fit number of columns from left to right\&.
.PP
\fBinsertLegend()\fP will set the plot widget as parent for the legend\&. The legend will be deleted in the destructor of the plot or when another legend is inserted\&.
.PP
Legends, that are not inserted into the layout of the plot widget need to connect to the \fBlegendDataChanged()\fP signal\&. Calling \fBupdateLegend()\fP initiates this signal for an initial update\&. When the application code wants to implement its own layout this also needs to be done for rendering plots to a document ( see \fBQwtPlotRenderer\fP )\&.
.PP
\fBParameters:\fP
.RS 4
\fIlegend\fP Legend 
.br
\fIpos\fP The legend's position\&. For top/left position the number of columns will be limited to 1, otherwise it will be set to unlimited\&.
.br
\fIratio\fP Ratio between legend and the bounding rectangle of title, canvas and axes\&. The legend will be shrunk if it would need more space than the given ratio\&. The ratio is limited to ]0\&.0 \&.\&. 1\&.0]\&. In case of <= 0\&.0 it will be reset to the default ratio\&. The default vertical/horizontal ratio is 0\&.33/0\&.5\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBlegend()\fP, \fBQwtPlotLayout::legendPosition()\fP, \fBQwtPlotLayout::setLegendPosition()\fP 
.RE
.PP

.SS "double QwtPlot::invTransform (intaxisId, intpos) const"
Transform the x or y coordinate of a position in the drawing region into a value\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIpos\fP position
.RE
.PP
\fBReturns:\fP
.RS 4
Position as axis coordinate
.RE
.PP
\fBWarning:\fP
.RS 4
The position can be an x or a y coordinate, depending on the specified axis\&. 
.RE
.PP

.SS "void QwtPlot::itemAttached (\fBQwtPlotItem\fP *plotItem, boolon)\fC [signal]\fP"
A signal indicating, that an item has been attached/detached
.PP
\fBParameters:\fP
.RS 4
\fIplotItem\fP Plot item 
.br
\fIon\fP Attached/Detached 
.RE
.PP

.SS "QVariant QwtPlot::itemToInfo (\fBQwtPlotItem\fP *plotItem) const\fC [virtual]\fP"

.PP
Build an information, that can be used to identify a plot item on the legend\&. The default implementation simply wraps the plot item into a QVariant object\&. When overloading \fBitemToInfo()\fP usually \fBinfoToItem()\fP needs to reimplemeted too\&.
.PP
.PP
.nf
QVariant itemInfo;
qVariantSetValue( itemInfo, plotItem );
.fi
.PP
.PP
\fBParameters:\fP
.RS 4
\fIplotItem\fP Plot item 
.RE
.PP
\fBReturns:\fP
.RS 4
Plot item embedded in a QVariant 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinfoToItem()\fP 
.RE
.PP

.SS "\fBQwtAbstractLegend\fP * QwtPlot::legend ()"

.PP
\fBReturns:\fP
.RS 4
the plot's legend 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinsertLegend()\fP 
.RE
.PP

.SS "const \fBQwtAbstractLegend\fP * QwtPlot::legend () const"

.PP
\fBReturns:\fP
.RS 4
the plot's legend 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinsertLegend()\fP 
.RE
.PP

.SS "void QwtPlot::legendDataChanged (const QVariant &itemInfo, const QList< \fBQwtLegendData\fP > &data)\fC [signal]\fP"
A signal with the attributes how to update the legend entries for a plot item\&.
.PP
\fBParameters:\fP
.RS 4
\fIitemInfo\fP Info about a plot item, build from \fBitemToInfo()\fP 
.br
\fIdata\fP Attributes of the entries ( usually <= 1 ) for the plot item\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBitemToInfo()\fP, \fBinfoToItem()\fP, \fBQwtAbstractLegend::updateLegend()\fP 
.RE
.PP

.SS "\fBQwtPlotLayout\fP * QwtPlot::plotLayout ()"

.PP
\fBReturns:\fP
.RS 4
the plot's layout 
.RE
.PP

.SS "const \fBQwtPlotLayout\fP * QwtPlot::plotLayout () const"

.PP
\fBReturns:\fP
.RS 4
the plot's layout 
.RE
.PP

.SS "void QwtPlot::replot ()\fC [virtual]\fP, \fC [slot]\fP"

.PP
Redraw the plot\&. If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible\&.
.PP
\fBSee Also:\fP
.RS 4
\fBupdateAxes()\fP, \fBsetAutoReplot()\fP 
.RE
.PP

.SS "void QwtPlot::resizeEvent (QResizeEvent *e)\fC [protected]\fP, \fC [virtual]\fP"
Resize and update internal layout 
.PP
\fBParameters:\fP
.RS 4
\fIe\fP Resize event 
.RE
.PP

.SS "void QwtPlot::setAutoReplot (booltf = \fCtrue\fP)"

.PP
Set or reset the autoReplot option\&. If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions\&. Since this may be time-consuming, it is recommended to leave this option switched off and call \fBreplot()\fP explicitly if necessary\&.
.PP
The autoReplot option is set to false by default, which means that the user has to call \fBreplot()\fP in order to make changes visible\&. 
.PP
\fBParameters:\fP
.RS 4
\fItf\fP \fCtrue\fP or \fCfalse\fP\&. Defaults to \fCtrue\fP\&. 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBreplot()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisAutoScale (intaxisId, boolon = \fCtrue\fP)"

.PP
Enable autoscaling for a specified axis\&. This member function is used to switch back to autoscaling mode after a fixed scale has been set\&. Autoscaling is enabled by default\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIon\fP On/Off 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisScale()\fP, \fBsetAxisScaleDiv()\fP, \fBupdateAxes()\fP
.RE
.PP
\fBNote:\fP
.RS 4
The autoscaling flag has no effect until \fBupdateAxes()\fP is executed ( called by \fBreplot()\fP )\&. 
.RE
.PP

.SS "void QwtPlot::setAxisFont (intaxisId, const QFont &font)"

.PP
Change the font of an axis\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIfont\fP Font 
.RE
.PP
\fBWarning:\fP
.RS 4
This function changes the font of the tick labels, not of the axis title\&. 
.RE
.PP

.SS "void QwtPlot::setAxisLabelAlignment (intaxisId, Qt::Alignmentalignment)"
Change the alignment of the tick labels
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIalignment\fP Or'd Qt::AlignmentFlags see <qnamespace\&.h>
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleDraw::setLabelAlignment()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisLabelRotation (intaxisId, doublerotation)"
Rotate all tick labels
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIrotation\fP Angle in degrees\&. When changing the label rotation, the label alignment might be adjusted too\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleDraw::setLabelRotation()\fP, \fBsetAxisLabelAlignment()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisMaxMajor (intaxisId, intmaxMajor)"
Set the maximum number of major scale intervals for a specified axis
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fImaxMajor\fP Maximum number of major steps
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBaxisMaxMajor()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisMaxMinor (intaxisId, intmaxMinor)"
Set the maximum number of minor scale intervals for a specified axis
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fImaxMinor\fP Maximum number of minor steps
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBaxisMaxMinor()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisScale (intaxisId, doublemin, doublemax, doublestepSize = \fC0\fP)"

.PP
Disable autoscaling and specify a fixed scale for a selected axis\&. In \fBupdateAxes()\fP the scale engine calculates a scale division from the specified parameters, that will be assigned to the scale widget\&. So updates of the scale widget usually happen delayed with the next replot\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fImin\fP Minimum of the scale 
.br
\fImax\fP Maximum of the scale 
.br
\fIstepSize\fP Major step size\&. If \fCstep == 0\fP, the step size is calculated automatically using the maxMajor setting\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisMaxMajor()\fP, \fBsetAxisAutoScale()\fP, \fBaxisStepSize()\fP, \fBQwtScaleEngine::divideScale()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisScaleDiv (intaxisId, const \fBQwtScaleDiv\fP &scaleDiv)"

.PP
Disable autoscaling and specify a fixed scale for a selected axis\&. The scale division will be stored locally only until the next call of \fBupdateAxes()\fP\&. So updates of the scale widget usually happen delayed with the next replot\&.
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIscaleDiv\fP Scale division
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisScale()\fP, \fBsetAxisAutoScale()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisScaleDraw (intaxisId, \fBQwtScaleDraw\fP *scaleDraw)"

.PP
Set a scale draw\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIscaleDraw\fP Object responsible for drawing scales\&.
.RE
.PP
By passing scaleDraw it is possible to extend \fBQwtScaleDraw\fP functionality and let it take place in \fBQwtPlot\fP\&. Please note that scaleDraw has to be created with new and will be deleted by the corresponding QwtScale member ( like a child object )\&.
.PP
\fBSee Also:\fP
.RS 4
\fBQwtScaleDraw\fP, \fBQwtScaleWidget\fP 
.RE
.PP
\fBWarning:\fP
.RS 4
The attributes of scaleDraw will be overwritten by those of the previous \fBQwtScaleDraw\fP\&. 
.RE
.PP

.SS "void QwtPlot::setAxisScaleEngine (intaxisId, \fBQwtScaleEngine\fP *scaleEngine)"
Change the scale engine for an axis
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIscaleEngine\fP Scale engine
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBaxisScaleEngine()\fP 
.RE
.PP

.SS "void QwtPlot::setAxisTitle (intaxisId, const QString &title)"

.PP
Change the title of a specified axis\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fItitle\fP axis title 
.RE
.PP

.SS "void QwtPlot::setAxisTitle (intaxisId, const \fBQwtText\fP &title)"

.PP
Change the title of a specified axis\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fItitle\fP Axis title 
.RE
.PP

.SS "void QwtPlot::setCanvas (QWidget *canvas)"

.PP
Set the drawing canvas of the plot widget\&. \fBQwtPlot\fP invokes methods of the canvas as meta methods ( see QMetaObject )\&. In opposite to using conventional C++ techniques like virtual methods they allow to use canvas implementations that are derived from QWidget or QGLWidget\&.
.PP
The following meta methods could be implemented:
.PP
.IP "\(bu" 2
\fBreplot()\fP When the canvas doesn't offer a replot method, \fBQwtPlot\fP calls update() instead\&.
.IP "\(bu" 2
borderPath() The border path is necessary to clip the content of the canvas When the canvas doesn't have any special border ( f\&.e rounded corners ) it is o\&.k\&. not to implement this method\&.
.PP
.PP
The default canvas is a \fBQwtPlotCanvas\fP
.PP
\fBParameters:\fP
.RS 4
\fIcanvas\fP Canvas Widget 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBcanvas()\fP 
.RE
.PP

.SS "void QwtPlot::setCanvasBackground (const QBrush &brush)"

.PP
Change the background of the plotting area\&. Sets brush to QPalette::Window of all color groups of the palette of the canvas\&. Using \fBcanvas()\fP->setPalette() is a more powerful way to set these colors\&.
.PP
\fBParameters:\fP
.RS 4
\fIbrush\fP New background brush 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBcanvasBackground()\fP 
.RE
.PP

.SS "void QwtPlot::setFooter (const QString &text)"
Change the text the footer 
.PP
\fBParameters:\fP
.RS 4
\fItext\fP New text of the footer 
.RE
.PP

.SS "void QwtPlot::setFooter (const \fBQwtText\fP &text)"
Change the text the footer 
.PP
\fBParameters:\fP
.RS 4
\fItext\fP New text of the footer 
.RE
.PP

.SS "void QwtPlot::setPlotLayout (\fBQwtPlotLayout\fP *layout)"

.PP
Assign a new plot layout\&. 
.PP
\fBParameters:\fP
.RS 4
\fIlayout\fP Layout() 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBplotLayout()\fP 
.RE
.PP

.SS "void QwtPlot::setTitle (const QString &title)"
Change the plot's title 
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP New title 
.RE
.PP

.SS "void QwtPlot::setTitle (const \fBQwtText\fP &title)"
Change the plot's title 
.PP
\fBParameters:\fP
.RS 4
\fItitle\fP New title 
.RE
.PP

.SS "QSize QwtPlot::sizeHint () const\fC [virtual]\fP"

.PP
\fBReturns:\fP
.RS 4
Size hint for the plot widget 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBminimumSizeHint()\fP 
.RE
.PP

.SS "\fBQwtText\fP QwtPlot::title () const"

.PP
\fBReturns:\fP
.RS 4
Title of the plot 
.RE
.PP

.SS "\fBQwtTextLabel\fP * QwtPlot::titleLabel ()"

.PP
\fBReturns:\fP
.RS 4
Title label widget\&. 
.RE
.PP

.SS "const \fBQwtTextLabel\fP * QwtPlot::titleLabel () const"

.PP
\fBReturns:\fP
.RS 4
Title label widget\&. 
.RE
.PP

.SS "double QwtPlot::transform (intaxisId, doublevalue) const"

.PP
Transform a value into a coordinate in the plotting region\&. 
.PP
\fBParameters:\fP
.RS 4
\fIaxisId\fP Axis index 
.br
\fIvalue\fP value 
.RE
.PP
\fBReturns:\fP
.RS 4
X or Y coordinate in the plotting region corresponding to the value\&. 
.RE
.PP

.SS "void QwtPlot::updateAxes ()"

.PP
Rebuild the axes scales\&. In case of autoscaling the boundaries of a scale are calculated from the bounding rectangles of all plot items, having the \fBQwtPlotItem::AutoScale\fP flag enabled ( \fBQwtScaleEngine::autoScale()\fP )\&. Then a scale division is calculated ( QwtScaleEngine::didvideScale() ) and assigned to scale widget\&.
.PP
When the scale boundaries have been assigned with \fBsetAxisScale()\fP a scale division is calculated ( QwtScaleEngine::didvideScale() ) for this interval and assigned to the scale widget\&.
.PP
When the scale has been set explicitly by \fBsetAxisScaleDiv()\fP the locally stored scale division gets assigned to the scale widget\&.
.PP
The scale widget indicates modifications by emitting a \fBQwtScaleWidget::scaleDivChanged()\fP signal\&.
.PP
\fBupdateAxes()\fP is usually called by \fBreplot()\fP\&.
.PP
\fBSee Also:\fP
.RS 4
\fBsetAxisAutoScale()\fP, \fBsetAxisScale()\fP, \fBsetAxisScaleDiv()\fP, \fBreplot()\fP \fBQwtPlotItem::boundingRect()\fP 
.RE
.PP

.SS "void QwtPlot::updateCanvasMargins ()"

.PP
Update the canvas margins\&. Plot items might indicate, that they need some extra space at the borders of the canvas by the \fBQwtPlotItem::Margins\fP flag\&.
.PP
\fBgetCanvasMarginsHint()\fP, \fBQwtPlotItem::getCanvasMarginHint()\fP 
.SS "void QwtPlot::updateLayout ()\fC [virtual]\fP"

.PP
Adjust plot content to its current size\&. 
.PP
\fBSee Also:\fP
.RS 4
\fBresizeEvent()\fP 
.RE
.PP

.SS "void QwtPlot::updateLegend ()"
Emit \fBlegendDataChanged()\fP for all plot item
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotItem::legendData()\fP, \fBlegendDataChanged()\fP 
.RE
.PP

.SS "void QwtPlot::updateLegend (const \fBQwtPlotItem\fP *plotItem)"
Emit \fBlegendDataChanged()\fP for a plot item
.PP
\fBParameters:\fP
.RS 4
\fIplotItem\fP Plot item 
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotItem::legendData()\fP, \fBlegendDataChanged()\fP 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.