Esempio n. 1
0
        /// <summary>
        /// Returns a y-axis that is suitable for drawing the data.
        /// </summary>
        /// <returns>A suitable y-axis.</returns>
        public Axis SuggestYAxis()
        {
            Axis a = YAxisSuggester_.Get();

            // TODO make 0.08 a parameter.
            a.IncreaseRange(0.08);
            return(a);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns an x-axis that is suitable for drawing the data.
        /// </summary>
        /// <returns>A suitable x-axis.</returns>
        public Axis SuggestXAxis()
        {
            Axis a = XAxisSuggester_.Get();

            // The world length should never be returned as 0
            // This would result in an axis with a span of 0 units
            // which can not be properly displayed.
            if (a.WorldLength == 0.0)
            {
                // TODO make 0.08 a parameter.
                a.IncreaseRange(0.08);
            }
            return(a);
        }