Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Removed sys.exit(1) when plot.bgcolour = None. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericchansen
Copy link

In README.md, it says that setting plot.bgcolour to None will
result in a transparent background. However, an assert lead to
sys.exit(1) if plot.bgcolour was None.

I left the assert and the exception message, but simply removed
the sys.exit(1). Now, when plot.bgcolour is None, it throws a
warning but continues on to produce the plot with a transparent
background.

In README.md, it says that setting plot.bgcolour to None will
result in a transparent background. However, an assert lead to
sys.exit(1) if plot.bgcolour was None.

I left the assert and the exception message, but simply removed
the sys.exit(1). Now, when plot.bgcolour is None, it throws a
warning but continues on to produce the plot with a transparent
background.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant