"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"graphviz.Source.from_file(\"python_visualisation_landscape.gv\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Dot-Dateien konvertieren"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Eine Dot-Datei kann in ein anderes Format, z.B. PDF, PNG, SVG etc., umgewandelt werden mit `render`:"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'python_visualisation_landscape.gv.svg'"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from graphviz import render\n",
"\n",
"\n",
"render(\"dot\", \"svg\", \"python_visualisation_landscape.gv\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
" \n",
"**Siehe auch:**\n",
"\n",
"* [graphviz manual](https://graphviz.readthedocs.io/en/stable/manual.html#jupyter-notebooks)\n",
"* [examples/graphviz-notebook](https://nbviewer.org/github/xflr6/graphviz/blob/master/examples/graphviz-notebook.ipynb)\n",
"* [examples/graphviz-engines](https://nbviewer.org/github/xflr6/graphviz/blob/master/examples/graphviz-engines.ipynb)\n",
"* [examples/graphviz-escapes.ipynb](https://nbviewer.org/github/xflr6/graphviz/blob/master/examples/graphviz-escapes.ipynb)\n",
"* [Graphviz Online](https://dreampuf.github.io/GraphvizOnline/)\n",
"
"
]
}
],
"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": 2
}