Skip to content

g — Graphics

Screen plotting and display settings. For PostScript output and the PostScript language see Graphics & PostScript.

Plotting

Command Action
p Plot current spectrum
pr Plot with new auto-ranges
pn Plot next spectrum
pv Plot previous spectrum
a Add curve to current plot without clearing
an Add next spectrum
av Add previous spectrum

p replaces the current plot; a overlays on it. To plot data (file 0) and fit (file 1) together:

0,1 > p 1        # plot spectrum 1 of both files overlaid

Plot windows

Frida opens several windows at startup (linear-linear, linear-log, …).

Command Action
gw List all open plot windows
g<n> Switch to window n

Axes and ranges

Command Action
gx <min> <max> Set x range
gy <min> <max> Set y range
ga Auto-range both axes
gxa Auto-range x only
gya Auto-range y only
gxl Toggle log x scale (gxl+ to enable, gxl- to disable)
gyl Toggle log y scale
gxf Toggle force-x-into-frame
gyf Toggle force-y-into-frame

gxf / gyf — force into frame

When force-into-frame is on (default: off), Frida expands the axis range to include all data even if a manual range has been set with gx/gy. This prevents data from being silently clipped when you zoom in and then add a new spectrum that lies outside the current range.

Use gxf+ / gyf+ to enable permanently; gxf- / gyf- to disable.

Display options

Command Action
ge Toggle error bars (ge+ to show, ge- to hide)
gnd <n> Maximum number of data points plotted
gnc <n> Number of equidistant base points for curve plotting
gcr Toggle iterative refinement for curve plotting
gsym Print a legend of plot symbols

gnc / gcr — curve plotting quality

When plotting a fit curve, Frida evaluates the curve expression on gnc equidistant points spanning the x range (default: a few hundred). If gcr is enabled, Frida then refines by adding extra evaluation points wherever the curve changes rapidly — useful for sharp peaks or steep edges. Increase gnc or enable gcr if a plotted curve looks jagged.

PostScript output

Command Action
gp Save complete PostScript file
gd Graphic dialog — pass commands directly to gnuplot