Suppose I have a set of pairs of (metres, value) which I would like to visualize in a given scale, like 1:5000 - i.e. 1 cm on the screen in 5000cm in real. The X axis could represent the metres and hs to be in scale while the Y axis represents the values.
Question: Is there any functionality helping me to figure out how big my coordinate system, in Java2D pixel units is if for example the values cover - lets say 5000 metres (to make it easy for this discussion) ? I see the Value Axis has java2DToValue and ValueToJava2D - cool - that I can use after I have the inital size figured out.
B-)
Plot to Scale cm <-> Pixels Java2D
-
- Posts: 25
- Joined: Thu Apr 03, 2008 5:51 pm
- Location: Houston, TX, USA
-
- Posts: 25
- Joined: Thu Apr 03, 2008 5:51 pm
- Location: Houston, TX, USA
Re: Plot to Scale cm <-> Pixels Java2D
doohh .. of course this depends on the resolution. Aka if I select to have 100 pixels per inch than 5" will be 500 pixels and we fly. So I guess this cooks down to how I can set the resolution of XYPlot ... if that makes sense to ask ... let me investigate since I have not looked at this.