And pass whatever wxFrame you want it embedded into as the wxWindow* argument. That'll get your mpWindow kicking.
The problem that I face now is that the mpFX::Plot takes two arguments, a device context and an mpWindow. How should I set up a device context for drawing into an mpWindow?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does someone have a simple tutorial for putting wxMathPlot graphivcs inside a wxframe?
I already have the frame, and need to set some space inside it and draw ECG lines.
I could also use some help here; a complete example would be nice.
To plot a graph you need an mpWindow, which you can embed in a wxFrame. To do that you just need to call this constructor:
http://wxmathplot.sourceforge.net/docs/a00018.html#a6b73c492a971974d7d740d5dcf0ce1e2
And pass whatever wxFrame you want it embedded into as the wxWindow* argument. That'll get your mpWindow kicking.
The problem that I face now is that the mpFX::Plot takes two arguments, a device context and an mpWindow. How should I set up a device context for drawing into an mpWindow?
Ok I've sorted that out, just needed to create a dc pointing at the mpWindow.