Log X Axis only & CircleElementPointMarker crash

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

Hi,

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

Editor
Jul 22, 2009 at 5:07 PM

Hi,

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,

Mikhail.

Jul 22, 2009 at 5:54 PM

Thank you so much! That makes perfect sense!