mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.ScatterCtrl_Demo: Minor update
git-svn-id: svn://ultimatepp.org/upp/trunk@5674 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
649ddc2bba
commit
de52fd574e
4 changed files with 4 additions and 4 deletions
|
|
@ -118,7 +118,7 @@ public:
|
|||
void Init();
|
||||
void MyFormat(String& s, int i, double d)
|
||||
{
|
||||
s=Format("%Mon",fround(d));
|
||||
s = Format("%Mon", fround(d));
|
||||
if (!s.IsEmpty())
|
||||
s << "\n2011";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ void Tab1::Init()
|
|||
//scatter.AddTrendline(SERIE2, 100, LINE); // To come :-)
|
||||
//scatter.AddTrendline(SERIE2, 100, POLINOMIAL, 3);
|
||||
scatter.SetRange(60, 50).SetMajorUnits(10, 10);
|
||||
scatter.ShowInfo().ShowContextMenu().SetPopText("h", "v", "v2");
|
||||
scatter.ShowInfo().ShowContextMenu().ShowEditDlg().SetPopText("h", "v", "v2");
|
||||
}
|
||||
|
||||
ScatterDemo *Construct1()
|
||||
|
|
|
|||
|
|
@ -41,5 +41,5 @@ ScatterDemo *Construct3()
|
|||
}
|
||||
|
||||
INITBLOCK {
|
||||
RegisterExample("Parametric Functions", Construct3, __FILE__);
|
||||
RegisterExample(t_("Parametric Functions"), Construct3, __FILE__);
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ void Tab8::Init()
|
|||
s1<<Pointf(1,-6)<<Pointf(2,-4)<<Pointf(3,2)<<Pointf(4,8)<<Pointf(5,8)<<Pointf(6,15)<<Pointf(7,20)<<Pointf(8,25)<<Pointf(9,14)<<Pointf(10,10)<<Pointf(11,3)<<Pointf(12,-11);;
|
||||
scatter.AddSeries(s1).Legend("Temperature").Stroke(3, Null).Dash(LINE_DASHED).MarkStyle<SquareMarkPlot>();
|
||||
|
||||
s2 <<Pointf(1,1010)<<Pointf(2,1012)<<Pointf(3,1015)<<Pointf(4,1013)<<Pointf(5,1017)<<Pointf(6,1018)<<Pointf(7,1010)<<Pointf(8,1007)<<Pointf(9,1003)<<Pointf(10,1001)<<Pointf(11,1000)<<Pointf(12,1002);
|
||||
s2 <<Pointf(1,1008)<<Pointf(2,1012)<<Pointf(3,1016)<<Pointf(4,1012)<<Pointf(5,1008)<<Pointf(6,1016)<<Pointf(7,1012)<<Pointf(8,1004)<<Pointf(9,1000)<<Pointf(10,1001)<<Pointf(11,1000)<<Pointf(12,1002);
|
||||
scatter.AddSeries(s2).Legend("Pressure").Stroke(3, Null).Dash("15 6 6 6 3 6 6 6").SetDataPrimaryY(false);
|
||||
scatter.SetDrawY2Reticle();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue