Skip to content

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

Open
@vonHartz

Description

@vonHartz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions