X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/298a3f2ee8a54964a8ba79931a9a5b1d8be200b4..2c92065fad2d108203f8ff1cb8f1033f1901d698:/contrib/samples/plot/plot.cpp diff --git a/contrib/samples/plot/plot.cpp b/contrib/samples/plot/plot.cpp index df1f5b9a54..6ebbd6c60e 100644 --- a/contrib/samples/plot/plot.cpp +++ b/contrib/samples/plot/plot.cpp @@ -129,6 +129,13 @@ MyFrame::MyFrame() m_plot->SetUnitsPerValue( 0.01 ); // m_plot->SetScrollOnThumbRelease( true ); + //Add a blue, 16pt chart title + wxString titleText( _T("The Chart Title") ); + wxFont titleFont( *wxNORMAL_FONT ); + titleFont.SetPointSize( 16 ); + wxColour titleColour( *wxBLUE ); + m_plot->AddChartTitle( titleText, titleFont, titleColour ); + m_plot->Add( new MyPlotCurve( 0, -1.5, 1.5 ) ); m_plot->Add( new MyPlotCurve( 50, -1.5, 1.5 ) ); wxPlotOnOffCurve *oo = new wxPlotOnOffCurve( 10 );