Jump to content

sync'd y-axis


Recommended Posts

Suppose I have several time and temperature (degrees C) arrays. The first time vs temp arrays are "active" - they grow by one point every ten seconds. The remaining pairs of arrays are fixed and were chosen to compare and contrast with the active data. My user wants me to display all of this data on an x-y graph with two y-axis displayed; degrees Centigrade and degrees Fahrenheit. The user wants to be able to turn autoscaling on or off and to type in their own x-axis and y-axis limits. How do I ensure that the two y-axis stay in sync with each other under all of the possible ways that they can be modified by the program or by a user?

Link to comment

Suppose I have several time and temperature (degrees C) arrays. The first time vs temp arrays are "active" - they grow by one point every ten seconds. The remaining pairs of arrays are fixed and were chosen to compare and contrast with the active data. My user wants me to display all of this data on an x-y graph with two y-axis displayed; degrees Centigrade and degrees Fahrenheit. The user wants to be able to turn autoscaling on or off and to type in their own x-axis and y-axis limits. How do I ensure that the two y-axis stay in sync with each other under all of the possible ways that they can be modified by the program or by a user?

You should register for a 'Scale Range change' for the graph. In the event data you can check if the Y-axis changed and you get an index to the actual Y-index, now you can adjust the other Y-axis.

Ton

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.