mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
ScatterCtrl_Demo: Added units to some demos
git-svn-id: svn://ultimatepp.org/upp/trunk@6773 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d5e4351093
commit
8d0af6cdc4
3 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ LAYOUT(Tab4, 400, 316)
|
|||
END_LAYOUT
|
||||
|
||||
LAYOUT(Tab5, 400, 288)
|
||||
ITEM(ScatterCtrl, scatter, SetTitle(t_("Dynamic")).SetTitleFont(StdFontZ(14).Bold()).SetPlotAreaTopMargin(20).SetLabelX(t_("time[s]")).SetLegendAnchor(2).HSizePosZ(16, 12).VSizePosZ(12, 36))
|
||||
ITEM(ScatterCtrl, scatter, SetTitle(t_("Dynamic")).SetTitleFont(StdFontZ(14).Bold()).SetPlotAreaLeftMargin(40).SetPlotAreaRightMargin(10).SetPlotAreaTopMargin(20).SetPlotAreaBottomMargin(40).SetLabelX(t_("time")).SetLabelY(t_("Electric circuit performance")).SetLegendAnchor(2).HSizePosZ(16, 12).VSizePosZ(12, 36))
|
||||
ITEM(Button, bStart, SetLabel(t_("Start")).LeftPosZ(16, 42).BottomPosZ(5, 23))
|
||||
ITEM(Button, bStop, SetLabel(t_("Stop")).LeftPosZ(64, 42).BottomPosZ(5, 23))
|
||||
ITEM(Button, bReset, SetLabel(t_("Reset")).LeftPosZ(112, 42).BottomPosZ(5, 23))
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ void Tab5::Init()
|
|||
CtrlLayout(*this);
|
||||
HSizePos().VSizePos();
|
||||
scatter.SetRange(10, 100);
|
||||
scatter.AddSeries(s1).Legend("U-t").NoMark();
|
||||
scatter.AddSeries(s2).Legend("I-t").NoMark();
|
||||
scatter.AddSeries(s1).Legend("U-t").Units("V", "s").NoMark();
|
||||
scatter.AddSeries(s2).Legend("I-t").Units("A", "s").NoMark();
|
||||
bStart <<=(THISBACK(Start));
|
||||
bStop <<=(THISBACK(Stop));
|
||||
bReset <<=(THISBACK(Reset));
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ void Tab8::Init()
|
|||
|
||||
s3 <<Pointf(1,-12)<<Pointf(2,-17)<<Pointf(3,-13)<<Pointf(4,15)<<Pointf(5,18)<<Pointf(6,25)<<Pointf(7,27)<<Pointf(8,20)<<Pointf(9,5)<<Pointf(10,-10)<<Pointf(11,24)<<Pointf(12,17);
|
||||
double barWidth = 0.4;
|
||||
scatter.AddSeries(s3).Legend("Device 1").PlotStyle<BarSeriesPlot>(barWidth).NoMark().Stroke(2, Gray()).Dash(LINE_SOLID).Fill(LtGray());
|
||||
scatter.AddSeries(s3).Legend("Speed").Units("km/h").PlotStyle<BarSeriesPlot>(barWidth).NoMark().Stroke(2, Gray()).Dash(LINE_SOLID).Fill(LtGray());
|
||||
|
||||
s1<<Pointf(1,-6)<<Pointf(2,-4)<<Pointf(3,2)<<Pointf(4,8)<<Pointf(5,8)<<Pointf(6,15)<<Pointf(7,20)<<Pointf(8,30)<<Pointf(9,14)<<Pointf(10,10)<<Pointf(11,3)<<Pointf(12,-11);
|
||||
scatter.AddSeries(s1).Legend("Temperature").Units("ºC").Stroke(3, Null).Dash(LINE_DASHED).MarkStyle<SquareMarkPlot>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue