@@ -14,7 +14,7 @@ Installation
14
14
15
15
Dependencies:
16
16
- Python 3,
17
- - cairo >=1.12,
17
+ - cairo >=1.12 (needed for mesh gradient support) ,
18
18
- a C++ compiler with C++17 support, e.g. GCC≥7.1.
19
19
20
20
Run::
34
34
Then, the backend can be selected by setting the ``MPLBACKEND `` environment
35
35
variable to ``module://mpl_cairo.qt ``.
36
36
37
- The ``examples `` folder contains a few cases where the output of this backend
38
- is arguably more accurate (thanks to the use of subpixel marker stamping, with
39
- an accuracy controlled by the `` path.simplify_threshold `` rcparam ).
37
+ The ``examples `` folder contains a few cases where the output of this renderer
38
+ is arguably more accurate than the one of the default renderer, Agg (better and
39
+ faster marker stamping, and better text kerning ).
40
40
41
41
Benchmarks
42
42
----------
61
61
artist property can also take the ``mpl_cairo.antialias_t.GOOD `` (or
62
62
``BEST ``, etc.) value for additional control. ``GOOD ``/``BEST `` antialiasing
63
63
of lines is ~3x slower than using Agg.
64
+
65
+ **NOTE **: When drawing very thin lines (e.g.,
66
+ ``test_cycles.test_property_collision_plot ``), ``CAIRO_ANTIALIAS_FAST `` may
67
+ lead to artefacts, such that the line disappears in certain areas. In that
68
+ case, switching to ``GOOD ``/``BEST `` antialiasing solves the issue. (It may
69
+ be possible to do this automatically from within the backend, just as the
70
+ miter limit is set whenever the line width is set.)
71
+
64
72
- ``path.simplify_threshold `` is also used to control the accuracy of marker
65
73
stamping, down to a arbitrarily chosen threshold of 1/16px. Values lower
66
74
than that will use the exact (slower) marker drawing path. Marker stamping
0 commit comments