October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here are the steps to code the logic:
fig = plt.figure(figsize=(10,6))ax = fig.add_subplot(111, projection='3d')
# Years for which we have battery sales datax = [2011, 2012, 2013, 2014, 2015]# Repeat X, 5 times to represent each of the 5 battery ratingsX = x * 5# List of Battery ratingsbattery_ratings = ['7Ah', '35Ah', '40Ah', '135Ah', '150Ah']# Number of units sold each year, each rating. e.g. 75 units of 7Ah(0) batteries, # 144 units of 35Ah(1) batteries sold in 2011Y = np.array([[75, 144, 114, 102, 108], [90, 126, 102, 84, 126], [96, 114, 75, 105, 135], [105, 90, 175, 90, 75], [90, 75, 135, 75, 90]])# Represent battery rating in numeric ...
Read now
Unlock full access