Set the connection style, possibly with further attributes. Attributes from the previous connection style are not reused. Without argument (or with ``connectionstyle=None``), the available box styles are returned as a human-readable string. Parameters
(self, connectionstyle=None, **kwargs)
| 4481 | |
| 4482 | @_docstring.interpd |
| 4483 | def set_connectionstyle(self, connectionstyle=None, **kwargs): |
| 4484 | """ |
| 4485 | Set the connection style, possibly with further attributes. |
| 4486 | |
| 4487 | Attributes from the previous connection style are not reused. |
| 4488 | |
| 4489 | Without argument (or with ``connectionstyle=None``), the available box |
| 4490 | styles are returned as a human-readable string. |
| 4491 | |
| 4492 | Parameters |
| 4493 | ---------- |
| 4494 | connectionstyle : str or `~matplotlib.patches.ConnectionStyle` |
| 4495 | The style of the connection: either a `.ConnectionStyle` instance, |
| 4496 | or a string, which is the style name and optionally comma separated |
| 4497 | attributes (e.g. "Arc,armA=30,rad=10"). Such a string is used to |
| 4498 | construct a `.ConnectionStyle` object, as documented in that class. |
| 4499 | |
| 4500 | The following connection styles are available: |
| 4501 | |
| 4502 | %(ConnectionStyle:table_and_accepts)s |
| 4503 | |
| 4504 | **kwargs |
| 4505 | Additional attributes for the connection style. See the table above |
| 4506 | for supported parameters. |
| 4507 | |
| 4508 | Examples |
| 4509 | -------- |
| 4510 | :: |
| 4511 | |
| 4512 | set_connectionstyle("Arc,armA=30,rad=10") |
| 4513 | set_connectionstyle("arc", armA=30, rad=10) |
| 4514 | """ |
| 4515 | if connectionstyle is None: |
| 4516 | return ConnectionStyle.pprint_styles() |
| 4517 | self._connector = ( |
| 4518 | ConnectionStyle(connectionstyle, **kwargs) |
| 4519 | if isinstance(connectionstyle, str) else connectionstyle) |
| 4520 | self.stale = True |
| 4521 | |
| 4522 | def get_connectionstyle(self): |
| 4523 | """Return the `ConnectionStyle` used.""" |
no test coverage detected