Is there a way to make matplotlib
behave identically to R, or almost like R, in terms of plotting defaults? For example R treats its axes pretty differently from
The Seaborn visualisation library can do that. For example, to reproduce the style of the R histogram use:
sns.despine(offset=10, trim=True)
as in https://seaborn.pydata.org/tutorial/aesthetics.html#removing-axes-spines
To reproduce the style of the R scatter plot use:
sns.set_style("ticks")
as shown in https://seaborn.pydata.org/tutorial/aesthetics.html#seaborn-figure-styles