It's hard to forget the first love, but really sorry I need to find something else.įinally after some adventures, I found Plotly library is a good one to model the terrain in 3D. Previously with a fewer points I can freely rotate it without any delay, but the terrain rendering became slower and needed longer time to compute when the surface is getting more complex with thousand points. But later on I found the output with Matplotlib was getting slower as number of point increasing. The first output from Matplotlib made me so happy, now I can make a terrain 3D model in Python. 3D terrain modelling with Matplotlib surface plot Figure 2 shows 3D terrain from Matplotlib's surface function.įigure 2. I found there are some functions to plot 3D model in Matplotlib such as wireframe, surface and trisurf. So firstly I used Matplotlib to model a terrain surface in 3D.
I use it frequently to plot any graph I need. Matplotlib is the first graphic library I know when started learning Python.
How we can creat digital terrain model how to#
But before discussing how to do it step by step, let me explain briefly the story "behind the scene" until I come to this point. It took some times till I got a good one and decided to share the result with you. Before writing this post, I had done some experiments with different technical approaches and results.