flashbacck
Golden Member
I'm writing a java applet that graphs some data, and I'm having a hard time determining the best way to draw the tick marks on the axes. I know I could use someone's graphing library, but there are some special things I need to do in this graph, and I'm also too lazy to read through other's documentation.
One effort I tried is below. This example also isn't set up to draw minor tick marks, which I want.
mzmax and mzmin are the max and min x axis positions in data pt values.
xend is the end of the graphing space in panel coordinates
convertmztox converts the datapt into pixel position
any suggestions appreciated,
thanks.
edit: corrected mzmax and mzmin definitions
One effort I tried is below. This example also isn't set up to draw minor tick marks, which I want.
mzmax and mzmin are the max and min x axis positions in data pt values.
xend is the end of the graphing space in panel coordinates
convertmztox converts the datapt into pixel position
any suggestions appreciated,
thanks.
edit: corrected mzmax and mzmin definitions