Skip to content

Legendmarkersize discussion #2655

@isentropic

Description

@isentropic

Do you perhaps think that markersize scaling logic should one day move to Pipeline? If one day we decide that this computation for legendmarkersize and stuff is not preferred or needs some minor tweaks, only Pipeline code would need to be altered. I know that this is again back to square one, but now that we defined some ground rules and have solid arguments about preferring one behavior over another maybe it should be embedded in the pipeline.

I'm hinting into having plot arguments like legendmarkersize, legendmarkerstroke, legendlinewidth

Perhaps this would make legends logic more decoupled and not repetitive in the backends?

To be fair we had around 50 posts in total only from #2616 and #2620 discussing the behavior of legend stuff.

There are of course,
#2650
#2643
Thanks to @daschw who did most of the work to make everything consistent and nice.

I know that this would lead to yet another rearrangement of the logic. But I guess it does not to be done in one PR, we can for now create unused by GR and PyPlot legendmarkersize, legendmarkerstroke, legendlinewidth and try to make it work with Plotly and perhaps unify everything with GR and PyPlot at the end.

Maybe this is somewhat relevant to #2423
After all, if we want to have better legends, we should decouple backends from scaling logic and all.

This is of course just a suggestion, I'm not pushing anything. It would not bring any benefit now, only possibly make our lives and other future maintainers' lives easier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions