Update the properties of an object with a dict and/or with keyword arguments. This recursively updates the structure of the original object with the values in the input dict / keyword arguments. Parameters ---------- dict1 : dict
(self, dict1=None, overwrite=False, **kwargs)
| 5166 | return _ret |
| 5167 | |
| 5168 | def update(self, dict1=None, overwrite=False, **kwargs): |
| 5169 | """ |
| 5170 | Update the properties of an object with a dict and/or with |
| 5171 | keyword arguments. |
| 5172 | |
| 5173 | This recursively updates the structure of the original |
| 5174 | object with the values in the input dict / keyword arguments. |
| 5175 | |
| 5176 | Parameters |
| 5177 | ---------- |
| 5178 | dict1 : dict |
| 5179 | Dictionary of properties to be updated |
| 5180 | overwrite: bool |
| 5181 | If True, overwrite existing properties. If False, apply updates |
| 5182 | to existing properties recursively, preserving existing |
| 5183 | properties that are not specified in the update operation. |
| 5184 | kwargs : |
| 5185 | Keyword/value pair of properties to be updated |
| 5186 | |
| 5187 | Returns |
| 5188 | ------- |
| 5189 | BasePlotlyType |
| 5190 | Updated plotly object |
| 5191 | """ |
| 5192 | if self.figure: |
| 5193 | with self.figure.batch_update(): |
| 5194 | BaseFigure._perform_update(self, dict1, overwrite=overwrite) |
| 5195 | BaseFigure._perform_update(self, kwargs, overwrite=overwrite) |
| 5196 | else: |
| 5197 | BaseFigure._perform_update(self, dict1, overwrite=overwrite) |
| 5198 | BaseFigure._perform_update(self, kwargs, overwrite=overwrite) |
| 5199 | |
| 5200 | return self |
| 5201 | |
| 5202 | def pop(self, key, *args): |
| 5203 | """ |
nothing calls this directly
no test coverage detected