How do preferences and a budget combine to generate a demand curve?

Using pictures and very little math