Adds a title to the chart, patch 1242262 Matthew D.P.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user