---
title: "scale method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/matrix/scale/"
product: "Aspose.CAD for Python via .NET API References"
---


## scale {#float-float}

Applies the specified scale vector (scaleX and scaleY) to this Matrix using (default) Prepend order.



```python
def scale(self, sx, sy):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| sx | float | The sx. The sx. The sx. |
| sy | float | The sy. The sy. The sy. |


## scale {#float-float-aspose.cad.MatrixOrder}

Applies the specified scale vector (scaleX and scaleY) to this [`Matrix`](/cad/python-net/aspose.cad/matrix) using the specified order.



```python
def scale(self, scale_x, scale_y, order):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| scale_x | float | The scale X. |
| scale_y | float | The scale Y. |
| order | [`MatrixOrder`](/cad/python-net/aspose.cad/matrixorder) | The order. |



### See Also
* module [`aspose.cad`](../../)
* class [`Matrix`](/cad/python-net/aspose.cad/matrix)
