Skip to content

[BUG] Wrong marker and line sizes in legend in GR #4621

@AsgerHB

Description

@AsgerHB

Details

Manually setting marker and line sizes, and then setting plot size, causes the legend to draw marker at the wrong size. In this example, it becomes impossible to see the marker. (I find myself rescaling them manually for every figure I export)

plot([1:10], rand(1:10, 10),
    size=(300, 300),
    markersize=8,
    marker=:star,
    linewidth=5,
    label="y")

image

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: 1.38.0
Backend version (]st -m <backend(s)>): GR v0.71.2
Output of versioninfo():

Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, tigerlake)
  Threads: 4 on 8 virtual cores
Environment:
  JULIA_REVISE_WORKER_ONLY = 1```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions