mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: use dynamic distances between labels on chart
Use variable intervals for printing temperature and heart beat labels. Obviously, so that the labels don't become sparse on zooming, but also to make them not too crowded on mobile / small screens. This doesn't work for depth labels, because these labels use data provided from the profile.c core that doesn't know about the size of the chart. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5c83fcd647
commit
efc89b9d9c
3 changed files with 23 additions and 8 deletions
|
|
@ -45,6 +45,9 @@ public:
|
|||
double width() const; // only for vertical axes
|
||||
double height() const; // only for horizontal axes
|
||||
|
||||
// The minimum space between two labels on the plot in seconds
|
||||
int getMinLabelDistance(const DiveCartesianAxis &timeAxis) const;
|
||||
|
||||
private:
|
||||
Position position;
|
||||
bool inverted; // Top-to-bottom or right-to-left axis.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue