-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
I'm getting a strange error TypeError: %x format: a number is required, not numpy.float64
The code doing this is below, a ipynb file with the full traceback is here
import matplotlib.pyplot as pl
from mpl_toolkits.mplot3d import Axes3D
fig = pl.figure()
ax = Axes3D(fig)
x = y = z = range(10)
dz = [0., 1]*5
# I guess the problem is the dz value. Using a scalar,
# even 0. works. A list of 0. works as well but not a combination.
ax.bar3d(x, y, z, 1, 1, dz)
fig.savefig('test.svg')
matplotlib version: 1.2.0