handson-ml icon indicating copy to clipboard operation
handson-ml copied to clipboard

Chapter 3:> use of mpl.rc() and its parameters passed

Open Samrat666 opened this issue 5 years ago • 1 comments

I tried a lot but could not find the documentation of mpl.rc().Everywhere I got for matplotlib.pyplot.rcParams()... please help me with mpl.rc() function and the respective parameters i.e. 'axes','xtick','ytick' and the labelsize parameter...

Samrat666 avatar May 21 '20 07:05 Samrat666

#564 matplotlib rc file is read at startup to configure matplotlib.

Matplotlib also provides a couple of convenience functions for modifying rc settings. The matplotlib.rc() command can be used to modify multiple settings in a single group at once, using keyword arguments: mpl.rc('lines', linewidth=4, linestyle='-.') plt.plot(data)

More here: https://matplotlib.org/3.2.1/api/matplotlib_configuration_api.html#matplotlib.rc

I hope this gives you som intuition about it.

ghost avatar May 26 '20 16:05 ghost