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

Make line width equal to point's stroke width #798

Merged
merged 9 commits into from
Jun 28, 2023
Merged

Conversation

OLarionova-HORIS
Copy link
Collaborator

… pointrange and lollipop.

GeomKind.Q_Q,
GeomKind.Q_Q_2 -> {
color = inheritedColors.lineColor()
fill = Colors.withOpacity(inheritedColors.lineColor(), 0.1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't want to use colors with opacity.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to fill = background color

GeomKind.LOLLIPOP -> {
color = inheritedColors.lineColor()
fill = Colors.withOpacity(inheritedColors.lineColor(), 0.1)
size = 2.0
lineWidth = 1.0 // line width and stroke for point
}

GeomKind.SMOOTH -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is bad: alpha = 1.5


                GeomKind.SMOOTH -> {
                    color = Color.MAGENTA

We don't want to use constant values no longer. Should be a field in BASE (but still get rid of the BASE).

@@ -105,28 +106,40 @@ internal class DefaultGeomTheme private constructor(
color = inheritedColors.lineColor()
fill = inheritedColors.lineColor()
alpha = 0.1
size = 0.2
size = 0.24
Copy link
Collaborator

Choose a reason for hiding this comment

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

Extract the experimental multiplier (1.2) to a val .

Make line widths thicker.
Update notebooks.
@alshan alshan merged commit 5a0f300 into master Jun 28, 2023
@OLarionova-HORIS OLarionova-HORIS deleted the stroke-and-linewidth branch July 7, 2023 08:08
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.

None yet

2 participants