PLCPSTRM(3plplot)

πŸ’– PLCPSTRM(3plplot) β€” the plplot girly pops off πŸ’–

okay bestie, come sit with me, because plcpstrm is genuinely one of those functions that sounds boring and then turns out to be iconic. it's part of the PLplot API and it's the little copy-paste goblin of your plotting dreams. let's get into it 🫢


✨ NAME ✨

plcpstrm β€” copy state parameters from the reference stream to the current stream. that's it, that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

plcpstrm(iplsr, flags)

look at her. two arguments. no notes. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is literally so simple: plcpstrm copies state parameters from the reference stream over to the current stream. slay. but there's a lil plot twist β€” it also tells the driver interface to map device coordinates unless flags == 1. yes, flags == 1 specifically, not just "truthy", we're being precise here. πŸ’€

now, the actual main character use case: this function is how you make save files of selected plots (e.g. from the TK driver). obsessed. πŸŽ€ after initializing, you can get a copy of the current plot to the specified device by switching to this stream and issuing a plcpstrm(3plplot) and a plreplot(3plplot), with calls to plbop(3plplot) and pleop(3plplot) as appropriate. the whole friend group, together. 😭

⚠️ heads up bestie: the plot buffer must have previously been enabled. no buffer, no plot, no cap. (good news though β€” it's done automatically by some display drivers, such as X, so sometimes the universe just handles it for you ✨)

Redacted form: plcpstrm(iplsr, flags)

she's also a working girl β€” this function is used in example 1,20. πŸ”₯


πŸ’œ ARGUMENTS πŸ’œ

  • iplsr (PLINT(3plplot), input) β€” number of reference stream. which stream are we copying from, bestie? that one. πŸ“
  • flags (PLBOOL(3plplot), input) β€” if flags is set to true the device coordinates are not copied from the reference to current stream. so true = no coordinate copying. yes, it's a little bit of a chaos gremlin of a flag, but we respect her. πŸ™ˆ

πŸ‘‘ 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. πŸ’–


and that's the whole page, bestie β€” no crumbs left behind. this fine piece of documentation energy is brought to you by the August, 2026 release, filed under PLCPSTRM(3plplot). periodt. πŸ’…βœ¨πŸ“
πŸ“¦ where this page comes from