Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error with bar plot and no data #5237

Closed
@Acanthostega

Description

@Acanthostega

Hi everyone,

generating an empty bar plot with the current master branch of the repo creates an error:

ValueError: incompatible sizes: argument 'tick_label' must be length 0 or string

For the code example:

import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.add_subplot(111)
ax.bar([], [])

With the 1.4.3 version of matplotlib from pip the code is working but not with the master branch. Is this now a normal behaviour ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions