{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Matplotlib-Backends\n", "\n", "Matplotlib stellt viele verschiedene Rendering-Backends zur Verfügung:" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['GTK3Agg',\n", " 'GTK3Cairo',\n", " 'GTK4Agg',\n", " 'GTK4Cairo',\n", " 'MacOSX',\n", " 'nbAgg',\n", " 'QtAgg',\n", " 'QtCairo',\n", " 'Qt5Agg',\n", " 'Qt5Cairo',\n", " 'TkAgg',\n", " 'TkCairo',\n", " 'WebAgg',\n", " 'WX',\n", " 'WXAgg',\n", " 'WXCairo',\n", " 'agg',\n", " 'cairo',\n", " 'pdf',\n", " 'pgf',\n", " 'ps',\n", " 'svg',\n", " 'template']" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from matplotlib import rcsetup\n", "\n", "\n", "rcsetup.all_backends" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Alternativ können auch nur die interaktiven oder nicht-interaktiven Backends aufgelistet werden:" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['GTK3Agg',\n", " 'GTK3Cairo',\n", " 'GTK4Agg',\n", " 'GTK4Cairo',\n", " 'MacOSX',\n", " 'nbAgg',\n", " 'QtAgg',\n", " 'QtCairo',\n", " 'Qt5Agg',\n", " 'Qt5Cairo',\n", " 'TkAgg',\n", " 'TkCairo',\n", " 'WebAgg',\n", " 'WX',\n", " 'WXAgg',\n", " 'WXCairo']" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rcsetup.interactive_bk" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['agg', 'cairo', 'pdf', 'pgf', 'ps', 'svg', 'template']" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "rcsetup.non_interactive_bk" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.11 Kernel", "language": "python", "name": "python311" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.4" }, "latex_envs": { "LaTeX_envs_menu_present": true, "autoclose": false, "autocomplete": true, "bibliofile": "biblio.bib", "cite_by": "apalike", "current_citInitial": 1, "eqLabelWithNumbers": true, "eqNumInitial": 1, "hotkeys": { "equation": "Ctrl-E", "itemize": "Ctrl-I" }, "labels_anchors": false, "latex_user_defs": false, "report_style_numbering": false, "user_envs_cfg": false }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 4 }