wxPlotCtrl Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
gomay
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 26, 2010 1:39 pm

wxPlotCtrl

Post by gomay » Tue Jan 26, 2010 2:26 pm

I have a problem with the limits to plot, by default the X and Y are from 10 to -10. that function can be used to change the range ... thanks

mieszko_the_first
Knows some wx things
Knows some wx things
Posts: 41
Joined: Thu Nov 20, 2008 8:43 pm
Location: Cracow, Poland

Post by mieszko_the_first » Sat Jan 30, 2010 2:19 am

The code:

Code: Select all

plotCtrl->SetDefaultBoundingRect(wxRect2DDouble(0, 0, 2, 5));
Changes the default ranges from 0 to 2 in X and from 0 to 5 in Y.

gomay
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 26, 2010 1:39 pm

Post by gomay » Sat Jan 30, 2010 8:38 pm

mieszko_the_first wrote:The code:

Code: Select all

plotCtrl->SetDefaultBoundingRect(wxRect2DDouble(0, 0, 2, 5));
Changes the default ranges from 0 to 2 in X and from 0 to 5 in Y.

thanks, what I was looking for ..

Post Reply