542
<parameter>center</parameter>
542
<parameter>opt</parameter>
543
543
(<literal>PLINT</literal>, input)
547
Indicates whether the values in
548
<literal><parameter>x</parameter></literal> represent the lower
550
(<literal><parameter>center</parameter>=0</literal>) or whether
551
the bin boundaries are to be midway between the
552
<literal><parameter>x</parameter></literal> values
553
(<literal><parameter>center</parameter>=1</literal>). If the
554
values in <literal><parameter>x</parameter></literal> are
556
<literal><parameter>center</parameter>=1</literal>, the values
557
in <literal><parameter>x</parameter></literal> are the center
547
Is a combination of several flags:
551
<literal><parameter>opt</parameter>=PL_BIN_DEFAULT</literal>:
552
The <literal><parameter>x</parameter></literal> represent the lower
553
bin boundaries, the outer bins are expanded to fill up the
554
entire x-axis and bins of zero height are simply drawn.
559
<literal><parameter>opt</parameter>=PL_BIN_CENTRED|...</literal>:
560
The bin boundaries are to be midway between the
561
<literal><parameter>x</parameter></literal> values. If the
562
values in <literal><parameter>x</parameter></literal> are
563
equally spaced, the values are the center values of the bins.
568
<literal><parameter>opt</parameter>=PL_BIN_NOEXPAND|...</literal>:
569
The outer bins are drawn with equal size as the ones inside.
574
<literal><parameter>opt</parameter>=PL_BIN_NOEMPTY|...</literal>:
575
Bins with zero height are not drawn (there is a gap for
1355
1317
Integer representing the color. The defaults at present are
1356
1318
(these may change):
1357
<simplelist type="vert" columns="2">
1358
<member> 0 </member>
1359
<member> 1 </member>
1360
<member> 2 </member>
1361
<member> 3 </member>
1362
<member> 4 </member>
1363
<member> 5 </member>
1364
<member> 6 </member>
1365
<member> 7 </member>
1366
<member> 8 </member>
1367
<member> 9 </member>
1368
<member>10 </member>
1369
<member>11 </member>
1370
<member>12 </member>
1371
<member>13 </member>
1372
<member>14 </member>
1373
<member>15 </member>
1374
<member>black (default background)</member>
1375
<member>red (default foreground)</member>
1376
<member>yellow</member>
1377
<member>green</member>
1378
<member>aquamarine</member>
1379
<member>pink</member>
1380
<member>wheat</member>
1381
<member>grey</member>
1382
<member>brown</member>
1383
<member>blue</member>
1384
<member>BlueViolet</member>
1385
<member>cyan</member>
1386
<member>turquoise</member>
1387
<member>magenta</member>
1388
<member>salmon</member>
1389
<member>white</member>
1319
<simplelist type="horiz" columns="2">
1320
<member> 0 </member> <member>black (default background)</member>
1321
<member> 1 </member> <member>red (default foreground)</member>
1322
<member> 2 </member> <member>yellow</member>
1323
<member> 3 </member> <member>green</member>
1324
<member> 4 </member> <member>aquamarine</member>
1325
<member> 5 </member> <member>pink</member>
1326
<member> 6 </member> <member>wheat</member>
1327
<member> 7 </member> <member>grey</member>
1328
<member> 8 </member> <member>brown</member>
1329
<member> 9 </member> <member>blue</member>
1330
<member>10 </member> <member>BlueViolet</member>
1331
<member>11 </member> <member>cyan</member>
1332
<member>12 </member> <member>turquoise</member>
1333
<member>13 </member> <member>magenta</member>
1334
<member>14 </member> <member>salmon</member>
1335
<member>15 </member> <member>white</member>
1391
1337
Use &plscmap0; to change the entire map0 color palette and
1392
1338
&plscol0; to change an individual color in the map0 color
4248
4232
</varlistentry>
4251
<parameter>oldwin</parameter>
4235
<parameter>opt</parameter>
4252
4236
(<literal>PLINT</literal>, input)
4256
If one, the histogram is plotted in the currently-defined
4257
window, and if zero, &plenv; is called automatically before
4266
<sect1 id="plhls" renderas="sect3">
4268
<function>plhls</function>: Set current color by HLS
4275
<function>plhls</function>
4277
<paramdef><parameter>h</parameter></paramdef>
4278
<paramdef><parameter>l</parameter></paramdef>
4279
<paramdef><parameter>s</parameter></paramdef>
4285
Set current color by hue, lightness, and saturation.
4286
Convert hls color coordinates to rgb, then call plrgb.
4287
Do <emphasis>not</emphasis> use this. Only retained for backward compatibility.
4288
Use plHLS_RGB and plscol0 instead.
4290
<!-- TODO: find out what to do exactly -->
4295
<parameter>h</parameter>
4296
(<literal>PLFLT</literal>, input)
4306
<parameter>l</parameter>
4307
(<literal>PLFLT</literal>, input)
4317
<parameter>s</parameter>
4318
(<literal>PLFLT</literal>, input)
4330
<sect1 id="plHLS_RGB" renderas="sect3">
4332
<function>plHLS_RGB</function>: Convert HLS color to RGB
4339
<function>plHLS_RGB</function>
4240
Is a combination of several flags:
4244
<literal><parameter>opt</parameter>=PL_HIST_DEFAULT</literal>:
4245
The axes are automatically rescaled to fit the histogram data,
4246
the outer bins are expanded to fill up the entire x-axis,
4247
data outside the given extremes are assigned to the outer
4248
bins and bins of zero height are simply drawn.
4253
<literal><parameter>opt</parameter>=PL_HIST_NOSCALING|...</literal>:
4254
The existing axes are not rescaled to fit the histogram data,
4255
without this flag, &plenv; is called to set the world coordinates.
4260
<literal><parameter>opt</parameter>=PL_HIST_IGNORE_OUTLIERS|...</literal>:
4261
Data outside the given extremes are not taken into account.
4262
This option should probably be combined with
4263
<literal><parameter>opt</parameter>=PL_HIST_NOEXPAND|...</literal>,
4264
so as to properly present the data.
4269
<literal><parameter>opt</parameter>=PL_HIST_NOEXPAND|...</literal>:
4270
The outer bins are drawn with equal size as the ones inside.
4275
<literal><parameter>opt</parameter>=PL_HIST_NOEMPTY|...</literal>:
4276
Bins with zero height are not drawn (there is a gap for
4288
<sect1 id="plhlsrgb" renderas="sect3">
4290
<function>plhlsrgb</function>: Convert HLS color to RGB
4297
<function>plhlsrgb</function>
4341
4299
<paramdef><parameter>h</parameter></paramdef>
4342
4300
<paramdef><parameter>l</parameter></paramdef>
4798
<sect1 id="plmap" renderas="sect3">
4800
<function>plmap</function>: Plot continental outline in world coordinates.
4807
<function>plmap</function>
4809
<paramdef><parameter>mapform</parameter></paramdef>
4810
<paramdef><parameter>type</parameter></paramdef>
4811
<paramdef><parameter>minlong</parameter></paramdef>
4812
<paramdef><parameter>maxlong</parameter></paramdef>
4813
<paramdef><parameter>minlat</parameter></paramdef>
4814
<paramdef><parameter>maxlat</parameter></paramdef>
4820
Plots continental outlines in world coordinates.
4821
examples/c/x19c demonstrates how to use this
4822
function to create different projections.
4828
<parameter>mapform</parameter>
4829
(<literal>void (*) (PLINT, PLFLT *, PLFLT *)</literal>, input)
4833
A user supplied function to transform the coordinate
4834
longitudes and latitudes to a plot coordinate system.
4835
By using this transform, we can change from a longitude,
4836
latitude coordinate to a polar stereographic project, for
4837
example. Initially, x[0]..[n-1] are the longitudes and y[0]..y[n-1]
4838
are the corresponding latitudes. After the call to mapform(), x[]
4839
and y[] should be replaced by the corresponding plot coordinates.
4840
If no transform is desired, mapform can be replaced by NULL.
4846
<parameter>type</parameter>
4847
(<literal>char *</literal>, input)
4851
type is a character string. The value of this parameter determines the
4852
type of background. The possible values are:
4856
<literal>"globe"</literal> -- continental outlines
4861
<literal>"usa"</literal> -- USA and state boundaries
4866
<literal>"cglobe"</literal> -- continental outlines and countries
4871
<literal>"usaglobe"</literal> -- USA, state boundaries and continental outlines
4880
<parameter>minlong</parameter>
4881
(<literal>PLFLT</literal>, input)
4885
The value of the longitude on the left side of the plot.
4886
The value of minlong must be less than the value of maxlong, and the
4887
quantity maxlong-minlong must be less than or equal to 360.
4893
<parameter>maxlong</parameter>
4894
(<literal>PLFLT</literal>, input)
4898
The value of the longitude on the right side of the plot.
4904
<parameter>minlat</parameter>
4905
(<literal>PLFLT</literal>, input)
4909
The minimum latitude to be plotted on the background.
4910
One can always use -90.0 as the boundary outside the plot window
4911
will be automatically eliminated. However, the program will be
4912
faster if one can reduce the size of the background plotted.
4918
<parameter>maxlat</parameter>
4919
(<literal>PLFLT</literal>, input)
4923
The maximum latitudes to be plotted on the background.
4924
One can always use 90.0 as the boundary outside the plot window
4925
will be automatically eliminated.
4932
<sect1 id="plmeridians" renderas="sect3">
4934
<function>plmeridians</function>: Plot latitude and longitude lines.
4941
<function>plmeridians</function>
4943
<paramdef><parameter>mapform</parameter></paramdef>
4944
<paramdef><parameter>dlong</parameter></paramdef>
4945
<paramdef><parameter>dlat</parameter></paramdef>
4946
<paramdef><parameter>minlong</parameter></paramdef>
4947
<paramdef><parameter>maxlong</parameter></paramdef>
4948
<paramdef><parameter>minlat</parameter></paramdef>
4949
<paramdef><parameter>maxlat</parameter></paramdef>
4955
Displays latitude and longitude on the current plot. The lines
4956
are plotted in the current color and line style.
4962
<parameter>mapform</parameter>
4963
(<literal>void (*) (PLINT, PLFLT *, PLFLT *)</literal>, input)
4967
A user supplied function to transform the coordinate
4968
longitudes and latitudes to a plot coordinate system.
4969
By using this transform, we can change from a longitude,
4970
latitude coordinate to a polar stereographic project, for
4971
example. Initially, x[0]..[n-1] are the longitudes and y[0]..y[n-1]
4972
are the corresponding latitudes. After the call to mapform(), x[]
4973
and y[] should be replaced by the corresponding plot coordinates.
4974
If no transform is desired, mapform can be replaced by NULL.
4980
<parameter>dlong</parameter>
4981
(<literal>PLFLT</literal>, input)
4985
The interval in degrees at which the longitude lines are to be plotted.
4991
<parameter>dlat</parameter>
4992
(<literal>PLFLT</literal>, input)
4996
The interval in degrees at which the latitude lines are to be plotted.
5002
<parameter>minlong</parameter>
5003
(<literal>PLFLT</literal>, input)
5007
The value of the longitude on the left side of the plot.
5008
The value of minlong must be less than the value of maxlong, and the
5009
quantity maxlong-minlong must be less than or equal to 360.
5015
<parameter>maxlong</parameter>
5016
(<literal>PLFLT</literal>, input)
5020
The value of the longitude on the right side of the plot.
5026
<parameter>minlat</parameter>
5027
(<literal>PLFLT</literal>, input)
5031
The minimum latitude to be plotted on the background.
5032
One can always use -90.0 as the boundary outside the plot window
5033
will be automatically eliminated. However, the program will be
5034
faster if one can reduce the size of the background plotted.
5040
<parameter>maxlat</parameter>
5041
(<literal>PLFLT</literal>, input)
5045
The maximum latitudes to be plotted on the background.
5046
One can always use 90.0 as the boundary outside the plot window
5047
will be automatically eliminated.
4840
5054
<sect1 id="plmesh" renderas="sect3">
4842
5056
<function>plmesh</function>: Plot surface mesh
5546
<sect1 id="plpage" renderas="sect3">
5760
<sect1 id="plparseopts" renderas="sect3">
5548
<function>plpage</function>: Begin a new page
5762
<function>plparseopts</function>: Parse command-line arguments
5553
5767
<funcprototype>
5555
<function>plpage</function>
5769
<function>plparseopts</function>
5557
<paramdef></paramdef>
5771
<paramdef><parameter>p_argc</parameter></paramdef>
5772
<paramdef><parameter>argv</parameter></paramdef>
5773
<paramdef><parameter>mode</parameter></paramdef>
5558
5774
</funcprototype>
5559
5775
</funcsynopsis>
5563
Deprecated. Use the new name, &plbop;, for this function instead.
5779
Parse command-line arguments.
5785
<parameter>p_argc</parameter>
5786
(<literal>int *</literal>, input)
5790
pointer to number of arguments.
5796
<parameter>argv</parameter>
5797
(<literal>char **</literal>, input)
5801
Pointer to character array containing
5802
<literal><parameter>*p_argc</parameter></literal> command-line
5809
<parameter>mode</parameter>
5810
(<literal>PLINT</literal>, input)
5814
Parsing mode with the following possibilities:
5818
PL_PARSE_FULL (1) -- Full parsing of command line and all error messages
5819
enabled, including program exit when an error occurs. Anything on the
5820
command line that isn't recognized as a valid option or option argument is
5821
flagged as an error.
5826
PL_PARSE_QUIET (2) -- Turns off all output except in the case of errors.
5831
PL_PARSE_NODELETE (4) -- Turns off deletion of processed arguments.
5836
PL_PARSE_SHOWALL (8) -- Show invisible options
5841
PL_PARSE_NOPROGRAM (32) -- Specified if argv[0] is NOT a pointer to the
5847
PL_PARSE_NODASH (64) -- Set if leading dash is NOT required.
5852
PL_PARSE_SKIP (128) -- Set to quietly skip over any unrecognized args.
5568
5863
<sect1 id="plpat" renderas="sect3">
6186
<sect1 id="plrgb" renderas="sect3">
6188
<function>plrgb</function>: Set line color by red, green
6195
<function>plrgb</function>
6197
<paramdef><parameter>r</parameter></paramdef>
6198
<paramdef><parameter>g</parameter></paramdef>
6199
<paramdef><parameter>b</parameter></paramdef>
6205
Set line color by red, green, blue from 0. to 1. Do
6206
<emphasis>not</emphasis> use this.
6207
Only retained for backward compatibility. Use the function plscol0
6214
<parameter>r</parameter>
6215
(<literal>PLFLT</literal>, input)
6225
<parameter>g</parameter>
6226
(<literal>PLFLT</literal>, input)
6236
<parameter>b</parameter>
6237
(<literal>PLFLT</literal>, input)
6249
<sect1 id="plrgb1" renderas="sect3">
6251
<function>plrgb1</function>: Set line color by 8-bit RGB values
6258
<function>plrgb1</function>
6260
<paramdef><parameter>r</parameter></paramdef>
6261
<paramdef><parameter>g</parameter></paramdef>
6262
<paramdef><parameter>b</parameter></paramdef>
6268
Set line color by 8-bit RGB values. Do <emphasis>not</emphasis> use this.
6269
Only retained for backward compatibility. Use the function plscol0
6276
<parameter>r</parameter>
6277
(<literal>PLINT</literal>, input)
6287
<parameter>g</parameter>
6288
(<literal>PLINT</literal>, input)
6298
<parameter>b</parameter>
6299
(<literal>PLINT</literal>, input)
6480
<sect1 id="plrgbhls" renderas="sect3">
6482
<function>plrgbhls</function>: Convert RGB color to HLS
6489
<function>plrgbhls</function>
6491
<paramdef><parameter>r</parameter></paramdef>
6492
<paramdef><parameter>g</parameter></paramdef>
6493
<paramdef><parameter>b</parameter></paramdef>
6494
<paramdef><parameter>p_h</parameter></paramdef>
6495
<paramdef><parameter>p_l</parameter></paramdef>
6496
<paramdef><parameter>p_s</parameter></paramdef>
6502
Convert RGB color coordinates to HLS
6508
<parameter>r</parameter>
6509
(<literal>PLFLT</literal>, output)
6513
Red intensity (0.0-1.0) of the colour
6519
<parameter>g</parameter>
6520
(<literal>PLFLT</literal>, output)
6524
Green intensity (0.0-1.0) of the colour
6530
<parameter>b</parameter>
6531
(<literal>PLFLT</literal>, output)
6535
Blue intensity (0.0-1.0) of the colour
6541
<parameter>p_h</parameter>
6542
(<literal>PLFLT *</literal>, input)
6546
Pointer to hue, in degrees on the colour cone (0.0-360.0)
6552
<parameter>p_l</parameter>
6553
(<literal>PLFLT *</literal>, input)
6557
Pointer to lightness, expressed as a fraction of the axis of the colour
6564
<parameter>p_s</parameter>
6565
(<literal>PLFLT *</literal>, input)
6569
Pointer to saturation, expressed as a fraction of the radius of the
6570
colour cone (0.0-1.0)
6306
6573
</varlistentry>
7875
8181
<parameter>rectangular</parameter>
7876
(<literal>PLINT</literal>, input)
8182
(<literal>PLBOOL</literal>, input)
7880
Set <literal><parameter>rectangular</parameter></literal> to 1
8186
Set <literal><parameter>rectangular</parameter></literal> to true
7881
8187
if rectangles map to rectangles after coordinate transformation
7882
8188
with <literal><parameter>pltrl</parameter></literal>. Otherwise,
7883
set <literal><parameter>rectangular</parameter></literal> to 0.
8189
set <literal><parameter>rectangular</parameter></literal> to false.
7884
8190
If <literal><parameter>rectangular</parameter></literal>
7885
is set to 1, plshade tries to save time by
8191
is set to true, plshade tries to save time by
7886
8192
filling large rectangles. This optimization fails if
7887
8193
the coordinate transformation distorts the shape of rectangles.
7888
For example a plot in polor coordinates has to have rectangular
8194
For example a plot in polor coordinates has to have
8195
<literal><parameter>rectangular</parameter></literal>
7892
8199
</varlistentry>
8476
8783
<parameter>rectangular</parameter>
8477
(<literal>PLINT</literal>, input)
8784
(<literal>PLBOOL</literal>, input)
8481
Set <literal><parameter>rectangular</parameter></literal> to 1
8788
Set <literal><parameter>rectangular</parameter></literal> to true
8482
8789
if rectangles map to rectangles after coordinate transformation
8483
8790
with <literal><parameter>pltrl</parameter></literal>. Otherwise,
8484
set <literal><parameter>rectangular</parameter></literal> to 0.
8791
set <literal><parameter>rectangular</parameter></literal> to false.
8485
8792
If <literal><parameter>rectangular</parameter></literal>
8486
is set to 1, plshade tries to save time by
8793
is set to true, plshade tries to save time by
8487
8794
filling large rectangles. This optimization fails if
8488
8795
the coordinate transformation distorts the shape of rectangles.
8489
For example a plot in polor coordinates has to have rectangular
8796
For example a plot in polor coordinates has to have
8797
<literal><parameter>rectangular</parameter></literal>
8493
8801
</varlistentry>
10894
Enter (mode !=0) or leave (mode == 0) xor mode for those drivers
11206
Enter (when <literal><parameter>mode</parameter></literal> is true)
11207
or leave (when <literal><parameter>mode</parameter></literal> is false)
11208
xor mode for those drivers
10895
11209
(e.g., the xwin driver) that support it. Enables erasing plots by
10896
11210
drawing twice the same line, symbol, etc. If driver is not capable
10897
of xor operation returns status of 0.
11211
of xor operation it returns a
11212
<literal><parameter>status</parameter></literal> of false.
10900
11215
<variablelist>
10901
11216
<varlistentry>
10903
11218
<parameter>mode</parameter>
10904
(<literal>PLINT</literal>, input)
11219
(<literal>PLBOOL</literal>, input)
10908
mode != 0 means enter xor mode and mode == 0 means leave xor
11223
<literal><parameter>mode</parameter></literal> is true
11224
means enter xor mode and
11225
<literal><parameter>mode</parameter></literal> is false
11226
means leave xor mode.
10912
11229
</varlistentry>
10913
11230
<varlistentry>
10915
11232
<parameter>status</parameter>
10916
(<literal>PLINT *</literal>, output)
11233
(<literal>PLBOOL *</literal>, output)
10920
Pointer to status. Returned status == 1 (0) means driver is capable
10921
(incapable) of xor mode.
11237
Pointer to status. Returned
11238
<literal><parameter>mode</parameter></literal>status of true (false)
11239
means driver is capable (incapable) of xor mode.
10924
11242
</varlistentry>