fix: default to changing y axis when changing data aspect
This commit is contained in:
parent
91b2d5da6f
commit
05d68d26bd
1 changed files with 3 additions and 1 deletions
|
@ -831,8 +831,10 @@ impl Plot {
|
|||
if let Some(linked_axes) = &linked_axes {
|
||||
let change_x = linked_axes.link_y && !linked_axes.link_x;
|
||||
transform.set_aspect_by_changing_axis(data_aspect as f64, change_x);
|
||||
} else {
|
||||
} else if auto_bounds.any() {
|
||||
transform.set_aspect_by_expanding(data_aspect as f64);
|
||||
} else {
|
||||
transform.set_aspect_by_changing_axis(data_aspect as f64, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue