Greetings,

I'm making a program that draws a certain mathematics function. Here's the problem,my x and y axis aren't defined as the picturebox's. What I mean is that my axis are not located in the top left corner of the picturebox. So normally, the function would start from the top left corner.. How do I offset the "(0,0)" coordinates of the picturebox to where my x and y axis intersect?

I tried some stuff I found on the internet, but they aren't an actual "offset" of the (0,0)
coordinates because it was just making the function start at a certain point you wanted which I already done it.

Thanks a lot :) I truly appreciate your time.

Recommended Answers

Hi zukazen, welcome. :)
You have to do a coordinate transformation. Look at the plot class code in this snippet:http://www.daniweb.com/software-development/csharp/code/410098

Jump to Post

All 2 Replies

thanks a lot, really helps .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.