Plotting X & Y Coordinates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'd like to plot a set of 2-D points using Graphics. I don't have any problems with drawing the points, but the resultant graph is always not to scale. I assume this is happening because the horizontal resolution is different than the vertical one on the screen. Does any one know whether this is the problem or is it something else? and if yes, how can I fix it (i.e. how can I plot 2-dimensional points in the space with the same horizontal and vertical displacement.)

Thank

Alfa
 
You need to scale one of the axies to make it "square". You will have an
aspect ratio (for starters) of your screen (which is something like
width/height). This ratio is then used to perform the scale on one of the
axies in order to make its apparent size the same as the other.

Alfa said:
Hi,
I'd like to plot a set of 2-D points using Graphics. I don't have any
problems with drawing the points, but the resultant graph is always not to
scale. I assume this is happening because the horizontal resolution is
different than the vertical one on the screen. Does any one know whether
this is the problem or is it something else? and if yes, how can I fix it
(i.e. how can I plot 2-dimensional points in the space with the same
horizontal and vertical displacement.) ?
 
Back
Top