set_legend
set_legend(fig=None, show=True)Configure the legend visibility.
Supports pipe syntax: ggseg3d() | set_legend(False)
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| fig | go.Figure | bool | None | The plotly figure to modify. Can be omitted for pipe syntax. | None |
| show | bool | Whether to show the legend. | True |
Returns
| Name | Type | Description |
|---|---|---|
| go.Figure | The modified figure (allows chaining). |