Bottom Axis Label
Posted: Wed Jan 02, 2008 9:11 pm
I have a 2D chart that has a left axis and a bottom axis. I have some code that looks like:
this.Axes.Bottom.Automatic = false;
this.Axes.Bottom.Minimum = sizes[0, 0];
this.Axes.Bottom.Maximum = sizes[0, 1];
this.Axes.Bottom.MinimumOffset = 1;
this.Axes.Bottom.MaximumOffset = 1;
this.Axes.Left.Automatic = false;
this.Axes.Left.Minimum = sizes[1, 0];
this.Axes.Left.Maximum = sizes[1, 1];
this.Axes.Left.MinimumOffset = 1;
this.Axes.Left.MaximumOffset = 1;
The Left axis Min/Max is 1 - 15
the Bottom axis Min/Max is 0 - 1
The issue I am seeing is, the left Axis will have axis labels 1, 2, 3 ... 15. On the bottom axis I have 3 the tick marks between the 0 and 1. The labels are only at the left and right most ends of the bottom axis. They are labeled 0 and 1. The tick marks in between do not have any labels.
I was wondering if there is a setting that caused this problem on the bottom axis. I have looked at differences for settings between the Left and Bottom Axis, and I can't seem to see any differences.
Since I set the Automatic property = false, do I need to set the increment? I noticed when I change the Axes.Bottom.Increment to something other than 0 I see labels on the tick marks in between the 0 and 1.
this.Axes.Bottom.Automatic = false;
this.Axes.Bottom.Minimum = sizes[0, 0];
this.Axes.Bottom.Maximum = sizes[0, 1];
this.Axes.Bottom.MinimumOffset = 1;
this.Axes.Bottom.MaximumOffset = 1;
this.Axes.Left.Automatic = false;
this.Axes.Left.Minimum = sizes[1, 0];
this.Axes.Left.Maximum = sizes[1, 1];
this.Axes.Left.MinimumOffset = 1;
this.Axes.Left.MaximumOffset = 1;
The Left axis Min/Max is 1 - 15
the Bottom axis Min/Max is 0 - 1
The issue I am seeing is, the left Axis will have axis labels 1, 2, 3 ... 15. On the bottom axis I have 3 the tick marks between the 0 and 1. The labels are only at the left and right most ends of the bottom axis. They are labeled 0 and 1. The tick marks in between do not have any labels.
I was wondering if there is a setting that caused this problem on the bottom axis. I have looked at differences for settings between the Left and Bottom Axis, and I can't seem to see any differences.
Since I set the Automatic property = false, do I need to set the increment? I noticed when I change the Axes.Bottom.Increment to something other than 0 I see labels on the tick marks in between the 0 and 1.