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
 QCRTGraph for Java
 Y Auto Scale to multiple plots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

margonz

USA
3 Posts

Posted - 30 Apr 2012 :  16:30:13  Show Profile  Reply with Quote
Hello, I have been plotting multiple plots on one graph and have RT_AUTOSCALE_Y_MINMAX set for all the RTScrollFrame's, but it seems as though it only autoscales for the last RTScrollFrame that was added. That is, if the ranges are vastly different I only see the one plot until the values are in the same range as the one being auto scaled.
I also tried doing one RTScrollFrame with multiple RTProcessVar's but that autoscaled to the first RTProcessVar being added.

quinncurtis

1586 Posts

Posted - 30 Apr 2012 :  16:50:44  Show Profile  Reply with Quote
We can't reproduce either problem. Which method you use depends on whether or not you have one, or multiple independent coordinate systems you want auto-scaled.

If you have one coordinate system you want to auto-scale to two or more RTProcessVar objects, you use the method found in the example program ScrollApplication1.

If you have two or more overlapping, independent coordinate systems you want to auto-scale to respective RTProcessVar objects, you use the method found in the example program RTStockDisplay example program, where the top graph has two, independent coordinate systems.

Run both examples and verify that they seem to auto-scale properly.

If you cannot solve the program, see if you can reproduce the problem with a simple modification to one of our examples. If you can't do that you will need to supply us with the source to the simplest possible example program which reproduces the problem.


Go to Top of Page

margonz

USA
3 Posts

Posted - 01 May 2012 :  10:28:47  Show Profile  Reply with Quote
Ahhh.. Thanks for your reply. I was missing the call to _scrollFrame.addProcessVar(..); for the additional process var's. Thanks, it works fine now.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07