getmin function

getmin can be used to define the lower bound for a plot