
## set_translate {#float-float}

Sets the transform type to SVG_TRANSFORM_TRANSLATE, with parameters tx and ty defining the translation amounts.



```python
def set_translate(self, tx, ty):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| tx | float | The translation amount in X. |
| ty | float | The translation amount in Y. |
### Exceptions
| Exception | Description |
| :- | :- |
| [`DOMException`](/svg/python-net/aspose.svg.dom/domexception) | Code [`DOMException.NO_MODIFICATION_ALLOWED_ERR`](/svg/python-net/aspose.svg.dom/domexception). <br/>Raised on an attempt to change the value of a read only attribute. |





### See Also
* module [`aspose.svg.datatypes`](../../)
* class [`DOMException`](/svg/python-net/aspose.svg.dom/domexception)
* class [`SVGTransform`](/svg/python-net/aspose.svg.datatypes/svgtransform)
