plmaptex.3plplot man page

plmaptex — Draw text at points defined by Shapefile data in world coordinates

Synopsis

plmaptex(mapform, name, dx, dy, just, text, minx, maxx, miny, maxy, plotentry)

Description

As per plmapline(3plplot), however the items are plotted as text in the same way as plptex(3plplot).

Redacted form: plmaptex(mapform, name, dx, dy, just, text, minx, maxx, miny, maxy, plotentry)

This function is used in example 19.

Arguments

mapform (void (*) (PLINT, PLFLT *, PLFLT *), input)
A user supplied function to transform the coordinates given in the shapefile into a plot coordinate system. By using this transform, we can change from a longitude, latitude coordinate to a polar stereographic project, for example. Initially, x[0]..[n-1] are the longitudes and y[0]..y[n-1] are the corresponding latitudes. After the call to mapform(), x[] and y[] should be replaced by the corresponding plot coordinates. If no transform is desired, mapform can be replaced by NULL.
name (const char *, input)
The file name of a set of Shapefile files without the file extension.
dx (PLFLT, input)
Used to define the slope of the texts which is dy/dx.
dy (PLFLT, input)
Used to define the slope of the texts which is dy/dx.
just (PLFLT, input)
Set the justification of the text. The value given will be the fraction of the distance along the string that sits at the given point. 0.0 gives left aligned text, 0.5 gives centralized text and 1.0 gives right aligned text.
text (const char *, input)
A NULL-terminated string of characters to be drawn.
minx (PLFLT, 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. The value of minx must be less than the value of maxx.
maxx (PLFLT, 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, 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. The value of miny must be less than the value of maxy.
maxy (PLFLT, 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, input)
An integer indicating which text string of the Shapefile (zero indexed) will be drawn.

Authors

Many developers (who are credited at http://plplot.sourceforge.net/credits.p…) have contributed to PLplot over its long history.

See Also

PLplot documentation at http://plplot.sourceforge.net/documenta….

Info

August, 2015 PLplot API