wxMathPlot & printer

Help
Anonymous
2013-03-20
2013-05-02

  • Anonymous
    2013-03-20

    Hello everyone
    I have a little problem with wxMathPlot.
    I can't understand (but is still due to my lack of knowledge of wx libraries) because when I print a graphics the texts become very small and the grid very dense.
    I think it's due to the resolution of the printer and the same problem also occurs with the examples that are given in support of wxMathPlot.
    How can I change my code so that the chart is printed in the same way (roughly) how it is displayed on the screen?

    void AnalisiFrame::OnPreview( wxCommandEvent& event )
    {
        // Pass two printout objects: for preview, and possible printing.
        mpPrintout *plotPrint = new mpPrintout(m_plot);
        mpPrintout *plotPrintPreview = new mpPrintout(m_plot);
        wxPrintPreview *preview = new wxPrintPreview(plotPrintPreview, plotPrint);
        wxPreviewFrame *frame = new wxPreviewFrame(preview, this, wxT("Print Plot"), wxPoint(100, 100), wxSize(600, 650));
        frame->Centre(wxBOTH);
        frame->Initialize();
        frame->Show(true);
    }
    void AnalisiFrame::OnPrint( wxCommandEvent& event )
    {
        wxPrinter printer;
        mpPrintout printout(m_plot, wxT("Plot print"));
        printer.Print(this, &printout, true);
    }
    

    Thanks in advance.

     

  • Anonymous
    2013-04-03

    This is my program to work.
    For the moment I only implemented the rescue of the curves in a graphical format for the printing problem I reported previously.

    <a href="http://www.zimagez.com/zimage/screen727.php" target="_blank" title="WxWidgets"><img src="http://www.zimagez.com/miniature/screen727.png" alt="WxWidgets" /></a>

     

  • Anonymous
    2013-04-03

    This is my program to work. http://www.zimagez.com/zimage/screen727.php

    For the moment I only implemented the rescue of the curves in a graphical format for the printing problem I reported previously.