PGPLOTOptions(3pm)
β¨ PGPLOTOptions(3pm) β setting your PGPLOT options, bestie β¨
okay so this is the manual page for PDL::Graphics::PGPLOTOptions, a lil' slice of User Contributed Perl Documentation that is genuinely so useful once you get it. buckle up π
πΈ NAME πΈ
PDL::Graphics::PGPLOTOptions β setting PGPLOT options π
π¦ SYNOPSIS π¦
use PGPLOTOptions qw('default_options');
π DESCRIPTION π
So this package has one function in it right now (yes, just the one, she's lowkey an only child) and what she does is hand you back PDL::Option objects for the default settings of plot windows and plot commands. β¨
The vibe is that this should eventually be complemented by other functions that could affect it β things like file reading commands and whatever else β but for now it's just her doing her thing. no cap.
π OPTIONS π
Here's the full rundown of every option that gets set in this file, what each one actually does, and what its default value is. we're going through all of them, no skipping, periodt.
π Window specific options π
These options change how your windows look, and they can also change the default settings for making plot axes and stuff. it's giving very main character.
Deviceβ the default PGPLOT device to use. The default value is set to thePGPLOT_DEVenvironment variable if that's set, otherwise it's'?'. π«ΆAxisColourβ the colour you draw axes with. Default value =3(Green) πHardLW,HardCH,HardFont,HardAxisColour,HardColourβ the linewidth, character height, font and axis colour to use on hardcopy devices. The defaults areHardLW=1,HardCH=1.4,HardFont=2(Roman),HardAxisColour=1(Black), andHardColour=1as well. That last one is the default plot colour to use on hardcopy devices. π¨οΈβ¨Axisβ the axis style to use. Peep thePDL::Graphics::PGPLOT::Windowdocumentation for the details. It defaults to'Normal', which is a labelled box. The valid arguments are'Empty','Box','Normal','Axes','Grid','LogX','LogY','LogXY'. π¦AspectRatioβ the aspect ratio of the output device. The default value is device dependent (so like, it depends on your device, bestie, she's not gonna guess).WindowWidthβ the width of the output window, in inches. Defaults to as big as possible. π«§WindowXSizeandWindowYSizeβ these are alternatives toAspectRatioandWindowWidth.WindowNameβ the name of the window. You can retrieve it later usingname(). It defaults to'Window'+ Window ID.NXPanelβ the number of panels in the X-direction. Defaults to1.NYPanelβ the number of panels in the Y-direction. Defaults to1.Justifyβ a boolean value which, if true, causes both axes to be drawn to the same scale. See the PGPLOTpgenv()command for more info. βοΈTightLabelsβ boolean value which, if true, causes axis labels to be pulled slightly closer to the main viewport than usual. That's handy for making multi-panel plots. Undef (the default) is equivalent to0for panels withNYPanels <= 1and1for panels withNYPanels > 1. π§TitleSizeβ the relative size of a plot or image title, compared to other annotations. Defaults to1.0(original behavior) but you can set it to, like,1.5to emphasize graph titles in a multipanel plot. πBorderβ adjust the spacing around the plot. See the documentation inPDL::Graphics::PGPLOT::Windowfor details.CharSizeβ the default charsize for the plot, used when annotating the axes for instance. It defaults to1.PlotPositionβ the position of the plot in normalised coordinates.Eraseβ explicitly erase the plotting surface. This is normally required when making new plots withPlotPosition. π§½
π Plot specific options π
For the moment, see the "PDL::Graphics::PGPLOT::Window" documentation for these. (yes, that's the whole section, she's short and she knows it π)
π set_pgplot_options π
This function lets you set the default PGPLOT options. It's especially useful in the .perldlrc file, since you can do:
use PDL::Graphics::PGPLOTOptions ('set_pgplot_options');
set_pgplot_options('Device' => '/xs', 'HardLW' => 3);
like, for instance, to set the default values. π₯
The main drawback is that the routine is rather unflexible β no synonyms, no case-insensitivity. she's a little rigid, we still love her. π
okay bestie that's the whole page!! every last option accounted for, we ate and left no crumbs π
this was the PGPLOTOptions page from perl v5.38.2, dated 2024-04-10 β tysm for reading, go make some gorgeous plots, mwah π
π¦ where this page comes from
- ubuntu noble: pdl 1:2.085-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms