PLSCHR(3plplot)

πŸ’… PLSCHR(3plplot) β€” the PLplot API one, bestie

ok so you're in the PLplot API section and the page is literally called PLSCHR(3plplot) β€” yeah it's a mouthful, we deal. anyway, this is the whole glow-up guide to making your text bigger or smaller. slay.


✨ NAME ✨

plschr β€” set character size, no cap πŸŽ€


🌸 SYNOPSIS 🌸

plschr(def, scale)

that's it. two args. you got this. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this one sets up the size of all subsequent characters drawn. every letter that comes after you call this gets the new size. main character energy for your text, fr fr.

the actual height of a character is the product of the default character size and a scaling factor. that's the whole math. multiply, and go. ✨

Redacted form: plschr(def, scale) β€” same thing, just written out plain πŸ’–

This function is used in examples 2, 13, 23, and 24. yes, four whole examples. iconic.


πŸ’œ ARGUMENTS πŸ’œ

  • def (PLFLT(3plplot), input) β€” the default height of a character in millimeters. should be set to zero if the default height is to remain unchanged (so like, if you're happy with what you got, pass a 0 and let it be πŸ™ˆ). For rasterized drivers the dx and dy values specified in plspage(3plplot) are used to convert from mm to pixels β€” and yes, note the different unit systems used, that's not a typo, they're different on purpose. This dpi aware scaling is not implemented for all drivers yet, so don't come for me if your driver hasn't caught up πŸ’€
  • scale (PLFLT(3plplot), input) β€” the scale factor to be applied to default to get actual character height. so like, the multiplier. the vibe adjuster. 2 = big text, 0.5 = tiny text, do your thing. πŸ”₯

πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. legends, honestly. all of them. 🫑


⭐ SEE ALSO ⭐

PLplot documentation at http://plplot.sourceforge.net/documentation.php. go read it, iykyk. πŸ“š


πŸ’€ reminder bestie: passing zero for def keeps the default height unchanged, and the dpi aware mmβ†’pixel scaling is not implemented for all drivers yet. don't say i didn't warn you.

so yeah, that's plschr. go forth and resize. 🧚

August, 2026 β€” PLSCHR(3plplot), fresh off the PLplot API press, mwah πŸ’‹πŸŒ·

πŸ“¦ where this page comes from