Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Java
 QCChart3D for Java
 controlling the plot scale
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Peter

17 Posts

Posted - 23 Jun 2010 :  13:52:26  Show Profile  Reply with Quote
I've got a SimpleBarPlot whose dataset range on the X-Axis goes from 2010 to 2041.

With little configuration, the plot area defaulted to an x scale from 2010 to 2050. I'd like to force it to 2010 to 2042.

I was able to set the (LinearAxis) xAxis limits and that worked but the plot area itself is still sized for 2010 to 2050 so I have empty space on the right end of the plot.

I'm not seeing a method I can call to configure the plot area to the 2010 to 2042 range. I'm sure I'm missing something...

quinncurtis

1164 Posts

Posted - 23 Jun 2010 :  15:45:28  Show Profile  Reply with Quote
I think you are refering to the plot area scale, not its size. There are CartesianCoordinate method calls to set the start and ending values for the x- and y- scales.

pTransform1.setScaleStartX(2010);
pTransform1.setScaleStopX(2042);
pTransform1.setScaleStartY(0);
pTransform1.setScaleStopY(250);
Go to Top of Page

Peter

17 Posts

Posted - 23 Jun 2010 :  15:48:14  Show Profile  Reply with Quote
Bingo!

Thanks, you guys are great!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07