PLENV(3plplot)
π PLENV β set up a standard window and draw a box π
okay bestie, welcome to PLENV(3plplot), which lives in the PLplot API and is genuinely one of the most "just set it up for me" functions in the whole library. it's giving main character energy for plot setup, fr fr. π
β¨ NAME β¨
plenv β set up a standard window and draw a box. that's it, that's the vibe. π¦
πΈ SYNOPSIS πΈ
plenv(xmin, xmax, ymin, ymax, just, axis)
π DESCRIPTION π
so here's the tea: plenv sets up your plotter environment for simple graphs by calling pladv(3plplot) and then setting up the viewport and window to sensible default values. it literally does the boring part for you. π
and it leaves a standard margin around most graphs β a left-hand margin of eight character heights, and a margin around the other three sides of five character heights β so your axis labels and your title have somewhere cute to sit. no cap, that's the whole point of the margin. π
when these defaults are not the move for you, bestie, go use the individual routines instead, iykyk:
plvpas(3plplot),plvpor(3plplot), orplvasp(3plplot)for setting up the viewportplwind(3plplot)for defining the windowplbox(3plplot)for drawing the box
lowkey the redacted form is just plenv(xmin, xmax, ymin, ymax, just, axis) β same thing, no mystery. π
this function is used in example 1,3,9,13,14,19-22,29. icon behavior honestly. π
π ARGUMENTS π
xmin(PLFLT(3plplot), input) β the value of x at the left-hand edge of the window, in world coordinates. left edge, bestie. β¬ οΈxmax(PLFLT(3plplot), input) β the value of x at the right-hand edge of the window, in world coordinates. β‘οΈymin(PLFLT(3plplot), input) β the value of y at the bottom edge of the window, in world coordinates. β¬οΈymax(PLFLT(3plplot), input) β the value of y at the top edge of the window, in world coordinates. β¬οΈ
π« just β how the axes get scaled π«
it's a PLINT(3plplot) input, and it controls how the axes will be scaled. pick your fighter:
-1β the scales will not be set, so you have to set up the scale before callingplenv(3plplot), usingplsvpa(3plplot),plvasp(3plplot)or other. you're on your own, girlboss. π«‘0β the x and y axes are scaled independently to use as much of the screen as possible. maximal screen usage, periodt.1β the scales of the x and y axes are made equal.2β the axis of the x and y axes are made equal, and the plot box will be square. square box supremacy π²β¨
π₯ axis β what gets drawn around the plot π₯
also a PLINT(3plplot) input. this one is the big one, so buckle up bestie, we're going through every single value π
the base numbers π
-2β draw no box, no tick marks, no numeric tick labels, no axes. literally nothing. a ghost plot. π»-1β draw box only.0β draw box, ticks, and numeric tick labels.1β same as0, and also draw coordinate axes at x=0 and y=0.2β same as0, and also draw a grid at major tick positions in both coordinates.3β same as0, and also draw a grid at minor tick positions in both coordinates.
the 10s: logarithmic x tick marks π
10β same as0except logarithmic x tick marks. (the x data have to be converted to logarithms separately.)11β same as1except logarithmic x tick marks. (the x data have to be converted to logarithms separately.)12β same as2except logarithmic x tick marks. (the x data have to be converted to logarithms separately.)13β same as3except logarithmic x tick marks. (the x data have to be converted to logarithms separately.)
the 20s: logarithmic y tick marks π¦
20β same as0except logarithmic y tick marks. (the y data have to be converted to logarithms separately.)21β same as1except logarithmic y tick marks. (the y data have to be converted to logarithms separately.)22β same as2except logarithmic y tick marks. (the y data have to be converted to logarithms separately.)23β same as3except logarithmic y tick marks. (the y data have to be converted to logarithms separately.)
the 30s: logarithmic x and y tick marks π
30β same as0except logarithmic x and y tick marks. (the x and y data have to be converted to logarithms separately.)31β same as1except logarithmic x and y tick marks. (the x and y data have to be converted to logarithms separately.)32β same as2except logarithmic x and y tick marks. (the x and y data have to be converted to logarithms separately.)33β same as3except logarithmic x and y tick marks. (the x and y data have to be converted to logarithms separately.)
the 40s: date / time x labels π
40β same as0except date / time x labels.41β same as1except date / time x labels.42β same as2except date / time x labels.43β same as3except date / time x labels.
the 50s: date / time y labels πΈ
50β same as0except date / time y labels.51β same as1except date / time y labels.52β same as2except date / time y labels.53β same as3except date / time y labels.
the 60s: date / time x and y labels π
60β same as0except date / time x and y labels.61β same as1except date / time x and y labels.62β same as2except date / time x and y labels.63β same as3except date / time x and y labels.
the 70s: custom x and y labels π§
70β same as0except custom x and y labels.71β same as1except custom x and y labels.72β same as2except custom x and y labels.73β same as3except custom x and y labels.
okay and just so we're clear on the log ones: you convert the data to logarithms separately. plenv is not doing that for you, bestie, it's not a mind reader. π
π AUTHORS π
many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. legends only, honestly. π«Ά
β SEE ALSO β
PLplot documentation at http://plplot.sourceforge.net/documentation.php.
and that's the page, bestie! this one's from source/version PLENV(3plplot), dated August, 2026 β go forth and set up your environment π πβ¨
π¦ 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