sources/scripts/process_benchmark_job/tecplotter.rb
def plot_boundaries(xs,ys,margin)
    xmin = xs.min
    xmax = xs.max
    ymin = ys.min
    ymax = ys.max

    width = (xmax == xmin) ? 1 : xmax - xmin
    height = (ymax == ymin) ? 1 : ymax - ymin

    left_boundary = xmin - margin * width
    right_boundary = xmax + margin * width

    top_boundary = ymax + margin * height
    bottom_boundary = ymin - margin * height

    return [ left_boundary, right_boundary, top_boundary, bottom_boundary ]
  end
# function for automatically computing graph boundaries
function for automatically computing graph boundaries
function for automatically computing graph boundaries
def plot_boundaries(xs,ys,margin)
    xmin = xs.min
    xmax = xs.max
    ymin = ys.min
    ymax = ys.max
    width = (xmax == xmin) ? 1 : xmax - xmin
    height = (ymax == ymin) ? 1 : ymax - ymin
    left_boundary = xmin - margin * width
    right_boundary = xmax + margin * width
    top_boundary = ymax + margin * height
    bottom_boundary = ymin - margin * height
    return [ left_boundary, right_boundary, top_boundary, bottom_boundary ]
  end
def plot_boundaries ( xs , ys , margin ) xmin = xs . min xmax = xs . max ymin = ys . min ymax = ys . max width = ( xmax == xmin ) ? 1 : xmax - xmin height = ( ymax == ymin ) ? 1 : ymax - ymin left_boundary = xmin - margin * width right_boundary = xmax + margin * width top_boundary = ymax + margin * height bottom_boundary = ymin - margin * height return [ left_boundary , right_boundary , top_boundary , bottom_boundary ] end
function for automatically computing graph boundaries
function for automatically computing graph boundaries
xs
ys
margin