Plot Precision
This discussion was imported from CodePlex
CaulynDarr wrote at 2013-09-03 16:10:
I recently inherited some code that uses OxyPlot, and am having some issues displaying plot points accurately.
I think the problem has to do with the precision of the points being plotted versus the scale of the plot area. The items being displayed are supposed to be 1 unit apart. and approximately a third of a unit in thickness. But when they are displayed, sometimes there is a gap between the plotted items, and sometimes they touch or overlap. My axis are usually 100 units.
When I multiply the values I'm plotting by two, the spacing appears evened out. The spacing also appears better when I enlarge the plot area.
Is there a way to control the plotting precision while keeping the same axis scaling?
I think the problem has to do with the precision of the points being plotted versus the scale of the plot area. The items being displayed are supposed to be 1 unit apart. and approximately a third of a unit in thickness. But when they are displayed, sometimes there is a gap between the plotted items, and sometimes they touch or overlap. My axis are usually 100 units.
When I multiply the values I'm plotting by two, the spacing appears evened out. The spacing also appears better when I enlarge the plot area.
Is there a way to control the plotting precision while keeping the same axis scaling?
objo wrote at 2013-09-04 19:52:
On what platform are you seeing this problem? wpf/sl/winforms? What OS?
And what kind of series? Need more info.
Aliased lines must be snapped to device pixels, and there are some small variations if you look at the pixels on the different platforms.
Can you post a screen shot or some code that generates the plot (Ctrl+Alt+C)?
And what kind of series? Need more info.
Aliased lines must be snapped to device pixels, and there are some small variations if you look at the pixels on the different platforms.
Can you post a screen shot or some code that generates the plot (Ctrl+Alt+C)?
Customer support service by UserEcho