# Revision history [back]

I have found the answer to this question (and it came out of this answer to a question of mine at StackOverflow) and it does, in fact, involve matplotlib. Here is the code required to plot the X, Y and Z ndarrays and provide the axes labels (the axes info I got from here):

# Plot the result
from mpl_toolkits.mplot3d import axes3d
from matplotlib import pyplot as plt
# Call the plot function if you want to plot the data
def plot():
fig = plt.figure(1)