You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/development/extending.rst
+17
Original file line number
Diff line number
Diff line change
@@ -441,5 +441,22 @@ This would be more or less equivalent to:
441
441
The backend module can then use other visualization tools (Bokeh, Altair,...)
442
442
to generate the plots.
443
443
444
+
Libraries implementing the plotting backend should use `entry points <https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins>`__
445
+
to make their backend discoverable to pandas. The key is ``"pandas_plotting_backends"``. For example, pandas
446
+
registers the default "matplotlib" backend as follows.
447
+
448
+
.. code-block:: python
449
+
450
+
# in setup.py
451
+
setup( # noqa: F821
452
+
...,
453
+
entry_points={
454
+
"pandas_plotting_backends": [
455
+
"matplotlib = pandas:plotting._matplotlib",
456
+
],
457
+
},
458
+
)
459
+
460
+
444
461
More information on how to implement a third-party plotting backend can be found at
0 commit comments