Skip to content

Importing RTB changes the plot style for all matplotlib plots #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vonHartz opened this issue Feb 14, 2025 · 0 comments
Open

Importing RTB changes the plot style for all matplotlib plots #480

vonHartz opened this issue Feb 14, 2025 · 0 comments

Comments

@vonHartz
Copy link

Describe the bug
Importing RTB changes the plot style for all matplotlib plots - even those not using RTB.

Version information
PyPI: roboticstoolbox-python==1.1.1

To Reproduce
Steps to reproduce the behavior:

import matplotlib.pyplot as plt
plt.imshow([[0,1],[0,1]])
plt.show()
import roboticstoolbox as rtb
plt.imshow([[0,1],[0,1]])
plt.show()

Expected behavior
The plot style should be consistent regardless of RTB, but the second plot has a grid.
For example, plots also get gray backgrounds.

Screenshots
Before and after import
Image
Image

Environment (please complete the following information):

  • Linux
  • Python 3.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant