Hide label text but show grid lines
Posted: Fri Mar 25, 2005 10:57 pm
Using ActiveX TeeChart 5.
Seems like grid lines on aplot are interlocked with axis label text so that it is impossible to hide the labels and still see the grid lines. There are examples on the web indicating that setting
.axis.left.Labels.Style = talNone
should just hide the labels, but it also hides major and minor grid lines, just like
.axis.left.labels.visible = False
does.
Setting the label to "" in OnGetAxisLabel hides the labels, but keeps all spacing that the labels would have used. Same effect as setting the label text font color to match the panel background.
Can anyone help? I'm trying to implement an ecg plot that needs a standard looking grid, but labels are pretty meaningless.
Seems like grid lines on aplot are interlocked with axis label text so that it is impossible to hide the labels and still see the grid lines. There are examples on the web indicating that setting
.axis.left.Labels.Style = talNone
should just hide the labels, but it also hides major and minor grid lines, just like
.axis.left.labels.visible = False
does.
Setting the label to "" in OnGetAxisLabel hides the labels, but keeps all spacing that the labels would have used. Same effect as setting the label text font color to match the panel background.
Can anyone help? I'm trying to implement an ecg plot that needs a standard looking grid, but labels are pretty meaningless.