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.
If the problem persists, it is probably a bug.
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.