Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Fix the width of the Y-axis labels??

I have multiple charts in same window. They plot different data sets with different ranges. I want to fix the label width (or the plot area) so that the width of the plot area is the same for all. For example, if a chart is plotting values from 1 - 10 it will be wider than another chart plotting values from 100-1000 because the y-axis labels take up more space. I want to have this space fixed for all chart, say maybe to 4 digits so that all charts will stay same width.
0 Kudos
Message 1 of 2
(2,500 Views)
Sorry, as soon as I asked the question I found the answer myself.

Just set the width of the labels all the same using a call such as the one below:

plot[i].Axes.Item(2).Labels.Width = 5;
// this sets all labels to five digits wide and
// pads them with spaces if they are less.

MDP
0 Kudos
Message 2 of 2
(2,500 Views)