
## set_scale {#float-float}

Sets the transform type to SVG_TRANSFORM_SCALE, with parameters sx and sy defining the scale amounts.



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


| Parameter | Type | Description |
| :- | :- | :- |
| sx | float | The scale amount in X. |
| sy | float | The scale 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)
