I have a problem I'm trying to solve and haven't come up with the right set of property settings. I have a NLogarithmicScaleConfigurator and I want to set major tick marks are specific values, including the beginning and end of the range. The beginning tick mark always shows up, but the ending one does sometimes and not others. This doesn't seem to be a problem with a NNumericScaleConfigurator. I've added two screen captures showing the problem.
Some of the relevant code I'm using is pasted below. I can send a test program if needed.
If logScale Then
scale = New NLogarithmicScaleConfigurator
scale.AutoMinorTicks = True
scale.MinorTickCount = 3
Else
scale = New NLinearScaleConfigurator
scale.AutoMinorTicks = False
End If
scale.AutoLabels = True
scale.InnerMinorTickStyle.Length = New NLength(0, NGraphicsUnit.Point)
scale.InnerMajorTickStyle.Length = New NLength(0, NGraphicsUnit.Point)
scale.OuterMinorTickStyle.Length = New NLength(2, NGraphicsUnit.Point)
scale.OuterMinorTickStyle.Offset = New NLength(0, NGraphicsUnit.Point)
scale.OuterMajorTickStyle.Length = New NLength(4, NGraphicsUnit.Point)
scale.OuterMajorTickStyle.Offset = New NLength(0, NGraphicsUnit.Point)
scale.MajorTickMode = MajorTickMode.CustomTicks
scale.CustomMajorTicks.Clear()
scale.CustomMinorTicks.Clear()
scale.LabelStyle.ContentAlignment = ContentAlignment.TopCenter
scale.LabelStyle.VisibilityMode = ScaleLabelVisibilityMode.Always
scale.InflateViewRangeBegin = False
scale.InflateViewRangeEnd = False
scale.DisplayFirstLabel = True
scale.DisplayLastLabel = True
' Prevent the labels from being staggered, which doesn't work very well.
scale.LabelFitModes = New LabelFitMode() {LabelFitMode.RemoveOverlap}
scale.CreateNewLevelForCustomLabels = False
Thanks for any insight or suggestions you could give me.
Mike