PLGDRAWMODE(3plplot)

πŸ’… PLGDRAWMODE (3plplot) πŸ’…

okay bestie, welcome to the PLplot API page for plgdrawmode β€” she's short, she's sweet, and she's lowkey mysterious πŸŽ€


✨ SYNOPSIS ✨

plgdrawmode()

like… that's it. no args. she takes nothing and she gives you a vibe (technically a PLINT, but we'll get there πŸ¦‹)


🌸 DESCRIPTION 🌸

So plgdrawmode() gets you the drawing mode. Simple concept, iconic execution πŸ’…

but here's the tea, bestie β€” and this is important, no cap β€” only one device driver currently supports this at the moment, and that's cairo. Just cairo. That's the whole list. One (1) driver. 🫢

For that one glorious cairo case, the PLINT value this function hands back is one of these four:

  • PL_DRAWMODE_DEFAULT β€” the default vibe ✨
  • PL_DRAWMODE_REPLACE β€” replace mode, she's swapping things out
  • PL_DRAWMODE_XOR β€” xor mode, doing her little bitwise thing πŸ”₯
  • PL_DRAWMODE_UNKNOWN β€” we literally don't know, and that's valid

And for the rest of the device drivers? This function returns PL_DRAWMODE_UNKNOWN. Every single one of them. Not a fan of that for them, but okay 😭

Also see plsdrawmode(3plplot) β€” that's the setter, the one who actually sets the mode. plgdrawmode just tells you what's up. iykyk 🧚

Redacted form: plgdrawmode() β€” yes, the redacted form is literally identical, she's not hiding anything πŸ’€

This function is used in example 34. go look at example 34, it ate πŸ‘‘


πŸ‘‘ AUTHORS πŸ‘‘

Many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. fr fr, "many developers," over a long history β€” that's main character energy for an entire project 🌈⭐


πŸ’– SEE ALSO πŸ’–


and that's the page!! πŸ¦‹ source/version: the PLplot API, dated August, 2026 β€” mwah, drink water, go check your draw mode, periodt πŸ’œπŸŽ€

πŸ“¦ where this page comes from