SetYAxisDivision, SetXAxisDivision


SUBMITTED BY: Guest

DATE: July 9, 2014, 9:36 a.m.

FORMAT: C++

SIZE: 472 Bytes

HITS: 637

  1. void CGraphViewBase::SetXAxisDivision(C2DGraphSet* pGraphSet, int nStepCount)
  2. {
  3. double dMin = pGraphSet->GetXAxisMin();
  4. double dMax = pGraphSet->GetXAxisMax();
  5. pGraphSet->SetXAxisStep((dMax - dMin) / nStepCount);
  6. }
  7. void CGraphViewBase::SetYAxisDivision(C2DGraphSubSet* pSubSet, int nStepCount)
  8. {
  9. double dMin = pSubSet->GetAxisMin();
  10. double dMax = pSubSet->GetAxisMax();
  11. pSubSet->SetAxisStep((dMax - dMin) / nStepCount);
  12. }

comments powered by Disqus