emilk / emilk/egui_plot

Vertical linked plots get misaligned

Open
#227 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
468
Forks
108
Avg merge
15m
Merged PRs (30d)
3

Description

**Describe the bug**
If you have some vertical linked plots, these can get misaligned if one of the chart has Y axis label with more characters than the others. See picture below as example:
Image
The last plot is misaligned because of its long labels (like "-1.0e18"). As a consequence, also X label is not aligned anymore with other plots.

**To Reproduce**
Steps to reproduce the behavior:
1. Draw two vertical linked plots
2. Make sure that the Y axis labels of the two plots differs significantly (at least a couple of digits)
3. Check the behavior: the two plots will be misaligned

**Expected behavior**
Plots should always be aligned independently of the Y axis labels.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.