Skip to content

Make curly braces always single-colored#4

Open
markusReinert wants to merge 1 commit into
iruletheworld:masterfrom
markusReinert:uniform_color
Open

Make curly braces always single-colored#4
markusReinert wants to merge 1 commit into
iruletheworld:masterfrom
markusReinert:uniform_color

Conversation

@markusReinert

Copy link
Copy Markdown

Before this commit, if the optional “color” keyword was not given, then the curly brace would have several, seemingly random colors. This two-line fix ensures that a curly brace has always a single color, either given as the keyword argument or determined automatically.

A new example script making use of this is added. The result of this example script looks like this:
Result of exp_color.py with the code from this pull request.
Since the script does not specify the colors of the curly braces, they are chosen automatically based on the color rotation of matplotlib.

The same example script with the code that is currently on the master branch creates the following output:
Result of exp_color.py with the code from the master branch.
Here, each curly brace has several colors, which creates a non-uniform appearance.

Before this commit, if the optional “color” keyword was not given,
then the curly brace would have several, seemingly random colors.
This two-line fix ensures that a curly brace has always a single color,
either given as the keyword argument or determined automatically.

A new example script making use of this is added.
LateNightIceCream pushed a commit to LateNightIceCream/matplotlib-curly-brace-with-fixes that referenced this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant