Custom y-axis scaling - NEW PROBLEM
Posted: Tue Mar 01, 2005 8:51 am
hi,
I found a strange functionality from CUSTOM y-axis zooming: it works well, when I use max and min values of the "original" y-axis; that is, the values the graph was drawn for the first time with.
When I manually change the max and min values of the CUSTOM axis (by using the .SetMinMax function), the CalcPostPoint calculates the y-axis value according to the original y-axis values, EVEN THOUGH the y-axis SHOWS the "new" manually set values. I use a simple textfield for the max and min values, where the user can enter the wanted values. I also update the max and min values for every custom y-axis everytime I add a new datapoint to the series (I use OnTimer function to add new datapoints to series every 2 seconds. The data comes from an online connection through modem).
I need the functionality of setting the max and min values manually (via textfields), and zooming should temporarily zoom to the wanted area. UnZoom should reset the graph to the "original" OR user-set max and min values.
Thanks for any advice,
Mike
I found a strange functionality from CUSTOM y-axis zooming: it works well, when I use max and min values of the "original" y-axis; that is, the values the graph was drawn for the first time with.
When I manually change the max and min values of the CUSTOM axis (by using the .SetMinMax function), the CalcPostPoint calculates the y-axis value according to the original y-axis values, EVEN THOUGH the y-axis SHOWS the "new" manually set values. I use a simple textfield for the max and min values, where the user can enter the wanted values. I also update the max and min values for every custom y-axis everytime I add a new datapoint to the series (I use OnTimer function to add new datapoints to series every 2 seconds. The data comes from an online connection through modem).
I need the functionality of setting the max and min values manually (via textfields), and zooming should temporarily zoom to the wanted area. UnZoom should reset the graph to the "original" OR user-set max and min values.
Thanks for any advice,
Mike