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

"newline" doesn't work in legend' texts. #726

Closed
alshan opened this issue Mar 22, 2023 · 2 comments
Closed

"newline" doesn't work in legend' texts. #726

alshan opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels

Comments

@alshan
Copy link
Collaborator

alshan commented Mar 22, 2023

val dat = mapOf(
    "x" to listOf(1, 2, 3),
    "cat" to listOf("a", "b", "c"),
)
val p = letsPlot(dat)

p + geomPoint(size = 8) {
    x = "x"
    color = "cat"
} + scaleColorDiscrete(name="line1 \n line2",
    limits = dat["cat"],
    labels = listOf(
        "a \n my a-category"
    )
)

image

@alshan
Copy link
Collaborator Author

alshan commented Mar 22, 2023

see discussion : JetBrains/lets-plot-kotlin#167 (reply in thread)

@OLarionova-HORIS OLarionova-HORIS self-assigned this Mar 23, 2023
@alshan alshan added this to the 2023Q2 milestone Mar 30, 2023
@alshan alshan added the ASAP label Mar 31, 2023
@OLarionova-HORIS
Copy link
Contributor

Added: de3ee14
Example: docs/f-23b/legend_text_multiline.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants