Lines vanishing near the border

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

RickNZ wrote at 2012-09-08 01:28:

I'm using LinearAxis and LineSeries, and some segments of the lines with zero values, that should appear along the X axis, do not appear.

I have <oxy:Plot> object with about a dozen <oxy:LinearAxis>, each with their own <oxy:LineSeries>, configured in XAML. Each LinearAxis is positioned along the Y axis using StartPosition and EndPosition, with a small gap between them. Minimum is set to 0, but no Maximum, so they auto-scale. I'm using MajorGridLines and MinorGridLines.

Each LineSeries uses YAxisKey to select the corresponding LinearAxis, and sets a Color for the line. I'm using the default line style.

The zero-valued line segments only disappear on some of the LinearAxis.

If I vertically resize the graph, the zero-valued line segments appear in some areas where they were missing, and disappear in others where they were visible.

I've tried changing StrokeThickness to be 2 or 3, but that doesn't make any difference.