06-18-2008 04:06 AM
06-18-2008 10:31 AM
Hello karpa,
If I'm understanding you correctly, you want the right y-axis to always have the same min/max as the left y-axis, but with an offset of 5, so that its markers always show a value 5 points higher than those of the left y-axis? And you have the left y-axis autoscaling to the data that you're plotting?
If the problem you're having is that each time you plot, the left min/max of the left y-axis changes, and causes the two axes to be out of sync, why couldn't you, after every plot, programmatically get the min/max of the left y-axis (using the GetAxisScalingMode function) and then set the min/max of the right y-axis accordingly (using SetAxisScalingMode)? Does that make sense?
If this is what you want to do, you have no need to use ATTR_ACTIVE_YAXIS, since all your plots and cursors would be associated with the left y-axis.
Luis
06-23-2008 03:44 AM