Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb27fbf

Browse files
committed
Update README re: macos loading.
1 parent 55c9313 commit eb27fbf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ As usual, install using pip:
7979
8080
Note that wheels are not available for macOS<10.13, because the libc++ included
8181
with these versions is too old and vendoring of libc++ appears to be fragile.
82-
Help for packaging would be welcome.
8382

8483
mplcairo can use Raqm_ (≥0.7.0; ≥0.7.2 is recommended as it provides better
8584
emoji support, especially in the presence of ligatures) for complex text layout
@@ -198,9 +197,6 @@ delocate-wheel_ (to vendor a recent version of libc++). Currently, it can only
198197
be built from a Homebrew-clang wheel, not a conda-clang wheel (due to some path
199198
intricacies...).
200199

201-
As I can personally only test the macOS build on CI, any help with the build
202-
and the packaging on that platform would be welcome.
203-
204200
.. _delocate-wheel: https://github.com/matthew-brett/delocate
205201

206202
Windows
@@ -286,10 +282,10 @@ specifically, the following backends are provided:
286282
- ``module://mplcairo.macosx`` (macOS widget, copying data from a cairo image
287283
surface).
288284

289-
On macOS, **it is necessary to explicitly import mplcairo before importing
290-
Matplotlib** due to incompatibilities associated with the use of a recent
291-
libc++. As such, the most practical option is to import mplcairo, then call
292-
e.g. ``matplotlib.use("module://mplcairo.macosx")``.
285+
On macOS, prior to Matplotlib 3.8, **it was necessary to explicitly import
286+
mplcairo before importing Matplotlib** (unless your Matplotlib is built with
287+
``system_freetype = True``). A practical option was to import mplcairo, then
288+
call e.g. ``matplotlib.use("module://mplcairo.macosx")``.
293289

294290
Jupyter is entirely unsupported (patches would be appreciated). One
295291
possibility is to set the ``MPLCAIRO_PATCH_AGG`` environment variable to a

0 commit comments

Comments
 (0)