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

Lollipop Plot #759

Merged
merged 54 commits into from
Apr 21, 2023
Merged

Lollipop Plot #759

merged 54 commits into from
Apr 21, 2023

Conversation

ASmirnov-HORIS
Copy link
Collaborator

No description provided.

@@ -10,5 +10,5 @@ import jetbrains.datalore.plot.base.Aes
import jetbrains.datalore.plot.base.DataPointAesthetics

interface WithHeight {
fun heightSpan(p: DataPointAesthetics, coordAes: Aes<Double>, resolution: Double, isDiscrete: Boolean):DoubleSpan?
fun heightSpan(p: DataPointAesthetics, coordAes: Aes<Double>, resolution: Double, isDiscrete: Boolean, isYOrientation: Boolean): DoubleSpan?
Copy link
Collaborator

Choose a reason for hiding this comment

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

coordAes takes in account isYOrientation. Why do you need an extra parameter?

import kotlin.math.*

class LollipopGeom : GeomBase(), WithWidth, WithHeight {
var fatten: Double = DEF_FATTEN
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's try to replace var -> val.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This might be problematic so let it be I guess.


See: [example notebook](https://nbviewer.org/github/JetBrains/lets-plot/blob/master/docs/f-23b/lollipop_plot.ipynb).


- `stroke` aesthetic for `geom_point()`, `geom_jitter()`, `geom_qq()`, `geom_qq2()`, `geom_pointrange()`, `geom_dotplot()`, `geom_ydotplot()` and `outlier_stroke` parameter for `geom_boxplot()`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also linewidth.

@ASmirnov-HORIS ASmirnov-HORIS marked this pull request as ready for review April 14, 2023 16:52
@alshan alshan merged commit 45857e0 into master Apr 21, 2023
@ASmirnov-HORIS ASmirnov-HORIS deleted the lollipop branch April 24, 2023 10:35
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