numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
17 stars 5 forks source link

y interval with bar plots #194

Closed numeredev closed 4 months ago

numeredev commented 4 months ago

DESCRIPTION

Is your change request related to a problem? Please describe. The y axis of bar plots should always start at zero, if all values are greater-equal zero or all are lower-equal zero. This does currently not happen, because it follows the approach of usual plots, where no data point shall touch the horizontal boundaries.

Describe the solution you'd like If the user wants to have a bar chart, ensure that the y plot boundaries are either opposite in sign or that the one closest to zero is actual zero before extending the interval by 10% in total.

Describe possible alternatives you've considered A clear and concise description of any alternative solutions or features you've considered, if any.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Should be insertable into the function Plot::fitPlotRanges(...).

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST