# Import libraries
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
# Change the Size of Graph using
# Figsize
fig = plt.figure(figsize=(10, 10))
# Generating a 3D sine wave
ax = plt.axes(projection='3d')
# Create axis
axes = [5, 5, 5]
# Create Data
data = np.ones(axes)
# Control Tranperency
alpha = 0.9
# Control colour
colors = np.empty(axes + [4])
colors[0] = [1, 0, 0, alpha] # red
colors[1] = [0, 1, 0, alpha] # green
colors[2] = [0, 0, 1, alpha] # blue
colors[3] = [1, 1, 0, alpha] # yellow
colors[4] = [1, 1, 1, alpha] # grey
# turn off/on axis
plt.axis('off')
# Voxels is used to customizations of
# the sizes, positions and colors.
ax.voxels(data, facecolors=colors, edgecolors='grey')
You have to login to leave a review!
All Reviews
What type of support is included? Verified source code Free support included 100% Satisfaction guarantee Download code immediately after purchase Published by the developer Quality guarantee for your satisfaction Support: info@sellanycode.com or live chat
You have to purchase this item to get support!
You have to login to ask a question!
All Questions
No Question!
$0
Verified source code We offer mail support 100% Satisfaction guarantee Join 29699+ buyers which trust us! Download code immediately after purchase