robotics-toolbox-python icon indicating copy to clipboard operation
robotics-toolbox-python copied to clipboard

Importing RTB changes the plot style for all matplotlib plots

Open vonHartz opened this issue 11 months ago • 0 comments

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

vonHartz avatar Feb 14 '25 11:02 vonHartz