Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support transparent background #118

Closed
sepandhaghighi opened this issue Apr 20, 2022 · 1 comment · Fixed by #136
Closed

Support transparent background #118

sepandhaghighi opened this issue Apr 20, 2022 · 1 comment · Fixed by #136
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sepandhaghighi
Copy link
Owner

Description

Support transparent background

Steps/Code to Reproduce

>>> from samila import *
>>> g = GenerativeImage()
>>> g.generate()
>>> g.plot(bgcolor="transparent")

Expected Behavior

Transparent background

Actual Behavior

>>> g.bgcolor
'orangered'

Operating System

Windows 10

Python Version

3.6.5

Samila Version (Use : samila.__version__)

0.6

@sepandhaghighi sepandhaghighi added the enhancement New feature or request label Apr 20, 2022
@sepandhaghighi sepandhaghighi added this to the samila v0.7 milestone Apr 20, 2022
@sepandhaghighi
Copy link
Owner Author

ax.patch.set_visible(False)
fig.patch.set_visible(False)

Reference: https://stackoverflow.com/questions/19259988/force-background-of-matplotlib-figure-to-be-transparent

@sadrasabouri sadrasabouri self-assigned this May 17, 2022
sadrasabouri added a commit that referenced this issue May 17, 2022
sepandhaghighi pushed a commit that referenced this issue May 19, 2022
* add : set_background function usage added to `genimage.py`.

* add : `set_background` function added.

* log : changes logged. (#118)

* test : some tests added.

* fix : minor typo in tests fixed.

* add : transparent added to documents.

* update : CHANGELOG.md updated.

* fix : minor typo fixed.

* edit : Transparent description added.

* edit : make `Transparent` bold.
@sepandhaghighi sepandhaghighi linked a pull request May 31, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants