Skip to content

Output regression in 3.2 that affects SymPy's plotting #17004

@moorepants

Description

@moorepants

Bug report

Bug summary

The SymPy 1.5 documentation was built with matpltolib < 3.2, see the results here:

https://docs.sympy.org/latest/modules/plotting.html

Example image:

image

The SymPy development documentation (SymPy master branch) is now built with matplotlib 3.2, see the results here:

https://docs.sympy.org/dev/modules/plotting.html

Example image:

image

I've been documenting the issue over at SymPy here: sympy/sympy#19051

Code for reproduction

Note that SymPy has a wrapper around various plotting libraries and it will run matplotlib as the backend by default. I have not yet isolated what underlying mpl code in the SymPy wrapper is specifically affected.

from sympy import symbols
from sympy.plotting import plot
x = symbols('x')
p1 = plot(x*x, show=False)
p2 = plot(x, show=False)
p1.append(p2[0])
p1.show()

Actual outcome

# If applicable, paste the console output here
#
#

Expected outcome

Matplotlib version

  • Operating system: Ubuntu 18.04 and 19.10
  • Matplotlib version: 3.1 and 3.2
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version: 3.6-3.8
  • Jupyter version (if applicable):
  • Other libraries: SymPy 1.5

Checked with MPL from conda-forge.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy