mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
The old code didn't consider that labels can peak out of horizontal axes if labels are under ticks. This commit takes this into account. However, it must be noted that this is only heuristics: Before setting the size of the axes, the actual minimum and maximum label are not known, because we round to "nice" numbers. But the size of the axis can only be set after knowing the overhang, leading to a circular dependency. Therefore, the code currently simply uses the minimum and maximum value of the data, hoping that the "nice" values will not format to something significantly larger. We could do a multi-pass scheme, but let's not for now. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
barseries.cpp | ||
barseries.h | ||
boxseries.cpp | ||
boxseries.h | ||
chartlistmodel.cpp | ||
chartlistmodel.h | ||
CMakeLists.txt | ||
informationbox.cpp | ||
informationbox.h | ||
legend.cpp | ||
legend.h | ||
pieseries.cpp | ||
pieseries.h | ||
scatterseries.cpp | ||
scatterseries.h | ||
statsaxis.cpp | ||
statsaxis.h | ||
statscolors.cpp | ||
statscolors.h | ||
statsgrid.cpp | ||
statsgrid.h | ||
statshelper.h | ||
statsseries.cpp | ||
statsseries.h | ||
statsstate.cpp | ||
statsstate.h | ||
statstranslations.h | ||
statsvariables.cpp | ||
statsvariables.h | ||
statsview.cpp | ||
statsview.h | ||
zvalues.h |