I have found this beautiful ggplot inspired color scheme for matplotlib and want to use it for a specific project.
As per the matplotlib documentation, custom color scheme should not overwrite the default in site-packages but instead be placed in $HOME/.matplotlib. But what is the equivalent for $HOMEin a venv? Specifically: how can I make sure this color scheme is not overwritten when installing/upgrading a new matplotlib
Is there any reason why you don’t want to just save it under your actual
$HOMEdirectory?Virtualenv is a tool for creating isolated Python environments. As such, it does not try to provide a whole user environment. So basically, the
$HOMEof a virtualenv is just the normal$HOMEof the user.As for as Matplotlib goes, the documentation mentions how the
matplotlibrcfile is searched for:matplotlibrcin the current direcotry. This may be a candidate location for your venv-specific configurations.~/.matplotlib/matplotlibrc).