Question

I need matlab equivalent of axis equal in C# Chart. Just like in this question: Make the X and Y axis scales equal on an Excel chart but for C# Chart control. Please help.

Était-ce utile?

La solution

Instead of using MsChart, you can try to create your own chart using:

g.DrawLine where g is a Graphics object.
You can use a PictureBox and declare:

Graphics g = pictureBox1.CreateGraphics(); 

In this way, you can simply create your Oxy system and put the point of your data as you wish. For instance, if the vertical axis is 500 pixel long and the horizontal one is 1000 pixel long, you can use a 2-fold factor in order to have your axis equal.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top