Synthetic landscape
The following code puts a 2D list on the screen as an image:
matplotlib.pyplot.imshow(list_variable)
matplotlib.pyplot.show()
Write a program, which, rather than reading in landscape data, creates a synthetic landscape, 300x300 pixels, and shows it on the screen. It should have functions to generate:
- A flat landscape of height 50.
- A landscape that slopes from zero in the West to 299 height in the East (assuming North is the top of the image).
- A landscape that slopes from zero in the Northwest to 598 height in the Southeast (assuming North is the top of the image).