I am trying to draw a picture like the following in a Latex document file.
I have tried to use Xfig, but when I want to draw a line it does not stop. I mean, there is no end point for the line (I use mac).
My question is that is there a program, which is compatible with mac and the pictures can be be exported to a Latex file, to draw a pictures like the following?
Or is there any way to draw it in xfig?