Skip to content

Axis: define data area size / layout when colorbar is in use #1349

@swharden

Description

@swharden

When placing multiple plots on a window it's useful to have their data areas align. It's not easy to figure-out how to do this, and having a colorbar may make it more complicated.

  • figure out how to solve the layout matching / colorbar problem
  • add functionality to make this easier (a Plot.Padding() method?)
  • consider how to make this more discoverable (add a FAQ page about layout control?)

EDIT: Solution was to improve functionality of the existing Plot.MatchLayout()

Original Issue (#1338)

image image

Originally posted by dhgigisoave October 8, 2021
I have two wpfplot in same window one above other, and I would like to align them precisely ... the main problem is the width of ColorBar, I can use SetSizeLimit to align the left edge accurately, but the right edge will be empirical, if I don't know that size.

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