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:
Michael Wetherell
2005-08-10 22:53:45 +00:00
parent 1c2ed09a15
commit 8fb816ff93
3 changed files with 76 additions and 8 deletions

View File

@@ -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 );