Skip to content

Customizable legend text size#86

Open
jniedzie wants to merge 6 commits intomainfrom
devel_jeremi
Open

Customizable legend text size#86
jniedzie wants to merge 6 commits intomainfrom
devel_jeremi

Conversation

@jniedzie
Copy link
Owner

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds customizable legend text size functionality to the Legend class by introducing a configurable text_size field. The hardcoded text size value of 20 is replaced with a class field that defaults to 20, maintaining backward compatibility while allowing users to customize the legend text size when creating Legend instances.

Key changes:

  • Added text_size field to the Legend dataclass with a default value of 20
  • Updated __setupLegend method to use the configurable text_size instead of hardcoded value

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pylibs/plotting/Legend.py Adds configurable text_size field (default=20) to Legend dataclass and updates SetTextSize call to use this field instead of hardcoded value
pylibs/plotting/Sample.py Changes Logger import from error to fatal - unrelated to the PR's stated purpose

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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