The code is correct. Are you sure the line is not simply being drawn outside of your visible range? You can switch the autoScale to true so you can see where the line is being drawn at.
I suggest you add a Print() right before the DrawLine() code too so you can look at the Output Window and know for certain that a line was drawn somewhere.

Comment