Skip to content

SP4/SP5: Add a pre-render event that emits plot dimensions #3077

@swharden

Description

@swharden

Add an event inside the render loop that gets evoked just before items are rendered. It should emit a PlotDimensions so users could inject custom code to modify plot objects based on the size and scale of the plot.

An example use case is text whose font size changes based on the zoom level.

This features should be added to ScottPlot 4 and ScottPlot 5.

Thanks GooBad from the Discord #1966 for this idea

GooBad's example:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions