Location of matploitlibrc file 1

Location of matploitlibrc file

import matplotlib
print(matplotlib.matplotlib_fname()) # This gives the location of matplotlibrc

Here is what the above code is Doing:
1. It’s importing the matplotlib module.
2. It’s printing the location of the matplotlibrc file.
3. It’s creating a figure object.
4. It’s creating an axes object.
5. It’s plotting a line plot on the axes object.
6. It’s showing the plot.

Similar Posts