PLGSPA(3plplot)

✨ PLGSPA ✨

okay so welcome to the PLplot API bestie, and buckle up because this page is short but lowkey important πŸ’…

πŸ’– NAME πŸ’–

plgspa β€” get current subpage parameters (yes queen, it gets them, it doesn't set them) πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

plgspa(xmin, xmax, ymin, ymax)

🌸 DESCRIPTION 🌸

So basically plgspa grabs the size of the current subpage, measured in millimeters, counting from the bottom left hand corner of the output device page or screen. No cap, that's the whole vibe. πŸ“

The way this is useful is that you can pair it up with plsvpa(3plplot) to set the size of a viewport in absolute coordinates (millimeters). Iconic teamwork fr fr 🫢

Redacted form: plgspa(xmin, xmax, ymin, ymax)

This function shows up in example 23 β€” go look, it's giving main character energy πŸ‘‘

πŸŽ€ ARGUMENTS πŸŽ€

  • xmin (PLFLT_NC_SCALAR(3plplot), output) β€” this one comes back with the position of the left hand edge of the subpage, in millimeters. ⬅️
  • xmax (PLFLT_NC_SCALAR(3plplot), output) β€” returned value of the position of the right hand edge of the subpage, in millimeters. ➑️
  • ymin (PLFLT_NC_SCALAR(3plplot), output) β€” returned value of the position of the bottom edge of the subpage, in millimeters. ⬇️
  • ymax (PLFLT_NC_SCALAR(3plplot), output) β€” returned value of the position of the top edge of the subpage, in millimeters. ⬆️
heads up bestie: all four are output arguments, so like... don't come in expecting to hand them values. They hand you values. That's the assignment πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. Literally legends, every single one πŸ§šβ€β™€οΈπŸ’œ

🌈 SEE ALSO 🌈

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


and that's the page!! πŸŽ€ source/version: PLplot API, page date August, 2026, filed under PLGSPA(3plplot) β€” slay, go plot something gorgeous πŸ’…πŸŒŸ

πŸ“¦ where this page comes from