Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
SetYAxisDivision, SetXAxisDivision
SUBMITTED BY:
Guest
DATE:
July 9, 2014, 9:36 a.m.
FORMAT:
C++
SIZE:
472 Bytes
Raw
Download
Tweet
HITS:
637
Go to comments
Report
void
CGraphViewBase::SetXAxisDivision
(
C2DGraphSet
*
pGraphSet
,
int
nStepCount
)
{
double
dMin
=
pGraphSet
->
GetXAxisMin
();
double
dMax
=
pGraphSet
->
GetXAxisMax
();
pGraphSet
->
SetXAxisStep
((
dMax
-
dMin
)
/
nStepCount
);
}
void
CGraphViewBase::SetYAxisDivision
(
C2DGraphSubSet
*
pSubSet
,
int
nStepCount
)
{
double
dMin
=
pSubSet
->
GetAxisMin
();
double
dMax
=
pSubSet
->
GetAxisMax
();
pSubSet
->
SetAxisStep
((
dMax
-
dMin
)
/
nStepCount
);
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus