I set margins on the mpWindow, but an mpFXYVector plot still draws up to the border. The plot is set to continuous and from viewing the source I think I know where the problem is.
Can anyone confirm this issue before I start my attempts to grasp and fix this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I take a quick look at the code and it seems ok. Did you use mpLayer::SetDrawOutsideMargins(false)? The default behaviour is to let the plot draw outside the margins. I know this is somewhat uncommon, but, since the margins were introduced lately in wxMathPlot development, I preferred to maintain the old default behaviour.
I set margins on the mpWindow, but an mpFXYVector plot still draws up to the border. The plot is set to continuous and from viewing the source I think I know where the problem is.
Can anyone confirm this issue before I start my attempts to grasp and fix this?
I take a quick look at the code and it seems ok. Did you use mpLayer::SetDrawOutsideMargins(false)? The default behaviour is to let the plot draw outside the margins. I know this is somewhat uncommon, but, since the margins were introduced lately in wxMathPlot development, I preferred to maintain the old default behaviour.
http://wxmathplot.sourceforge.net/docs/a00010.html#fc08c8f852363550e5714959d71806a7
If the problem persists, it is probably a bug.
CD-RON77
Yes, I tried setting SetDrawOutsideMargins(false), but it did not help. I think I know where the problem is - will try to look into it later.
Domas