/usr/share/slsh/local-packages/help/slxfig.hlp is in slang-xfig 0.2.0~.35-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | xfig_clip_polyline2d
SYNOPSIS
Clip a list of 2d line segments
USAGE
list = xfig_clip_polyline2d (x[], y[], xmin, xmax, ymin, ymax)
DESCRIPTION
This function clips a polyline composed individual line segments that run from
(x_i,y_i) to (x_{i+1},y_{i+1}) at the boundaries of the window defined by the
`xmin', `xmax', `ymin', and `ymax' parameters. The result
is returned as an xfig polyline object.
NOTES
This function should be used if the order of the line segments does not matter.
Otherwise, the `xfig_clip_polygon2d' function should be used.
SEE ALSO
xfig_clip_polygon2d, xfig_new_polyline_list
--------------------------------------------------------------
xfig_set_output_driver
SYNOPSIS
Associate an output driver to a file extension
USAGE
xfig_set_output_driver (String_Type ext, String_Type cmd)
DESCRIPTION
This may may be used to define the command that runs to created the specified
output format (dictated by the extension) from the corresponding .fig file.
The `ext' parameter specifies the filename extension and `cmd' is
the shell command that will be used to generate the file.
The `cmd' may contain the following format descriptors that will be
replace by the corresponding objects before being passed to the shell:
%I Input .fig file
%O Output file
%P paper-size
%B basename of the file
EXAMPLE
The default driver for postscript output is given by:
xfig_set_output_driver ("ps", "fig2dev -L ps -c -z %P %I %O");
The `ps2ps' command may result in a smaller file size at a slight cost
of resolution. It may be used as follows:
xfig_set_output_driver ("ps", "fig2dev -L ps -c -z %P %I %B-tmp.ps"
+ ";ps2ps %B-tmp.ps %O; rm -f %B-tmp.ps");
SEE ALSO
xfig_set_paper_size
--------------------------------------------------------------
xfig_render_object
SYNOPSIS
Render an object to a device
USAGE
xfig_render_object (obj, device)
DESCRIPTION
This function renders the specified object to a specified device.
If the device parameter is a string, then a device will be opened with
the specified name.
SEE ALSO
xfig_create_file, xfig_close_file
--------------------------------------------------------------
xfig_justify_object
SYNOPSIS
Justify an object at a specified position
USAGE
xfig_justify_object (obj, X, dX)
DESCRIPTION
This function moves the object to the specified position X (a vector)
and justifies it at that position according to the offsets specified by
the vector `dX'. The components of `dX' are normally in the
range -0.5 to 0.5 and represent offsets relative to the size of the object.
If the components of dX are 0, then the object will be centered at `X'.
SEE ALSO
xfig_translate_object
--------------------------------------------------------------
xfig_new_text
SYNOPSIS
Create a text object by running LaTeX
USAGE
obj = xfig_new_text (String_Type text [,font_object])
DESCRIPTION
This function runs LaTeX on the specified text string and returns the
resulting object. The text string must be formatted according to the LaTeX
rules. The optional parameter is a structure that may be used to specify
the font, color, pointsize, etc to use when calling LaTeX. This structure
may be instantiated using the xfig_font_new.
SEE ALSO
xfig_font_new
--------------------------------------------------------------
xfig_new_legend
SYNOPSIS
Create a plot legend object
USAGE
legend = xfig_new_legend (labels[], colors[], linestyles[], thicknesses[], width
DESCRIPTION
The `xfig_new_legend' function creates a legend object suitable for adding
to a plot. The legend will consist of ...
--------------------------------------------------------------
xfig_plot_new
SYNOPSIS
Create a new plot object
USAGE
w = xfig_plot_new ( [Int_Type width, Int_Type height] );
DESCRIPTION
This function creates a new plot object of the specified width and height.
If the width and height parameters are not given, defaults will be used.
The width and height values specify the size of the plotting area and do not
include the space for tic marks and labels.
EXAMPLE
w = xfig_plot_new ();
SEE ALSO
xfig_plot_define_world, xfig_render_object
--------------------------------------------------------------
xfig_plot_add_symbol
SYNOPSIS
Add a plot symbol
USAGE
xfig_plot_add_symbol (String_Type name, Ref_Type funct)
DESCRIPTION
This function may be used to add a new plot symbol of the specified name.
The `funct' parameter specifies a function to be called to create the
symbol. It will be called with a single parameter: a value representing the
scale size of the symbol in fig units. The function must return two arrays
representing the X and Y coordinates of the polygons that represent
the symbol. The center of the object is taken to be (0,0). If more than one
polygon is require to represent the object, an array of arrays may be
returned.
--------------------------------------------------------------
xfig_plot_add_object
SYNOPSIS
Add an object to a plot at a world coordinate position
USAGE
xfig_plot_add_object (plot_win, obj [,x,y [,dx,dy]])
DESCRIPTION
This function may be used to add an object to a plot window at a specified
world coordinate. The `dx' and `dy' arguments control the
justification of the object. The values of these parameters are offsets
relative to the size of the object, and as such ordinarily have values
in the interval `[-0.5,0.5]'. For example, `0,0' will center
the object on `(x,y)', and `(-0.5,-0.5)' will move the lower left
corner of the object to the specified coordinate.
SEE ALSO
xfig_plot_define_world1
--------------------------------------------------------------
xfig_plot_text
SYNOPSIS
Add text to the plot
USAGE
xfig_plot_text (w, text, x, y [,dx, dy])
w: plot object
x, y: world coordinates
dx, dy: justification
DESCRIPTION
This function creates a text object at the specified location on the plot.
By default, the text will be centered on the specified world coordinates.
The justification parameters `dx' and `dy' may be used to specify
the justifcation of the text. See the documentation for `xfig_plot_add_object'
for more information.
EXAMPLE
xfig_plot_text (w, "$cos(\omega t)$"R, 3.2, 6.0, -0.5, 0);
will left justify the text at the position (3.2,6.0).
SEE ALSO
xfig_plot_add_object, xfig_new_text
--------------------------------------------------------------
xfig_plot_title
SYNOPSIS
Add a title to a plot
USAGE
xfig_plot_title (w, title)
--------------------------------------------------------------
xfig_plot_png
SYNOPSIS
Add a png file to a plot, scaling it to the window
USAGE
xfig_plot_png (w, file)
--------------------------------------------------------------
xfig_plot_new_png
SYNOPSIS
Create a new plot window for a png file
USAGE
w = xfig_plot_new_png (file)
--------------------------------------------------------------
xfig_meshgrid
SYNOPSIS
Produce grid points for an image
USAGE
(xx,yy) = xfig_meshgrid (xx, yy)
DESCRIPTION
This function takes two 1-d vectors representing the orthogonal
grids for a rectangular region in the (x,y) plane and returns two
2-d arrays corresponding to the (x,y) coordinates of each
intersecting grid point.
Suppose that one wants to evaluate a
function `f(x,y)' at each point defined by the two grid
vectors. Simply calling `f(x,y)' using the grid vectors would
lead to either a type-mismatch error or produce a 1-d result. The
correct way to do this is to use the `xfig_meshgrid' function:
result = f(xfig_meshgrid(x,y));
--------------------------------------------------------------
xfig_scale_pict
SYNOPSIS
Scale a pict object
USAGE
xfig_scale_pict (pict, sx [,sy])
--------------------------------------------------------------
xfig_center_pict_in_box
SYNOPSIS
Center a pict object in a box
USAGE
xfig_center_pict_in_box (pict_object, X, dx, dy
DESCRIPTION
This function takes a pict object and centers it in a box whose width
is `dx' and whose height is `dy'. The vector `X' denotes the
position of the lower-left corner of the box. If the pict object is too
big to fit in the box, then its lower-left corner will coincide with the
lower-left corner of the box.
SEE ALSO
xfig_translate_object
--------------------------------------------------------------
|