Skip to content

plt.stackplot() does not work with 3.0.0 #12405

Closed

Description

@sorenwacker

Bug report

Something now breaks this code that used to work. Now, I have to call plt.subplots first and use stackplot on an axis object.

TypeError: stackplot() got multiple values for argument 'x'

from matplotlib import pyplot as plt
plt.stackplot([1,2,3], [1,2,3]) 

Should be equivalent to

fig, ax = plt.subplots()
ax.stackplot([1,2,3], [1,2,3]) 

Matplotlib version

  • Operating system:
  • Matplotlib version: 3.0.0
  • Matplotlib backend (print(matplotlib.get_backend())): 'module://ipykernel.pylab.backend_inline'
  • Python version: 3.6.6
  • Jupyter version (if applicable): 4.4.0
  • Other libraries:

Installed matplotlib using conda with default channel.

Activity

  1. jklymak commented on Oct 4, 2018

    @jklymak
    Member

    This is present in master as well, and worked w/ 2.2.3

  2. jklymak commented on Oct 4, 2018

    @jklymak
    Member

    Bisects to 86fe16b #10918

  3. added this to the v3.0.x milestone on Oct 5, 2018
  4. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Oct 5, 2018
  5. anntzer commented on Oct 5, 2018

    @anntzer
    Contributor

    #12293 also closes this.

  6. timhoffm commented on Oct 7, 2018

    @timhoffm
    Member

    Closed via #12293.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.status: confirmed bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions