Axis lines drawn in margin

Help
2009-05-27
2013-05-02
  • Nigel Paton
    Nigel Paton
    2009-05-27

    Hi,

    If m_drawOutsideMargins is set to false for axis layers it would be nice if the axis lines did not extend into the margin.

    Simple change, for example in mpScaleX::Plot() instead of:

                dc.DrawLine( 0, orgy, extend, orgy);

    do:

            if (m_drawOutsideMargins == true)
                dc.DrawLine( 0, orgy, w.GetScrX(), orgy);
            else
                dc.DrawLine( w.GetMarginLeft(), orgy, w.GetScrX() - w.GetMarginRight(), orgy);

    Similar for mpScaleY.

    Cheers

    Nigel