Two-variable inequalities from their graphs