Skip to content

Type Error in bar3d plot when saved as svg #2355

@p3trus

Description

@p3trus

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions