Hello Laurent
The equivalent code to create a plot on a wxWindow would now be something like

wxPLplotwindow<wxPanel> *myPlotWindow = new wxPLplotwindow<wxPanel>();
myPlotWindow->Create( parent, id, pos, size, style, name );

Note that you can replace wxPanel, with any other type of wxWindow for
which we can get a wxPaintDC, so it could be a wxFrame, a
wxMDIClientWindow or even a wxButton I think.

If you look at wxPlplotDemo.cpp then you can see the creation of a
simple wxPLplotwindow<wxFrame>. Or if you look at wxplframe.cpp you
can see a more complicated example where we create a wxPLFrame class
which inherits from wxPLplotwindow<wxFrame>. If you do this then you
can have one line construction as in your code.

Note that pl_style has been removed and replaced with a bool to
specify using either a wxGCDC or a wxMemoryDC for the rendering. This
is because the various backends (wxGraphicsContext, wxDC and AGG) have
been removed and replaced with a single backend and FreeType support
has been removed too.

Feedback very much appreciated. If you find that there are any
problems or issues or difficulties please let me know.

Phil

On 18 March 2015 at 21:26, laurent Berger <laurent.ber...@univ-lemans.fr> wrote:
> Today i have try to use new plplot version for my wxwidgets application.
> With 5.10.0 plplot I can use plplot to draw a curve in a panel and a box
> sizer (attached image). My class was something like this :
> Histogram::Histogram(  wxWindow* parent, wxWindowID id, const wxPoint& pos,
>                             const wxSize& size, long style, int pl_style ) :
>           wxPLplotwindow( parent, id, pos, size, style, pl_style )
> With the new plplot version how can I do the same thing?
>
> Thanks for yours answers
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to