ScatterCtrl_Demo: Included ZoomToFilt

git-svn-id: svn://ultimatepp.org/upp/trunk@9297 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2015-12-18 20:56:03 +00:00
parent 37052e7db1
commit 2a6ee31223
4 changed files with 4 additions and 4 deletions

View file

@ -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));

View file

@ -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()

View file

@ -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()

View file

@ -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()