mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ScatterCtrl_Demo: Included ZoomToFilt
git-svn-id: svn://ultimatepp.org/upp/trunk@9297 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
37052e7db1
commit
2a6ee31223
4 changed files with 4 additions and 4 deletions
|
|
@ -81,7 +81,7 @@ void Tab11_Trend::OnSeries() {
|
|||
scatter.AddSeries(rational1).Legend(rational1.GetFullName()).NoMark().Stroke(2);
|
||||
if (s_r2 > 0.5)
|
||||
scatter.AddSeries(sin).Legend(sin.GetFullName()).NoMark().Stroke(2);
|
||||
scatter.FitToData(true);
|
||||
scatter.ZoomToFit(true, true);
|
||||
scatter.Refresh();
|
||||
|
||||
grid.Add(linear.GetFullName(), linear.GetEquation(), FormatDoubleFix(l_r2, 5));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ void TabUserEquation::OnUpdate()
|
|||
scatter.AddSeries(userEquation).Legend(userEquation.GetFullName()).NoMark().Stroke(2);
|
||||
scatter.SetXYMin(fromX, fromY);
|
||||
scatter.SetRange(toX - fromX, toY - fromY);
|
||||
scatter.FitToData(true);
|
||||
scatter.ZoomToFit(true, true);
|
||||
}
|
||||
|
||||
ScatterDemo *ConstructUserEquation()
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ void TabRangePlot::Init()
|
|||
.MarkStyle<RangePlot>(RangePlot::MIN_AVG_MAX);//.NoPlot();
|
||||
|
||||
scatter.SetLabelY("Size").SetLabelX("time [seg]");
|
||||
scatter.FitToData(true, 0.2);
|
||||
scatter.ZoomToFit(true, true, 0.2);
|
||||
}
|
||||
|
||||
ScatterDemo *Construct15()
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ void TabBubblePlot::Init()
|
|||
.NoPlot().MarkColor(Green()).MarkBorderColor(LtRed()).MarkBorderWidth(3);
|
||||
|
||||
scatter.SetLabelY("Size");
|
||||
scatter.FitToData(true, 0.2);
|
||||
scatter.ZoomToFit(true, true, 0.2);
|
||||
}
|
||||
|
||||
ScatterDemo *Construct16()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue