March 2019
Intermediate to advanced
642 pages
22h 54m
English
Let's look at how to plot three-dimensional scatter plots:
import numpy as np import matplotlib.pyplot as plt
# Create the figure fig = plt.figure() ax = fig.add_subplot(111, projection='3d')
# Define the number of values n = 250
# Create a lambda function to generate the random values in the given range f = lambda minval, maxval, n: minval + (maxval - minval) * np.random.rand(n)
Read now
Unlock full access