Finally got graphing working. Works as long as lx <= 0 and ly <= 0