|
| 1 | +============= |
1 | 2 | API Reference |
2 | 3 | ============= |
3 | 4 |
|
| 5 | +The anyplotlib public API is organized into five modules below. |
| 6 | +Click a card to browse the module page, or use the summary tables to jump |
| 7 | +directly to a class or function. |
| 8 | + |
4 | 9 | .. toctree:: |
| 10 | + :hidden: |
5 | 11 | :maxdepth: 2 |
6 | 12 |
|
7 | 13 | figure |
8 | 14 | figure_plots |
9 | 15 | markers |
10 | 16 | widgets |
11 | 17 | callbacks |
| 18 | + |
| 19 | +.. grid:: 2 3 3 3 |
| 20 | + :gutter: 2 |
| 21 | + |
| 22 | + .. grid-item-card:: |
| 23 | + :link: figure |
| 24 | + :link-type: doc |
| 25 | + |
| 26 | + :octicon:`browser;2em;sd-text-info` Figure |
| 27 | + ^^^ |
| 28 | + |
| 29 | + The :class:`~anyplotlib.Figure` widget and the |
| 30 | + :func:`~anyplotlib.subplots` factory — the main entry point |
| 31 | + for creating interactive figures. |
| 32 | + |
| 33 | + .. grid-item-card:: |
| 34 | + :link: figure_plots |
| 35 | + :link-type: doc |
| 36 | + |
| 37 | + :octicon:`graph;2em;sd-text-info` Axes & Plots |
| 38 | + ^^^ |
| 39 | + |
| 40 | + :class:`~anyplotlib.Axes` and the five plot classes: |
| 41 | + :class:`~anyplotlib.Plot1D`, :class:`~anyplotlib.Plot2D`, |
| 42 | + :class:`~anyplotlib.PlotMesh`, :class:`~anyplotlib.Plot3D`, |
| 43 | + :class:`~anyplotlib.PlotBar`. |
| 44 | + |
| 45 | + .. grid-item-card:: |
| 46 | + :link: figure_plots |
| 47 | + :link-type: doc |
| 48 | + |
| 49 | + :octicon:`rows;2em;sd-text-info` Layout |
| 50 | + ^^^ |
| 51 | + |
| 52 | + :class:`~anyplotlib.GridSpec` and :class:`~anyplotlib.SubplotSpec` |
| 53 | + for building flexible multi-panel figure layouts. |
| 54 | + |
| 55 | + .. grid-item-card:: |
| 56 | + :link: markers |
| 57 | + :link-type: doc |
| 58 | + |
| 59 | + :octicon:`dot-fill;2em;sd-text-info` Markers |
| 60 | + ^^^ |
| 61 | + |
| 62 | + Static visual overlays — circles, arrows, lines, rectangles, |
| 63 | + polygons, text, and more — drawn on top of any plot. |
| 64 | + |
| 65 | + .. grid-item-card:: |
| 66 | + :link: widgets |
| 67 | + :link-type: doc |
| 68 | + |
| 69 | + :octicon:`sliders;2em;sd-text-info` Interactive Widgets |
| 70 | + ^^^ |
| 71 | + |
| 72 | + Draggable overlays such as :class:`~anyplotlib.CrosshairWidget` |
| 73 | + and :class:`~anyplotlib.RectangleWidget` that report position |
| 74 | + back to Python. |
| 75 | + |
| 76 | + .. grid-item-card:: |
| 77 | + :link: callbacks |
| 78 | + :link-type: doc |
| 79 | + |
| 80 | + :octicon:`bell;2em;sd-text-info` Callbacks |
| 81 | + ^^^ |
| 82 | + |
| 83 | + The :class:`~anyplotlib.CallbackRegistry` two-tier event system |
| 84 | + (``on_change`` for live frames, ``on_release`` for settled state) |
| 85 | + and the :class:`~anyplotlib.Event` dataclass. |
| 86 | + |
| 87 | + |
| 88 | +Figure |
| 89 | +------ |
| 90 | + |
| 91 | +.. currentmodule:: anyplotlib |
| 92 | + |
| 93 | +.. autosummary:: |
| 94 | + :toctree: generated/ |
| 95 | + :nosignatures: |
| 96 | + :template: class.rst |
| 97 | + |
| 98 | + Figure |
| 99 | + |
| 100 | +.. autosummary:: |
| 101 | + :toctree: generated/ |
| 102 | + :nosignatures: |
| 103 | + |
| 104 | + subplots |
| 105 | + |
| 106 | + |
| 107 | +Axes & Plots |
| 108 | +------------ |
| 109 | + |
| 110 | +.. autosummary:: |
| 111 | + :toctree: generated/ |
| 112 | + :nosignatures: |
| 113 | + :template: class.rst |
| 114 | + |
| 115 | + Axes |
| 116 | + Plot1D |
| 117 | + Plot2D |
| 118 | + PlotMesh |
| 119 | + Plot3D |
| 120 | + PlotBar |
| 121 | + |
| 122 | + |
| 123 | +Layout |
| 124 | +------ |
| 125 | + |
| 126 | +.. autosummary:: |
| 127 | + :toctree: generated/ |
| 128 | + :nosignatures: |
| 129 | + :template: class.rst |
| 130 | + |
| 131 | + GridSpec |
| 132 | + SubplotSpec |
| 133 | + |
| 134 | + |
| 135 | +Markers |
| 136 | +------- |
| 137 | + |
| 138 | +.. currentmodule:: anyplotlib.markers |
| 139 | + |
| 140 | +.. autosummary:: |
| 141 | + :toctree: generated/ |
| 142 | + :nosignatures: |
| 143 | + :template: class.rst |
| 144 | + |
| 145 | + MarkerGroup |
| 146 | + MarkerTypeDict |
| 147 | + MarkerRegistry |
| 148 | + |
| 149 | + |
| 150 | +Interactive Widgets |
| 151 | +------------------- |
| 152 | + |
| 153 | +.. currentmodule:: anyplotlib |
| 154 | + |
| 155 | +.. autosummary:: |
| 156 | + :toctree: generated/ |
| 157 | + :nosignatures: |
| 158 | + :template: class.rst |
| 159 | + |
| 160 | + Widget |
| 161 | + RectangleWidget |
| 162 | + CircleWidget |
| 163 | + AnnularWidget |
| 164 | + CrosshairWidget |
| 165 | + PolygonWidget |
| 166 | + LabelWidget |
| 167 | + VLineWidget |
| 168 | + HLineWidget |
| 169 | + RangeWidget |
| 170 | + |
| 171 | + |
| 172 | +Callbacks |
| 173 | +--------- |
| 174 | + |
| 175 | +.. autosummary:: |
| 176 | + :toctree: generated/ |
| 177 | + :nosignatures: |
| 178 | + :template: class.rst |
| 179 | + |
| 180 | + CallbackRegistry |
| 181 | + Event |
| 182 | + |
0 commit comments