Skip to content

Document pixel and chart-space radii for circles - #751

Open
AmanBoronbaev wants to merge 1 commit into
plotters-rs:masterfrom
AmanBoronbaev:document-circle-radius-units
Open

AmanBoronbaev wants to merge 1 commit into
plotters-rs:masterfrom
AmanBoronbaev:document-circle-radius-units

Conversation

@AmanBoronbaev

Copy link
Copy Markdown

Refs #699.

Explain how Circle locates its center in chart coordinates and sizes its radius in pixels or relative to the drawing area. Add a runnable PathElement example for a radius expressed in chart units, including how unequal axis scales affect the outline.

I ran the plotters crate's doctests and library tests. In a separate SVG check, doubling both axis ranges kept a Circle radius of 7 pixels and changed the example outline's width from 74 to 38 pixels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant