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

Set axis colors for Axes class to passed in values; set default axis color to BLACK if no numbers given #3727

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

Conversation

acremers22
Copy link

@acremers22 acremers22 commented Apr 24, 2024

Overview: What does this pull request change?

The first change is in lines 1873-1882 of coordinate_systems.py. The second change is in Ines 484-490 of number_line.py. This pull request attempts to fix that Axes does not respect the parameters passed in, specifically pertaining to color.

Motivation and Explanation: Why and how do your changes improve the library?

Resolve #3633 . These changes attempt to fix an issue within the initialization of the Axes class in which the axis_config attributes are not accurately set. To account for color not being displayed as per issue 3633, the changes set the color to the parameters passed in, and also set the default color to BLACK if no numbers are given.

Links to added or changed documentation pages

Further Information and Comments

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

self.decimal_number_config["color"] = color.BLACK

# Now when the configurations are merged, the color will be set to black
number_config = merge_dicts_recursively(

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable number_config is not used.
# Now when the configurations are merged, the color will be set to black
number_config = merge_dicts_recursively(
self.decimal_number_config,
number_config,

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error

Local variable 'number_config' may be used before it is initialized.
@JasonGrace2282 JasonGrace2282 marked this pull request as draft May 28, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

Axes and its submobjects does not respect passed colors
1 participant