h4pZ / rose-pine-matplotlib

All natural pine, faux fur and a bit of soho vibes for the classy minimalist
MIT License
310 stars 15 forks source link

Can I add rose-pine to google collab? #1

Closed benthecoder closed 3 years ago

benthecoder commented 3 years ago

Hi there, not really an issue but a question. I was wondering if it's possible to implement this theme on google collab. I can't figure out how to do step 2, which is adding it to mpl_configdir/stylelib.

Thank you.

h4pZ commented 3 years ago

Hi,

Yes you can use it on colab too. Just get the file for the style you want to use on colab by uploading it or using wget (!wget https://raw.githubusercontent.com/h4pZ/rose-pine-matplotlib/main/themes/rose-pine.mplstyle) and then when setting the style with matplotlib just put the path of the file like plt.style.use("path_to_file").

Or you could move the file to /root/.config/matplotlib/stylelib/ and call it just by the name.

Example:

Example

benthecoder commented 3 years ago

Thanks so much! Awesome theme by the way!