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

fix: tracks color #730

Merged
merged 2 commits into from
Oct 27, 2024
Merged

Conversation

orionna319
Copy link
Collaborator

  • issue Total 统计图 格子颜色不对
  • Because there are two special distances, when there is only one, interpolate_color is wrong. The solution is to check whether special_distance2 is greater than length_range.upper(). If it is greater, return color1

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
running-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 2:23pm

Copy link
Owner

@yihong0618 yihong0618 left a comment

Choose a reason for hiding this comment

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

I wonder why here diff is not zero?

@orionna319
Copy link
Collaborator Author

I see that diff is the longest distance minus the shortest distance. Looking at this data, it is indeed not zero. So I don't quite understand what this diff is used for.

def diameter(self) -> float:
        if self.is_valid():
            return self.upper() - self.lower()
        return 0

diff = length_range.diameter()

image

@yihong0618
Copy link
Owner

Thanks will dig it later

@yihong0618 yihong0618 merged commit d1244e4 into yihong0618:master Oct 27, 2024
6 checks passed
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.

2 participants