sepandhaghighi / samila

Generative Art Generator
https://www.samila.site
MIT License
1.08k stars 78 forks source link

`rotate` function optimization #185

Closed sepandhaghighi closed 1 year ago

sepandhaghighi commented 1 year ago

Description

It seems that some parts of this function are redundant

sadrasabouri commented 1 year ago

This is what happened when we move the code below after rotation. (all extra information like axis, markers and etc are presented) So I think we'd need this part anyway thus no optimization is possible. If you think so, we can close this issue.

ax.set_axis_off()
ax.patch.set_zorder(-1)
ax.add_artist(ax.patch)

test-45