In this recipe, we will learn how to draw a triangular surface plot. It is similar to surface plot, but the surface will have triangular connections. We will draw three such plots with different data, and with and without the axes being shown.
Triangular surface plot
Getting ready
Import the required libraries:
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
How to do it...
The following are the steps to draw triangular surface plots:
- Prepare data for three different plots:
# Make radii and angles arrays.
radii = np.linspace(0...