Need your advice!
I use TickCreationFunc and LabelTransformFunc to show timeline on XAxis
Something like this:
var plotCube = new ILPlotCube(tag, true);
List<Tuple<double, string>> ticks = null;
plotCube.Axes.XAxis.Ticks.TickCreationFunc = (min, max, qty) =>
{
ticks = AxisHelper.CreateUnixDateTicks(min, max, qty).ToList();
return ticks.Select(x => (float)x.Item1).ToList();
};
plotCube.Axes.XAxis.Ticks.LabelTransformFunc = (ind, val) =>
{
if (ticks != null)
return ticks[ind].Item2;
else
return null;
};
plotCube.Axes.XAxis.ScaleLabel.Visible = false; //does not help
The result is quite good however I could not find a way to remove the scale label
Two side questions:
1) VS shows warning 'ILNumerics.Drawing.Plotting.ILTickCollection.TickCreationFunc' is obsolete: '"Use TickCreationFuncEx instead!"'. However TickCreationFuncEx is never called.
2) Is there a way to tell ILNumerics not to abbreviate tick numbers?
Appreciate your help!