mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ScatterDraw_Demo: Dimensions fitting set explicit
git-svn-id: svn://ultimatepp.org/upp/trunk@13691 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b5f5adceb5
commit
cd30b1d54d
1 changed files with 3 additions and 1 deletions
|
|
@ -38,12 +38,14 @@ CONSOLE_APP_MAIN
|
|||
Cout() << "\nPreparing scatter";
|
||||
|
||||
s1 << Pointf(10,14) << Pointf(20,25) << Pointf(30,29) << Pointf(40,24) << Pointf(50,36);
|
||||
|
||||
scatter.AddSeries(s1).Legend("Series 1").NoMark().Units("ºC", "seg");
|
||||
|
||||
scatter.AddSeries(x, y, 5).Units("ºC", "seg").Legend("Series 2").Stroke(5, Null)
|
||||
.Dash(LINE_DASHED).MarkStyle<SquareMarkPlot>().MarkWidth(12);
|
||||
|
||||
scatter.ZoomToFit();
|
||||
scatter.SetXYMin(10, 0).SetRange(50, 100).SetMinUnits(20, 0).SetMajorUnits(10, 20);
|
||||
//scatter.ZoomToFit();
|
||||
|
||||
scatter.SetTitle("ScatterDraw_Demo").SetTitleFont(SansSerif(14).Bold());
|
||||
scatter.SetLabelY("Temperature").SetLabelX("Time").SetLabelsFont(SansSerif(12));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue