Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Fix axis locations

I have a panel to which multiple graphs are being added dynamically. It is important to me that the x axis and y axis of each graph lines up so graphs can be easily compared to each other. This works fine initially, however if i zoom into one of the graphs or perform a ResetZoomPan() the location of the Y axis appears to move on the graph in question, sometimes the divisions on the x axis also change. This means the Y axis on each graph no longer line up with each other making it difficult to draw direct comparisons.

Is there any way to fix the location of the Y axis and prevent it from moving? Also how can the divisions be fixed so we can zoom and reset without them changing?

Download All
0 Kudos
Message 1 of 3
(5,799 Views)

Based on the change in the number of minor divisions between the two screenshots, it looks like the restored axis range does not quite match the original range. This is a known issue with the current history implementation in the graph.

 

Some possible solutions:

  • Use the RangeChanged event to ensure the range is given an appropriate value, as described in the linked question above.
  • Use a fixed-width presenter for the vertical axis.
  • Set SuppressScaleLayout to true so that the graph allocates space for the scales once.
~ Paul H
0 Kudos
Message 2 of 3
(5,789 Views)

Just wanted to let you know this issue (#403056) was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 3 of 3
(4,435 Views)