numere-org / NumeRe

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

'hist' should accept plotting options directly #13

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Is your change request related to a problem? Please describe. If one wants to change plotting options for hist, one has to use the extra code plot -set OPTIONS before, which is kind of annoying.

Describe the solution you'd like At the moment it is required to set plotting options separately from hist. Change that, so that hist does accept them directly.

Describe possible alternatives you've considered One could overwrite hist with a plugin, but that would require the user to actively resolving this issue.

Additional context Migrated from here: https://sourceforge.net/p/numere/tickets/762/

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Can directly be included within void plugin_histogram(std::string& sCmd), where we shall call void PlotData::setParams(const std::string& __sCmd, int nType = ALL) to update the plotting parameter for this histogram.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST