{"repo":"lgienapp/aquarel","free":true,"listed":false,"github":"https://github.com/lgienapp/aquarel","clone":"git clone https://github.com/lgienapp/aquarel.git","description":"Styling matplotlib made easy","language":"Python","stars":876,"topics":["matplotlib","plotting","visualization","data-science","data-visualization","theme-development","theming","theme"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Aquarel 🎨 Aquarel is a lightweight templating engine and wrapper around Matplotlibs' rcparams to make styling plots simple. Aquarel templates can be defined programmatically and be serialized and shared in a JSON format. Full documentation is available at aquarel.readthedocs.io. Installation Install via pip: Usage Applying a style Styles can be either applied globally ...or with a context manager: Transforms Themes may specify transforms . Transforms are functions applied on the finished plot to achieve aesthetics that are not possibly by means of rcparams only. For example, to trim the axes, one could apply the trim transform: However, there is one important thing to keep in mind: since transforms require the matplotlib figure/axes object to be present and finished, they have to be applied after the plotting code. When using a theme with a context manager, this is automatically done in the exit call. If global usage is desired, Theme.apply transforms() has to be called after every figure. This also means that calls that make use of the finished figure, i.e. plt.show or plt.savefig have to commence after transform application, so outside the context manager. Customization & Theme Creation Besides loading a predefined theme, you can create a new theme ...modify an existing one ...and write and load your custom styles to and from disk: If the simplified API of aquarel is not sufficient for your use-case, you can also directly modify the underlying rcparams with overrides: Them","default_branch":null,"files":null,"tree":[],"storefront":"/r/lgienapp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lgienapp/aquarel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}