Visualizing 2D grids and arrays using matplotlib in Python
A 2D grid array plot can be a valuable visualization tool, e.g. in the area of agent-based simulation. In this post I want to give a brief tutorial in how you can visualize a 2D grid array, using matplotlib in Python. The coding example is below; relevant documentation has been added in the form of comments.
# to start with, we will need matplotlib.pyplot from matplotlib import pyplot #…
View On WordPress












