How to make x and y axis the same scale
Posted: Mon Feb 28, 2011 5:27 pm
Hi,
I'd like to plot a gear with teeth and some circle, as show in the Figure 1 below. I am using TChart ActiveX control in MFD dialog. What I got does not have the right aspect ratio, i.e. the circle looks like an ellipse.
1. I tried making the chart width and height the same, but still the scales of x axis and y axis are not exactly the same. How can I make the scale of x and y the same?
2. The legend can be put at the bottom which will make it looks better, but still the legend will affect the scale of x and y axis. Is there a way to avoid that?
3.In the case that the X range (Xmin~Xmax) and Y range (Ymin~Ymax) are not the same, for example only plot several teeth, the tooth shape will be distorted as shown in Figure 2. So how to fix it?
4. When I change the dialog size, I want the size of TChart control changed accordingly/automatically. Is there a way to do that?
Thanks
JW
I'd like to plot a gear with teeth and some circle, as show in the Figure 1 below. I am using TChart ActiveX control in MFD dialog. What I got does not have the right aspect ratio, i.e. the circle looks like an ellipse.
1. I tried making the chart width and height the same, but still the scales of x axis and y axis are not exactly the same. How can I make the scale of x and y the same?
2. The legend can be put at the bottom which will make it looks better, but still the legend will affect the scale of x and y axis. Is there a way to avoid that?
3.In the case that the X range (Xmin~Xmax) and Y range (Ymin~Ymax) are not the same, for example only plot several teeth, the tooth shape will be distorted as shown in Figure 2. So how to fix it?
4. When I change the dialog size, I want the size of TChart control changed accordingly/automatically. Is there a way to do that?
Thanks
JW