PLMAPTEX(3plplot)
π PLMAPTEX β the PLplot API gworl that draws your text all over a map π
okay bestie, welcome to plmaptex β¨ this is the PLplot API function that takes a bunch of Shapefile data in world coordinates and puts your cute lil text strings right on top of it. it's giving cartography but make it fashion πΊοΈπ
πΈ NAME πΈ
plmaptex β draw text at the points defined by your Shapefile data, all in world coordinates, no cap β¨
π SYNOPSIS π
plmaptex(mapform, name, dx, dy, just, text, minx, maxx, miny, maxy,
plotentry)
π¦ DESCRIPTION π¦
so here's the tea π« β this works exactly like plmapline(3plplot), except the items get plotted as text instead of lines, same energy as plptex(3plplot). literally the same vibe, different font.
the redacted form (iykyk):
plmaptex(mapform, name, dx, dy, just, text, minx, maxx, miny, maxy, plotentry)
and bestie, this function is the main character in example 19 π so if you wanna see it in the wild, that's where to look.
π ARGUMENTS π
mapform(PLMAPFORM_callback(3plplot), input) β a function you supply, bestie, that transforms the coordinates coming out of the shapefile into whatever plot coordinate system you're living in. using this transform we can go from a longitude/latitude coordinate to a polar stereographic project, for example β¨. here's how it works: initially,x[0]..[n-1]are the longitudes andy[0]..y[n-1]are the corresponding latitudes. after the call tomapform(),x[]andy[]should be swapped out for the corresponding plot coordinates. and ngl, if you don't want any transform at all, you can just dropNULLin place ofmapformπname(PLCHAR_VECTOR(3plplot), input) β an ascii character string with the file name of a set of Shapefile files, without the file extension, okay? no extension, periodt πdx(PLFLT(3plplot), input) β used to define the slope of the texts, which isdy/dxβdy(PLFLT(3plplot), input) β used to define the slope of the texts, which isdy/dxβ (yes bestie, same slay, it's a team effort)just(PLFLT(3plplot), input) β sets the justification of the text π―. the value you give is the fraction of the distance along the string that sits at the given point:0.0gives left aligned text,0.5gives centralized text, and1.0gives right aligned text. so basically you're choosing where the string gets pinned πtext(PLCHAR_VECTOR(3plplot), input) β a UTF-8 character string to be drawn π so yes you can absolutely put emoji in there, we love to see it πΈminx(PLFLT(3plplot), input) β the minimum x value to be plotted. this must be in the same units as used by the Shapefile π«Ά. you could use a very large negative number to plot everything, but you can improve performance by limiting the area drawn. the units must match those of the Shapefile projection, which may be for example longitude or distance. and heads up: the value ofminxmust be less than the value ofmaxxβ οΈmaxx(PLFLT(3plplot), input) β the maximum x value to be plotted. you could use a very large number to plot everything, but you can improve performance by limiting the area drawn β¨miny(PLFLT(3plplot), input) β the minimum y value to be plotted. this must be in the same units as used by the Shapefile π«Ά. you could use a very large negative number to plot everything, but you can improve performance by limiting the area drawn. the units must match those of the Shapefile projection, which may be for example latitude or distance. and again: the value ofminymust be less than the value ofmaxyβ οΈmaxy(PLFLT(3plplot), input) β the maximum y value to be plotted. you could use a very large number to plot everything, but you can improve performance by limiting the area drawn β¨plotentry(PLINT(3plplot), input) β an integer saying which text string of the Shapefile (zero indexed!) gets drawn π’. zero indexed is the standard bestie, don't come at me π
π AUTHORS π
Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. legends, every single one of them π«Άπ§
π SEE ALSO π
PLplot documentation at http://plplot.sourceforge.net/documentation.php β go read it, it's iconic πβ¨
lowkey a reminder bestie: thoseminx/maxx/miny/maxybounds fr fr have to be in the Shapefile's own units, andminx<maxxplusminy<maxyis not a suggestion, it's the vibe check π
okay that's the whole manpage, slay π
β this was PLMAPTEX(3plplot) from the PLplot API, dated August, 2026 in the footer π mwah, go plot something gorgeous π¦π
π¦ 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