STILTS-PLOTHIST(1)
π STILTS-PLOTHIST(1) π
okay so bestie, you've wandered into the Stilts commands part of the manual β this is the page for stilts-plothist, and it's a lot, but we're gonna get through it together, fr fr π
πΈ NAME πΈ
stilts-plothist β Old-style Histogram β¨
π¦ SYNOPSIS π¦
lowkey the whole invocation in one go, no cap:
stilts plothist [xpix=<int-value>] [ypix=<int-value>]
[font=dialog|serif|...] [fontsize=<int-value>]
[fontstyle=plain|bold|italic|bold-italic]
[legend=true|false] [title=<value>]
[omode=swing|out|cgi|discard|auto] [out=<out-file>]
[ofmt=png|png-transp|gif|jpeg|pdf|svg|eps|eps-gzip]
[inN=<table>] [ifmtN=<in-format>] [istreamN=true|false]
[cmdN=<cmds>] [xdataN=<expr>] [xlo=<float-value>]
[xhi=<float-value>] [xlog=true|false] [xflip=true|false]
[xlabel=<value>] [subsetNS=<expr>] [nameNS=<value>]
[colourNS=<rrggbb>|red|blue|...]
[barstyleNS=fill|open|...] [linewidthNS=<int-value>]
[dashNS=dot|dash|...|<a,b,...>] [grid=true|false]
[antialias=true|false] [sequence=<suffix>,<suffix>,...]
[ylo=<float-value>] [yhi=<float-value>]
[ylog=true|false] [ylabel=<value>] [weightN=<value>]
[binwidth=<float-value>] [norm=true|false]
[cumulative=true|false] [binbase=<float-value>]
π DESCRIPTION π
okay first things first, heads up: this section describes a deprecated command π« . It still works β it's not broken, it's just... an elder. But you are advised to use the way more capable plot2plane instead. It's giving "your cool older cousin still lets you in the house". iykyk.
So. plothist performs histogram plots π, and it sends the output either to a graphical display or writes it to a file in some vector or bitmapped graphics format. You have to supply it with values for one or more sets of X values, in terms of table columns, and then it bins the data and draws bars appropriately. β¨
Plot bounds, bin widths etc may be supplied explicitly by you, but if you don't, they'll be calculated from the data and set from defaults as appropriate. The way it just figures it out? Obsessed. π₯°
There are many options available to configure the detailed appearance of the plot, but in its simplest form invocation is quite straightforward. And if you want more discussion on use of the plotting commands, see SUN/256. π
β¨ OPTIONS β¨
every single one, bestie. we do not skip. π
xpix=<int-value>β The width of the output graphic in pixels. πypix=<int-value>β The height of the output graphic in pixels. πfont=dialog|serif|...β Determines the font that will be used for textual annotation of the plot, including axes etc. At least the following fonts will be available:serifsansserifmonospaceddialogdialoginput
as well as a range of system-dependent fonts, possibly including
dejavu_sansdejavu_sans_monodejavu_serif
fontsize=<int-value>β Sets the font size used for plot annotations. π€fontstyle=plain|bold|italic|bold-italicβ Gives a style in which the font is to be applied for plot annotations. Options areplain,bold,italicandbold-italic.legend=true|falseβ Determines whether a legend shows which plotting style is used for each data set. Defaults totrueif there is more than one set,falseotherwise. πΊοΈtitle=<value>β A one-line title to display at the top of the plot. πomode=swing|out|cgi|discard|autoβ Determines how the drawn plot will be output, seeSUN/256. πswing: Plot will be displayed in a window on the screen. This plot is "live"; it can be resized and (except for old-style plots) navigated around with mouse actions in the same way as plots in TOPCAT. π±οΈout: Plot will be written to a file given byoutusing the graphics format given byofmt.cgi: Plot will be written in a way suitable for CGI use direct from a web server. The output is in the graphics format given byofmt, preceded by a suitable "Content-type" declaration. πdiscard: Plot is drawn, but discarded. There is no output. πauto: Behaves asswingoroutmode depending on presence ofoutparameter.
out=<out-file>β The location of the output file. This is usually a filename to write to. If it is equal to the special value-the output will be written to standard output. π€ofmt=png|png-transp|gif|jpeg|pdf|svg|eps|eps-gzipβ Graphics format in which the plot is written to the output file, seeSUN/256. One of: π¨png: PNGpng-transp: PNG with transparent backgroundgif: GIFjpeg: JPEGpdf: Portable Document Formatsvg: Scalable Vector Graphicseps: Encapsulated PostScripteps-gzip: Gzipped Encapsulated PostScript
May default to a sensible value depending on the filename given by out. β¨
inN=<table>β The location of the input table. This may take one of the following forms:- A filename.
- A URL. π
- The special value
-, meaning standard input. In this case the input format must be given explicitly using theifmtNparameter. Note that not all formats can be streamed in this way. - A scheme specification of the form
:<scheme-name>:<scheme-args>. - A system command line with either a
"<"character at the start, or a"|"character at the end ("<syscmd"or"syscmd|"). This executes the given pipeline and reads from its standard output. This will probably only work on unix-like systems. π§
In any case, compressed data in one of the supported compression formats (gzip, Unix compress or bzip2) will be decompressed transparently. π
ifmtN=<in-format>β Specifies the format of the input table as specified by parameterinN. The known formats are listed inSUN/256. This flag can be used if you know what format your table is in. If it has the special value(auto)(the default), then an attempt will be made to detect the format of the table automatically. This cannot always be done correctly however, in which case the program will exit with an error explaining which formats were attempted. This parameter is ignored for scheme-specified tables. πistreamN=true|falseβ If settrue, the input table specified by theinNparameter will be read as a stream. It is necessary to give theifmtNparameter in this case. Depending on the required operations and processing mode, this may cause the read to fail π (sometimes it is necessary to read the table more than once). It is not normally necessary to set this flag; in most cases the data will be streamed automatically if that is the best thing to do. However it can sometimes result in less resource usage when processing large files in certain formats (such as VOTable). This parameter is ignored for scheme-specified tables.cmdN=<cmds>β Specifies processing to be performed on the table. The value of this parameter is one or more of the filter commands described inSUN/256. If more than one is given, they must be separated by semicolon characters (";"). This parameter can be repeated multiple times on the same command line to build up a list of processing steps. The sequence of commands given in this way defines the processing pipeline which is performed on the table. π₯
Commands may alternatively be supplied in an external file, by using the indirection character '@'. Thus a value of "@filename" causes the file filename to be read for a list of filter commands to execute. The commands in the file may be separated by newline characters and/or semicolons, and lines which are blank or which start with a '#' character are ignored. A backslash character '\' at the end of a line joins it with the following line. π
xdataN=<expr>β Gives a column name or expression for the x axis data for table N. The expression is a numeric algebraic expression based on column names as described inSUN/256. πxlo=<float-value>β The lower limit for the plotted x axis. If not set, a value will be chosen which is low enough to accommodate all the data.xhi=<float-value>β The upper limit for the plotted x axis. If not set, a value will be chosen which is high enough to accommodate all the data.xlog=true|falseβ Iffalse(the default), the scale on the x axis is linear; iftrueit is logarithmic. πxflip=true|falseβ If settrue, the scale on the x axis will increase in the opposite sense from usual (e.g. right to left rather than left to right). πxlabel=<value>β Specifies a label to be used for annotating axis x. A default value based on the plotted data will be used if no value is supplied for this parameter.subsetNS=<expr>β Gives the selection criterion for the subset labelled"NS". This is a boolean expression which may be the name of a boolean-valued column or any other boolean-valued expression. Rows for which the expression evaluatestruewill be included in the subset, and those for which it evaluatesfalsewill not. βοΈnameNS=<value>β Provides a name to use for a subset with the symbolic label NS. This name will be used for display in the legend, if one is displayed. π·οΈcolourNS=<rrggbb>|red|blue|...β Defines the colour of bars plotted for data set NS. The value may be a 6-digit hexadecimal number giving red, green and blue intensities, e.g."ff00ff"for magenta. Alternatively it may be the name of one of the pre-defined colours. These are currentlyred,blue,green,grey,magenta,cyan,orange,pink,yellow,blackandwhite. π¨
For most purposes, either the American or the British spelling is accepted for this parameter name. πΊπΈπ¬π§
barstyleNS=fill|open|...β Defines how histogram bars will be drawn for dataset NS. The options are:fillopentopssemisemitopsspikesfilloveropenover
linewidthNS=<int-value>β Defines the line width for lines drawn as part of the bars for dataset NS. Only certain bar styles are affected by the line width. βοΈ
dashNS=dot|dash|...|<a,b,...>β This sets the dashing pattern for lines drawn for dataset NS. To make a dashed line, the value can be one of the named dash types:dotdashlongdashdotdash
or it can be a comma-separated string of on/off length values like "4,2,8,2". A null value means a solid line. Only certain bar styles are affected by the dash pattern. π
grid=true|falseβ Iftrue, grid lines are drawn on the plot. Iffalse, they're absent. simple as that β¨antialias=true|falseβ Controls whether lines are drawn using antialiasing, where applicable. If lines are drawn to a bitmapped-type graphics output format, setting this parameter totruesmooths the lines out by using gradations of colour for diagonal lines, and setting itfalsesimply sets each pixel in the line to on or off. For vector-type graphics output formats, or for cases in which no diagonal lines are drawn, the setting of this parameter has no effect. Setting ittruemay slow the plot down slightly. worth it for the smoothness tho πsequence=<suffix>,<suffix>,...β Can be used to control the sequence in which different datasets and subsets are plotted. This will affect which symbols are plotted on top of, and so potentially obscure, which other ones. The value of this parameter is a comma-separated list of the"NS"suffixes which appear on the parameters which apply to subsets. The sets which are named will be plotted in order, so the first-named one will be at the bottom (most likely to be obscured). Note that if this parameter is supplied, then only those sets which are named will be plotted, so this parameter may also be used to restrict which plots appear (though it may not be the most efficient way of doing this). If no explicit value is supplied for this parameter, sets will be plotted in some sequence decided by STILTS (probably alphabetic by suffix). stacking order matters, bestie πylo=<float-value>β Lower bound for Y axis. the floor, literally π¦yhi=<float-value>β Upper bound for Y axis. Autogenerated from the data if not supplied. the ceiling, if you will βylog=true|falseβ Whether to use a logarithmic scale for the Y axis. log life πylabel=<value>β Specifies a label for annotating the vertical axis. A default value based on the type of histogram will be used if no value is supplied for this parameter. name your axis, give it identity πweightN=<value>β Defines a weighting for each point accumulated to determine the height of plotted bars. If this parameter has a value other than1(the default) then instead of simply accumulating the number of points per bin to determine bar height, the bar height will be the sum over the weighting expression for the points in each bin. Note that with weighting, the figure drawn is no longer strictly speaking a histogram. not me changing the whole definition of a histogram π
When weighted, bars can be of negative height. An anomaly of the plot as currently implemented is that the Y axis never descends below zero, so any such bars are currently invisible. This may be amended in a future release (contact the author to lobby for such an amendment). so if you need those negative bars visible, go bother Mark π
binwidth=<float-value>β Defines the width on the X axis of histogram bins. If the X axis is logarithmic, then this is a multiplicative value. multiplicative?? she's mathing π§norm=true|falseβ Determines whether bin counts are normalised. Iftrue, histogram bars are scaled such that summed height of all bars over the whole dataset is equal to one. Otherwise (the default), no scaling is done. normalize her, she's iconic πcumulative=true|falseβ Determines whether histograms are cumulative. Whenfalse(the default), the height of each bar is determined by counting the number of points which fall into the range on the X axis that it covers. Whentrue, the height is determined by counting all the points between negative infinity and the upper bound of the range on the X axis that it covers. running total vibes πbinbase=<float-value>β Adjusts the offset of the bins. By default zero (or one for logarithmic X axis) is a boundary between bins; other boundaries are defined by this and the bin width. If this value is adjusted, the lower bound of one of the bins will be set to this value, so all the bins move along by the corresponding distance. shift the whole bin situation π
π SEE ALSO π
stilts(1)- If the package
stilts-docis installed, the full documentationSUN/256is available in HTML format:file:///usr/share/doc/stilts/sun256/index.html
π¦ VERSION π¦
STILTS version 3.5.4-debian- This is the Debian version of Stilts, which lack the support of some file formats and network protocols. For differences see
file:///usr/share/doc/stilts/README.Debian
π AUTHOR π
- Mark Taylor (Bristol University)
okay that's the whole page, bestie! The footer is giving Mar 2017 / STILTS-PLOTHIST(1), and the version is STILTS version 3.5.4-debian. bye bye, go plot something iconic! π β¨π¦
π¦ where this page comes from
- ubuntu stonking: stilts 3.5.4-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms