graphinglib.SmartTwinAxis.copy_with#
- SmartTwinAxis.copy_with(**kwargs) Self[source]#
Returns a deep copy of the SmartTwinAxis with specified attributes overridden.
- Parameters:
- **kwargs
Public writable properties to override in the copied SmartTwinAxis. The keys should be property names to modify and the values are the new values for those properties.
- Returns:
- SmartTwinAxis
A new SmartTwinAxis instance with the specified attributes overridden.
Examples
Copy an existing SmartTwinAxis to remove change its label:
twin_ax_2 = twin_ax_1.copy_with(label="New Label")