Re: how to draw array labels

IOhannes m zmölnig <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Am 21. September 2024 17:24:59 MESZ schrieb Patko nytkophilus <[email protected]>:
>
>
>> Le 21 sept. 2024 à 16:05, IOhannes m zmölnig <[email protected]> a écrit :
>> 
>> 
>> I think it is `xlabel` (without the plural).
>> 
>
>Yes it's seems there is a typo in help patch canvas-help.pd, it's 'xlabel' and not 'xlabels' as specified.


Which reminds me, that only recently (preparing courses) I wished for a way to specify my labels more freely. 
I think most (all) of my wishes could be fulfilled if there was a way to specify the label explicitly. 
Eg drawing a spectrum, I'd like to be able to show
- on the x-axis some label relating to the frequency (rather than the fft-bin) 
- on the y-axis, the bottom of the graph corresponds to "-inf" dB, rather than "-100".

Probably something like this could be used:
"xlabels 0 0 0 1024 24000 2048 48000, ylabels 0 0dB, -100 -inf"
So rather than just specifying the value on the axis that should be labelled with the literal value, I'd like to specify  (value, label) pairs, where the <label> will appear at the position of the <value>.
<label> could be a symbol or a float. 
I chose the plural variant ("xlabels" rather than "xlabel"), because it fits, but probably the two are too similar (and this confusing).


mfg.sfg.jfd
IOhannes
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/WNTODFITPD4I3TNV23AL574YEIILFSR4/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.