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

plt rcParams instead of mpl. Label color optional #52

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

Conversation

Philistino
Copy link

This fork makes two changes to the line_labels() function in _lines.py file:

  1. Adds function parameter use_line_colors: bool = True to specify if the color of the text series labels should match the line colors. If False, the text will be black.
  2. Get font size from plt.rcParams instead of mpl.rcParams. This allows the font size to correspond to the axes fontsize, which may differ from the global mpl params. This is particularly useful when using the plt.rc_context rcParams context manager.

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