wxPlotCtrl  [SOLVED]

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

wxPlotCtrl

Postby 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

  [SOLVED]

Postby 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

Postby 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 ..


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 1 guest