Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "rc" in matplotlib's rcParams stand for? [closed]

matplotlibrc configuration files are used to customize all kinds of properties in matplotlib. One can change the rc settings to customize the default parameters e.g:

matplotlib.rcParams['font.family'] = 'times new roman' 

... but what does "rc" stand for?

I can't find any explanation in the docs

like image 581
ztl Avatar asked Jun 09 '16 13:06

ztl


People also ask

Where is Matplotlib RC?

config/matplotlib/matplotlibrc . The rc configuration file is found under $INSTALL_DIR/matplotlib/mpl-data/matplotlibrc , where $INSTALL_DIR is where you installed Matplotlib, ... Get Matplotlib for Python Developers now with the O'Reilly learning platform.

How do I change my PLT style?

Another way to change the visual appearance of plots is to set the rcParams in a so-called style sheet and import that style sheet with matplotlib. style. use . In this way you can switch easily between different styles by simply changing the imported style sheet.

What is the extension of a Matplotlib style sheet?

Create your own style sheet A matplotlib style sheet has the same format and syntax as the matplotlibrc file.

What is Matplotlibrc?

Matplotlib is a cross-platform, data visualization and graphical plotting library for Python and its numerical extension NumPy. As such, it offers a viable open source alternative to MATLAB. Developers can also use matplotlib's APIs (Application Programming Interfaces) to embed plots in GUI applications.


1 Answers

It's common to end configuration files in 'rc' - e.g. '.xinitrc', '.vimrc' and '.bashrc'.

It stems from practice of having your configs executable - they are automatically Run at startup and they Configure your stuff.

This started long ago, even before Unix:

[Unix: from runcom files on the CTSS system 1962-63, via the startup script /etc/rc] Script file containing startup instructions for an application program (or an entire operating system), usually a text file containing commands of the sort that might have been invoked manually once the system was running but are to be executed automatically each time the system starts up.

like image 191
Daerdemandt Avatar answered Oct 01 '22 14:10

Daerdemandt