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

Axis tick labels should accept a list of ticks directly #186

Closed numeredev closed 4 months ago

numeredev commented 4 months ago

DESCRIPTION

Is your change request related to a problem? Please describe. Creating custom tick labels from a list of strings is kind of tedious, as that cannot be done in a single line. Everytime one has to create an additional, temporary variable to store the concatenated list into (e.g. via sTicks = sum(tickList{} + "\n") only to then be able to remove the trailing "\n" in a secondary step (e.g. plot ... -set xticklabels=sTicks.sub(1, sTicks.len-1) ...

Describe the solution you'd like The *ticklabels options should accept the list of labels direclty, i.e. xticklabels=tickList{} and yticklabels=ticksTable(:,2)

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

The options already accept lists of strings, but they do not correctly concatenate them. Should be an easy fix, but requires updates to the documentation as well.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST