Which is equivalent to $ HOME in virtualenv (python) - specifically for matplotlibrc

I found this beautiful ggplot color scheme for matplotlib and want to use it for a specific project.

According to the matplotlib documentation, a custom color scheme should not overwrite the default value in site-packages, but instead be placed in $HOME/.matplotlib. But what is equivalent to $HOMEin venv? In particular: how can I make sure that this color scheme is not overwritten when installing / updating a newmatplotlib

+5
source share
2 answers

Is there a reason why you don’t just want to save it in your actual directory $HOME?

Virtualenv - Python. , . , $HOME $HOME .

Matplotlib, , matplotlibrc:

  • -, matplotlibrc . .
  • -, (~/.matplotlib/matplotlibrc).
  • , .
+3

Voithos MPLtools, :

mpltools "" - , , matplotlibrc. "ggplot", ggplot

: -)

http://tonysyu.github.com/mpltools/auto_examples/style/plot_ggplot.html

0

All Articles