How do you determine which backend is being used by matplotlib?


Using matplotlib.get_backend(), we can get the backend value.

Steps

  • Import matplotlib.

  • To return the name of the current backend, use the get_backend() method.

Example

import matplotlib
print("Backend used by matplotlib is: ", matplotlib.get_backend())

Output

Backend used by matplotlib is: GTK3Agg

Updated on: 15-Mar-2021

735 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements