Skip to content

Legend box too small for long text and typo in plot-legend-box #25

@Odud

Description

@Odud

The legend box is too small for a string such as "JUPITER EMERGING EUROPEAN OPPS ". I have bodged this by changing the 0.7 factor in the statement that calculates $width to 0.77. This works for the above example but since I don't understand the calculation I don't know if this is correct for all string lengths.

my $width = 10 + 0.77 * $.legend-font-size * (([max] @.legends>>.chars) + 2);

Also there is a typo on line 589 of Plot.pm

style => 'stroke: black; **strok**-width: 0.5; fill: none',

Apologies that I don't know enough about git to be able to do a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions