Log X Axis only & CircleElementPointMarker crash

Jul 22, 2009 at 2:49 PM
Edited Jul 22, 2009 at 2:58 PM


I have a funny problem. If I load a chart with a Log Y Axis and a LineGraph with ElementPointMarkers as shown below:


plotter.AddLineGraph(ds, AssignPenColour(i), AssignPointMarker(i), new PenDescription("My Set"));

I get the following:

Log Y Axis


However, If I have a Log X Axis (with the exact same dataset), I get an Error in the SetPosition of the CircleElementPointMarker


Issue - Log X Axis

Jul 22, 2009 at 6:07 PM


this is a well expected exception - your left most point has zero x coordinate, which logarithm is -infinity. Canvas cannot have element with such coordinates, it is simply impossible and not needed to draw them.

Or you should have your data be strongly positive, or change you transform so that it shifts data a little before applying log transform.


Best regards,


Jul 22, 2009 at 6:54 PM

Thank you so much! That makes perfect sense!