---
title: "translate method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.drawing/imatrix/translate/"
product: "Aspose.SVG for Python via .NET API References"
---


## translate {#float-float}

Translates the matrix by the specified offset values.



```python
def translate(self, offset_x, offset_y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| offset_x | float | The offset value along the x-axis. |
| offset_y | float | The offset value along the y-axis. |


## translate {#float-float-aspose.svg.drawing.WebMatrixOrder}

Translates the matrix by the specified offset values in the specified order.



```python
def translate(self, offset_x, offset_y, order):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| offset_x | float | The offset value along the x-axis. |
| offset_y | float | The offset value along the y-axis. |
| order | [`WebMatrixOrder`](/svg/python-net/aspose.svg.drawing/webmatrixorder) | The order in which translation is applied. |



### See Also
* module [`aspose.svg.drawing`](../../)
* class [`IMatrix`](/svg/python-net/aspose.svg.drawing/imatrix)
