x_range (SVG::Graph::Plot)

    # File temp/Graph/Plot.rb, line 179
          def x_range
            max_value = @data.collect{|x| x[:data][X][-1] }.max
            min_value = @data.collect{|x| x[:data][X][0] }.min
            min_value = min_value<min_x_value ? min_value : min_x_value if min_x_value

            range = max_value - min_value
            right_pad = range == 0 ? 10 : range / 20.0
            scale_range = (max_value + right_pad) - min_value

            scale_division = scale_x_divisions || (scale_range / 10.0)

            if scale_x_integers
              scale_division = scale_division < 1 ? 1 : scale_division.round
            end

            [min_value, max_value, scale_division]
          end