File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,33 @@ Install
2929
3030 conda install -c conda-forge matplotlib
3131
32+ .. tab-item :: pixi
33+
34+ .. code-block :: bash
35+
36+ pixi add matplotlib
37+
38+ .. tab-item :: uv
39+
40+ .. code-block :: bash
41+
42+ uv add matplotlib
43+
44+ .. warning ::
45+
46+ The ``tkagg `` backend is not available because Python versions
47+ distributed by uv do not contain tk bindings that are usable by
48+ Matplotlib (see `this issue `_ for details). If you want Matplotlib
49+ to be able to display plots in a window, you should install one of
50+ the other :ref: `supported GUI frameworks <optional_dependencies >`,
51+ e.g.
52+
53+ .. code-block :: bash
54+
55+ uv add matplotlib pyside6
56+
57+ .. _this issue : https://github.com/astral-sh/uv/issues/6893#issuecomment-2565965851
58+
3259 .. tab-item :: other
3360
3461 .. rst-class :: section-toc
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ precompiled wheel for your OS and Python.
2828 The following backends work out of the box: Agg, ps, pdf, svg
2929
3030 Python is typically shipped with tk bindings which are used by
31- TkAgg.
31+ TkAgg. Notably, python-build-standalone -- used by ``uv `` -- does
32+ not include tk bindings that are usable by Matplotlib.
3233
3334 For support of other GUI frameworks, LaTeX rendering, saving
3435 animations and a larger selection of file formats, you can
You can’t perform that action at this time.
0 commit comments