|
68 | 68 | an asterisk
|
69 | 69 | 3
|
70 | 70 | a circle (`numsides` and `angle` is
|
71 |
| - ignored) |
| 71 | + ignored); deprecated. |
72 | 72 |
|
73 | 73 | `angle`:
|
74 | 74 | the angle of rotation of the symbol
|
75 | 75 | ============================== ===============================================
|
76 | 76 |
|
77 |
| -For backward compatibility, the form (`verts`, 0) is also accepted, |
78 |
| -but it is equivalent to just `verts` for giving a raw set of vertices |
79 |
| -that define the shape. |
| 77 | +For backward compatibility, the form (`verts`, 0) is also accepted, but it is |
| 78 | +deprecated and equivalent to just `verts` for giving a raw set of vertices that |
| 79 | +define the shape. |
80 | 80 |
|
81 | 81 | `None` is the default which means 'nothing', however this table is
|
82 | 82 | referred to from other docs for the valid inputs from marker inputs and in
|
@@ -307,9 +307,17 @@ def _set_tuple_marker(self):
|
307 | 307 | self._filled = False
|
308 | 308 | self._joinstyle = 'bevel'
|
309 | 309 | elif symstyle == 3:
|
| 310 | + cbook.warn_deprecated( |
| 311 | + "3.0", "Setting a circle marker using `(..., 3)` is " |
| 312 | + "deprecated since Matplotlib 3.0, and support for it will " |
| 313 | + "be removed in 3.2. Directly pass 'o' instead.") |
310 | 314 | self._path = Path.unit_circle()
|
311 | 315 | self._transform = Affine2D().scale(0.5).rotate_deg(rotation)
|
312 | 316 | else:
|
| 317 | + cbook.warn_deprecated( |
| 318 | + "3.0", "Passing vertices as `(verts, 0)` is deprecated since " |
| 319 | + "Matplotlib 3.0, and support for it will be removed in 3.2. " |
| 320 | + "Directly pass `verts` instead.") |
313 | 321 | verts = np.asarray(marker[0])
|
314 | 322 | path = Path(verts)
|
315 | 323 | self._set_custom_marker(path)
|
|
0 commit comments