PLSLABELFUNC(3plplot)
π NAME π
plslabelfunc β the glow-up where you hand over a function of your own to make custom axis labels, bestie β¨
π¦ SYNOPSIS π¦
plslabelfunc(label_func, label_data)
πΈ DESCRIPTION πΈ
Okay so picture this: the axes are being labelled, and instead of letting PLplot do its default lil thing, you get to be the main character π. This function lets you supply your very own function that hands back the axis label text. Your function gets handed the numeric value of a point on an axis, and it returns a string label to match that value. It's giving "I'll handle the naming, thank you very much" π .
Wanna actually turn these custom labels on? Pass the appropriate arguments to plenv(3plplot), plbox(3plplot), plbox3(3plplot) and similar functions β that's the vibe check that flips it on π₯.
Also lowkey iconic: this function is used in example 19 π.
β¨ ARGUMENTS β¨
label_func(PLLABEL_FUNC_callback(3plplot), input) β your custom label function, the whole star of the show. And bestie, real talk: if you ever wanna go back to the default labelling, just set this toNULLπ«Ά. The parameters your labelling function receives are, in order:axisβ tells you which axis a label is being requested for. The value will be one ofPL_X_AXIS,PL_Y_AXISorPL_Z_AXISπ§valueβ the value along the axis that's being labelled, fr fr πlabel_textβ the string representation of the label value βοΈlengthβ the maximum length in characters allowed forlabel_text(respect the limit, no cap) π«
label_data(PLPointer(3plplot), input) β this one's for passing data through to yourlabel_funcfunction. lil messenger parameter, love that for you π
π AUTHORS π
So many developers have contributed to PLplot over its long history β genuinely a whole squad β and they're all credited at http://plplot.sourceforge.net/credits.php ππ
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php β go read it, iykyk πβ¨
okay that's the whole page, slayed π β¨ This one's from the PLplot API, dated August, 2026 β catch you on the next manpage, bestie, mwah ππ¦π
π¦ where this page comes from
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms