how to calculate X and Y axis

Mathematics, theory and usage in algorithm construction
Post Reply
User avatar
sandokan
Posts: 2
Joined: Thu Jul 06, 2023 10:13 am

how to calculate X and Y axis

Post by sandokan »

just I need an automatic X and Y axis calculation algorithm that I want to use for my ZX Spectrum. Any help?
User avatar
BigBlue
Posts: 2
Joined: Sat Jul 15, 2023 7:03 am

Re: how to calculate X and Y axis

Post by BigBlue »

Calculating the X and Y axis is easy. You need to collect the data and start the calculation from the collected data. See the attached algorithm.
Calculating the X and Y axis
Calculating the X and Y axis
axis_drw.jpg (37.49 KiB) Viewed 3603 times
User avatar
Iris
Posts: 1
Joined: Thu Jul 13, 2023 5:40 am

Re: how to calculate X and Y axis

Post by Iris »

don't forget axis positioning. it is common to have the y-axis on the left and the x-axis on the bottom. However, this only applies if the data is in the 1st quadrant. For example, if the data is in the 3rd quadrant (X<0 and Y<0), then the Y-axis should be on the right side and the X-axis should be on top.
graph quadrants and axis
graph quadrants and axis
graph.jpg (26.12 KiB) Viewed 3595 times
User avatar
Jeremy
Posts: 6
Joined: Thu Jul 06, 2023 5:40 am

Re: how to calculate X and Y axis

Post by Jeremy »

I did a software for 4D display simulating HP plotter. It creates an X and Y axis from data set.
Harlequin is HP plotter simulator
Harlequin is HP plotter simulator
4Dgraph.jpg (62.13 KiB) Viewed 2805 times
Post Reply