This file is indexed.

/usr/share/doc/maxima-doc/html/maxima_48.html is in maxima-doc 5.32.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
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on January, 10 2014 by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>Maxima 5.32.1 Manual: 48. draw</title>

<meta name="description" content="Maxima 5.32.1 Manual: 48. draw">
<meta name="keywords" content="Maxima 5.32.1 Manual: 48. draw">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
body
{
    color: black;
    background: white; 
    margin-left: 8%;
    margin-right: 13%;
}

h1
{
    margin-left: +8%;
    font-size: 150%;
    font-family: sans-serif
}

h2
{
    font-size: 125%;
    font-family: sans-serif
}

h3
{
    font-size: 100%;
    font-family: sans-serif
}

h2,h3,h4,h5,h6 { margin-left: +4%; }

div.textbox
{
    border: solid;
    border-width: thin;
    /* width: 100%; */
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em
}

div.titlebox
{
    border: none;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em;
    background: rgb(200,255,255);
    font-family: sans-serif
}

div.synopsisbox
{
    border: none;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 2em;
    padding-right: 2em;
     background: rgb(255,220,255);
    /*background: rgb(200,255,255); */
    /* font-family: fixed */
}

pre.example
{
    border: 1px solid gray;
    padding-top: 1em;
    padding-bottom: 1em;
    padding-left: 1em;
    padding-right: 1em;
    /* background: rgb(247,242,180); */ /* kind of sandy */
    /* background: rgb(200,255,255); */ /* sky blue */
    background-color: #F1F5F9; /* light blue-gray */
    /* font-family: "Lucida Console", monospace */
}

div.spacerbox
{
    border: none;
    padding-top: 2em;
    padding-bottom: 2em
}

div.image
{
    margin: 0;
    padding: 1em;
    text-align: center;
}

div.categorybox
{
    border: 1px solid gray;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 1em;
    padding-right: 1em;
    background: rgb(247,242,220);
}


-->
</style>

<link rel="icon" href="http://maxima.sourceforge.net/favicon.ico"/>
</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="draw"></a>
<a name="SEC239"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="maxima_47.html#SEC238" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC240" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima_47.html#SEC235" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1 class="chapter"> 48. draw </h1>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#SEC240">48.1 Introduction to draw</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC241">48.2 Functions and Variables for draw</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC246">48.3 Functions and Variables for pictures</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#SEC247">48.4 Functions and Variables for worldmap</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
</table>



<p><a name="Item_003a-Introduction-to-draw"></a>
</p><hr size="6">
<a name="Introduction-to-draw"></a>
<a name="SEC240"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC239" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC241" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC239" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 48.1 Introduction to draw </h2>


<p><code>draw</code> is a Maxima-Gnuplot interface.
</p>
<p>There are three main functions to be used at Maxima level: 
<code>draw2d</code>, <code>draw3d</code> and <code>draw</code>.
</p>
<p>Follow this link for more elaborated examples of this package:
</p>
<p><a href="http://riotorto.users.sourceforge.net/gnuplot">http://riotorto.users.sourceforge.net/gnuplot</a>
</p>
<p>You need Gnuplot 4.2 or newer to run this program.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Plotting} &middot;
@ref{Category: Share packages} &middot;
@ref{Category: Package draw}
</div>
</p>

<p><a name="Item_003a-Functions-and-Variables-for-draw"></a>
</p><hr size="6">
<a name="Functions-and-Variables-for-draw"></a>
<a name="SEC241"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC240" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC242" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC239" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 48.2 Functions and Variables for draw </h2>




<hr size="6">
<a name="SEC242"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC241" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC243" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC241" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.2.1 Scenes </h3>



<p><a name="Item_003a-gr2d"></a>
</p><dl>
<dt><u>Scene constructor:</u> <b>gr2d</b><i> (<var>graphic option</var>, ..., <var>graphic object</var>, ...)</i>
<a name="IDX2010"></a>
</dt>
<dd><p>Function <code>gr2d</code> builds an object describing a 2D scene. Arguments are
<i>graphic options</i>, <i>graphic objects</i>, or lists containing both graphic options and objects.
This scene is interpreted sequentially: <i>graphic options</i> affect those <i>graphic objects</i>
placed on its right. Some <i>graphic options</i> affect the global appearence of the scene.
</p>
<p>This is the list of <i>graphic objects</i> available for scenes in two dimensions:
<code>bars</code>, <code>ellipse</code>, <code>explicit</code>, <code>image</code>, <code>implicit</code>, <code>label</code>,
<code>parametric</code>, <code>points</code>, <code>polar</code>, <code>polygon</code>, <code>quadrilateral</code>,
<code>rectangle</code>, <code>triangle</code>, <code>vector</code>, and <code>geomap</code>
(this one defined in package <code>worldmap</code>).
</p>
<p>See also <code>draw</code> and <code>draw2d</code>.
</p>
<p>To make use of this object, write first <code>load(draw)</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-gr3d"></a>
</p><dl>
<dt><u>Scene constructor:</u> <b>gr3d</b><i> (<var>graphic option</var>, ..., <var>graphic object</var>, ...)</i>
<a name="IDX2011"></a>
</dt>
<dd><p>Function <code>gr3d</code> builds an object describing a 3d scene. Arguments are
<i>graphic options</i>, <i>graphic objects</i>, or lists containing both graphic options
and objects. This scene is interpreted sequentially: <i>graphic options</i> affect those 
<i>graphic objects</i> placed on its right. Some <i>graphic options</i> affect the global
appearence of the scene.
</p>
<p>This is the list of <i>graphic objects</i> available for scenes in three
dimensions:<br>
<code>cylindrical</code>, <code>elevation_grid</code>, <code>explicit</code>, <code>implicit</code>,
<code>label</code>, <code>mesh</code>, <code>parametric</code>,<br>
<code>parametric_surface</code>, <code>points</code>, <code>quadrilateral</code>,
<code>spherical</code>, <code>triangle</code>, <code>tube</code>,<br>
<code>vector</code>, and <code>geomap</code> (this one defined in package <code>worldmap</code>).
</p>
<p>See also <code>draw</code> and <code>draw3d</code>.
</p>
<p>To make use of this object, write first <code>load(draw)</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<hr size="6">
<a name="SEC243"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC242" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC244" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC241" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.2.2 Functions </h3>




<dl>
<dt><u>Function:</u> <b>draw</b><i> (<var>gr2d</var>, ..., <var>gr3d</var>, ..., <var>options</var>, ...)</i>
<a name="IDX2012"></a>
</dt>
<dd><p>Plots a series of scenes; its arguments are <code>gr2d</code> and/or <code>gr3d</code> 
objects, together with some options, or lists of scenes and options.
By default, the scenes are put together
in one column.
</p>
<p>Function <code>draw</code> accepts the following global options: <code>terminal</code>,
<code>columns</code>, <code>dimensions</code>, <code>file_name</code> and <code>delay</code>.
</p>
<p>Functions <code>draw2d</code> and <code>draw3d</code> are short cuts to be used 
when only one scene is required, in two or three dimensions, respectively.
</p>
<p>See also <code>gr2d</code> and <code>gr3d</code>.
</p>
<p>To make use of this function, write first <code>load(draw)</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) scene1: gr2d(title=&quot;Ellipse&quot;,
                   nticks=30,
                   parametric(2*cos(t),5*sin(t),t,0,2*%pi))$
(%i3) scene2: gr2d(title=&quot;Triangle&quot;,
                   polygon([4,5,7],[6,4,2]))$
(%i4) draw(scene1, scene2, columns = 2)$
</pre>
<p>The two draw sentences are equivalent:
</p><pre class="example">(%i1) load(draw)$
(%i2) draw(gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1)));
(%o2)                          [gr3d(explicit)]
(%i3) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1));
(%o3)                          [gr3d(explicit)]
</pre>
<p>An animated gif file:
</p><pre class="example">(%i1) load(draw)$
(%i2) draw(
        delay     = 100,
        file_name = &quot;zzz&quot;,
        terminal  = 'animated_gif,
        gr2d(explicit(x^2,x,-1,1)),
        gr2d(explicit(x^3,x,-1,1)),
        gr2d(explicit(x^4,x,-1,1)));
End of animation sequence
(%o2)          [gr2d(explicit), gr2d(explicit), gr2d(explicit)]
</pre>
<p>See also <code>gr2d</code>, <code>gr3d</code>, <code>draw2d</code> and <code>draw3d</code>..
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: File output}
</div>
</p></dd></dl>





<p><a name="Item_003a-draw2d"></a>
</p><dl>
<dt><u>Function:</u> <b>draw2d</b><i> (<var>option</var>, <var>graphic_object</var>, ...)</i>
<a name="IDX2013"></a>
</dt>
<dd><p>This function is a short cut for
<code>draw(gr2d(<var>options</var>, ..., <var>graphic_object</var>, ...))</code>.
</p>
<p>It can be used to plot a unique scene in 2d.
</p>
<p>To make use of this function, write first <code>load(draw)</code>.
</p>
<p>See also <code>draw</code> and <code>gr2d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: File output}
</div>
</p></dd></dl>






<p><a name="Item_003a-draw3d"></a>
</p><dl>
<dt><u>Function:</u> <b>draw3d</b><i> (<var>option</var>, <var>graphic_object</var>, ...)</i>
<a name="IDX2014"></a>
</dt>
<dd><p>This function is a short cut for
<code>draw(gr3d(<var>options</var>, ..., <var>graphic_object</var>, ...))</code>.
</p>
<p>It can be used to plot a unique scene in 3d.
</p>
<p>To make use of this function, write first <code>load(draw)</code>.
</p>
<p>See also <code>draw</code> and <code>gr3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: File output}
</div>
</p></dd></dl>



<p><a name="Item_003a-draw_005ffile"></a>
</p><dl>
<dt><u>Function:</u> <b>draw_file</b><i> (<var>graphic option</var>, ..., <var>graphic object</var>, ...)</i>
<a name="IDX2015"></a>
</dt>
<dd><p>Saves the current plot into a file. Accepted graphics options are:
<code>terminal</code>, <code>dimensions</code>, <code>file_name</code> and <code>background_color</code>. 
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) /* screen plot */
      draw(gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1)))$
(%i3) /* same plot in eps format */
      draw_file(terminal  = eps,
                dimensions = [5,5]) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: File output}
</div>
</p></dd></dl>



<p><a name="Item_003a-multiplot_005fmode"></a>
</p><dl>
<dt><u>Function:</u> <b>multiplot_mode</b><i> (<var>term</var>)</i>
<a name="IDX2016"></a>
</dt>
<dd><p>This function enables Maxima to work in one-window multiplot mode with terminal
<var>term</var>; accepted arguments for this function are <code>screen</code>, 
<code>wxt</code>, <code>aquaterm</code> and <code>none</code>.
</p>
<p>When multiplot mode is enabled, each call to <code>draw</code> sends a new plot to the
same window, without erasing the previous ones. To disable the multiplot mode,
write <code>multiplot_mode(none)</code>.
</p>
<p>When multiplot mode is enabled, global option <code>terminal</code> is blocked and you
have to disable this working mode before changing to another terminal.
</p>
<p>This feature does not work in Windows platforms.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) set_draw_defaults(
         xrange = [-1,1],
         yrange = [-1,1],
         grid   = true,
         title  = &quot;Step by step plot&quot; )$
(%i3) multiplot_mode(screen)$
(%i4) draw2d(color=blue,  explicit(x^2,x,-1,1))$
(%i5) draw2d(color=red,   explicit(x^3,x,-1,1))$
(%i6) draw2d(color=brown, explicit(x^4,x,-1,1))$
(%i7) multiplot_mode(none)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: File output}
</div>
</p></dd></dl>





<p><a name="Item_003a-set_005fdraw_005fdefaults"></a>
</p><dl>
<dt><u>Function:</u> <b>set_draw_defaults</b><i> (<var>graphic option</var>, ..., <var>graphic object</var>, ...)</i>
<a name="IDX2017"></a>
</dt>
<dd><p>Sets user graphics options. This function is useful for plotting a sequence
of graphics with common graphics options. Calling this function without
arguments removes user defaults.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) set_draw_defaults(
         xrange = [-10,10],
         yrange = [-2, 2],
         color  = blue,
         grid   = true)$
(%i3) /* plot with user defaults */
      draw2d(explicit(((1+x)**2/(1+x*x))-1,x,-10,10))$
(%i4) set_draw_defaults()$
(%i5) /* plot with standard defaults */
      draw2d(explicit(((1+x)**2/(1+x*x))-1,x,-10,10))$
</pre>
<p>To make use of this function, write first <code>load(draw)</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<hr size="6">
<a name="SEC244"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC243" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC245" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC241" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.2.3 Graphics options </h3>



<dl>
<dt><u>Graphic option:</u> <b>adapt_depth</b>
<a name="IDX2018"></a>
</dt>
<dd><p>Default value: 10
</p>
<p><code>adapt_depth</code> is the maximum number of splittings used by the adaptive plotting routine.
</p>
<p>This option is relevant only for 2d <code>explicit</code> functions.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-allocation"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>allocation</b>
<a name="IDX2019"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>With option <code>allocation</code> it is possible to place a scene in the
output window at will; this is of interest in multiplots. When <code>false</code>,
the scene is placed automatically, depending on the value assigned to option
<code>columns</code>. In any other case, <code>allocation</code> must be set to a list of
two pairs of numbers; the first corresponds to the position of the lower left
corner of the scene, and the second pair gives the width and height of the plot.
All quantities must be given in relative coordinates, between 0 and 1.
</p>
<p>Examples:
</p>
<p>In site graphics.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw(
        gr2d(
          explicit(x^2,x,-1,1)),
        gr2d(
          allocation = [[1/4, 1/4],[1/2, 1/2]],
          explicit(x^3,x,-1,1),
          grid = true) ) $
</pre>
<p>Multiplot with selected dimensions.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw(
        terminal = wxt,
        gr2d(
          allocation = [[0, 0],[1, 1/4]],
          explicit(x^2,x,-1,1)),
        gr3d(
          allocation = [[0, 1/4],[1, 3/4]],
          explicit(x^2+y^2,x,-1,1,y,-1,1) ))$
</pre>
<p>See also option <code>columns</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-axis_005f3d"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>axis_3d</b>
<a name="IDX2020"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>axis_3d</code> is <code>true</code>, the <var>x</var>, <var>y</var> and <var>z</var> axis are shown in 3d scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(axis_3d = false,
             explicit(sin(x^2+y^2),x,-2,2,y,-2,2) )$
</pre>
<p>See also <code>axis_bottom</code>,  <code>axis_left</code>, <code>axis_top</code>, and <code>axis_right</code> for axis in 2d.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-axis_005fbottom"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>axis_bottom</b>
<a name="IDX2021"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>axis_bottom</code> is <code>true</code>, the bottom axis is shown in 2d scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(axis_bottom = false,
             explicit(x^3,x,-1,1))$
</pre>
<p>See also <code>axis_left</code>,  <code>axis_top</code>, <code>axis_right</code>, and <code>axis_3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-axis_005fleft"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>axis_left</b>
<a name="IDX2022"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>axis_left</code> is <code>true</code>, the left axis is shown in 2d scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(axis_left = false,
             explicit(x^3,x,-1,1))$
</pre>
<p>See also <code>axis_bottom</code>,  <code>axis_top</code>, <code>axis_right</code>, and <code>axis_3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-axis_005fright"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>axis_right</b>
<a name="IDX2023"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>axis_right</code> is <code>true</code>, the right axis is shown in 2d scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(axis_right = false,
             explicit(x^3,x,-1,1))$
</pre>
<p>See also <code>axis_bottom</code>,  <code>axis_left</code>, <code>axis_top</code>, and <code>axis_3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-axis_005ftop"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>axis_top</b>
<a name="IDX2024"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>axis_top</code> is <code>true</code>, the top axis is shown in 2d scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(axis_top = false,
             explicit(x^3,x,-1,1))$
</pre>
<p>See also <code>axis_bottom</code>,  <code>axis_left</code>, <code>axis_right</code>, and <code>axis_3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-background_005fcolor"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>background_color</b>
<a name="IDX2025"></a>
</dt>
<dd><p>Default value: <code>white</code>
</p>
<p>Sets the background color for terminals. Default background color is white.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>This option das not work with terminals <code>epslatex</code> and <code>epslatex_standalone</code>.
</p>
<p>See also <code>color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-border"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>border</b>
<a name="IDX2026"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>border</code> is <code>true</code>, borders of polygons are painted
according to <code>line_type</code> and <code>line_width</code>.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>polygon</code>, <code>rectangle</code>, and <code>ellipse</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(color       = brown,
             line_width  = 8,
             polygon([[3,2],[7,2],[5,5]]),
             border      = false,
             fill_color  = blue,
             polygon([[5,2],[9,2],[7,5]]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-cbrange"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>cbrange</b>
<a name="IDX2027"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>cbrange</code> is <code>auto</code>, the range for the values which are
colored when <code>enhanced3d</code> is not <code>false</code> is computed
automatically. Values outside of the color range use color of the
nearest extreme.
</p>
<p>When <code>enhanced3d</code> or <code>colorbox</code> is <code>false</code>, option <code>cbrange</code> has
no effect.
</p>
<p>If the user wants a specific interval for the colored values, it must
be given as a Maxima list, as in <code>cbrange=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d (
        enhanced3d     = true,
        color          = green,
        cbrange = [-3,10],
        explicit(x^2+y^2, x,-2,2,y,-2,2)) $
</pre>
<p>See also <code>enhanced3d</code>, <code>colorbox</code> and <code>cbtics</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>



<p><a name="Item_003a-cbtics"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>cbtics</b>
<a name="IDX2028"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the colorbox
when option <code>enhanced3d</code> is not <code>false</code>.
</p>
<p>When <code>enhanced3d</code> or <code>colorbox</code> is <code>false</code>, option <code>cbtics</code> has
no effect.
</p>
<p>See <code>xtics</code> for a complete description.
</p>
<p>Example :
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d (
        enhanced3d = true,
        color      = green,
        cbtics  = {[&quot;High&quot;,10],[&quot;Medium&quot;,05],[&quot;Low&quot;,0]},
        cbrange = [0, 10],
        explicit(x^2+y^2, x,-2,2,y,-2,2)) $
</pre>
<p>See also <code>enhanced3d</code>, <code>colorbox</code> and <code>cbrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<dl>
<dt><u>Graphic option:</u> <b>color</b>
<a name="IDX2029"></a>
</dt>
<dd><p>Default value: <code>blue</code>
</p>
<p><code>color</code> specifies the color for plotting lines, points, borders of
polygons and labels.
</p>
<p>Colors can be given as names or in hexadecimal <i>rgb</i> code.
</p>
<p>Available color names are:
</p><pre class="verbatim">white            black            gray0            grey0 
gray10           grey10           gray20           grey20     
gray30           grey30           gray40           grey40     
gray50           grey50           gray60           grey60     
gray70           grey70           gray80           grey80
gray90           grey90           gray100          grey100 
gray             grey             light_gray       light_grey 
dark_gray        dark_grey        red              light_red 
dark_red         yellow           light_yellow     dark_yellow
green            light_green      dark_green       spring_green
forest_green     sea_green        blue             light_blue 
dark_blue        midnight_blue    navy             medium_blue 
royalblue        skyblue          cyan             light_cyan 
dark_cyan        magenta          light_magenta    dark_magenta
turquoise        light_turquoise  dark_turquoise   pink 
light_pink       dark_pink        coral            light_coral 
orange_red       salmon           light_salmon     dark_salmon 
aquamarine       khaki            dark_khaki       goldenrod 
light_goldenrod  dark_goldenrod   gold             beige 
brown            orange           dark_orange      violet 
dark_violet      plum             purple
</pre>
<p>Cromatic componentes in hexadecimal code are introduced in the form <code>&quot;#rrggbb&quot;</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^2,x,_1,1), /* default is black */
             color = red,
             explicit(0.5 + x^2,x,-1,1),
             color = blue,
             explicit(1 + x^2,x,-1,1),
             color = light_blue,
             explicit(1.5 + x^2,x,-1,1),
             color = &quot;#23ab0f&quot;,
             label([&quot;This is a label&quot;,0,1.2])  )$
</pre>
<p>See also <code>fill_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-colorbox"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>colorbox</b>
<a name="IDX2030"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>If <code>colorbox</code> is <code>true</code>, a color scale without label is drawn together with 
<code>image</code> 2D objects, or coloured 3d objects. If <code>colorbox</code> is <code>false</code>, no 
color scale is shown. If <code>colorbox</code> is a string, a color scale with label is drawn.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<p>Color scale and images.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) im: apply('matrix,
                 makelist(makelist(random(200),i,1,30),i,1,30))$
(%i3) draw2d(image(im,0,0,30,30))$
(%i4) draw2d(colorbox = false, image(im,0,0,30,30))$
</pre>
<p>Color scale and 3D coloured object.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        colorbox   = &quot;Magnitude&quot;,
        enhanced3d = true,
        explicit(x^2+y^2,x,-1,1,y,-1,1))$
</pre>
<p>See also <code>palette</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-columns"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>columns</b>
<a name="IDX2031"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>columns</code> is the number of columns in multiple plots.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) scene1: gr2d(title=&quot;Ellipse&quot;,
                   nticks=30,
                   parametric(2*cos(t),5*sin(t),t,0,2*%pi))$
(%i3) scene2: gr2d(title=&quot;Triangle&quot;,
                   polygon([4,5,7],[6,4,2]))$
(%i4) draw(scene1, scene2, columns = 2)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-contour"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>contour</b>
<a name="IDX2032"></a>
</dt>
<dd><p>Default value: <code>none</code>
</p>
<p>Option <code>contour</code> enables the user to select where to plot contour lines.
Possible values are:
</p>
<ul>
<li>
<code>none</code>:
no contour lines are plotted.

</li><li>
<code>base</code>:
contour lines are projected on the xy plane.

</li><li>
<code>surface</code>:
contour lines are plotted on the surface.

</li><li>
<code>both</code>:
two contour lines are plotted: on the xy plane and on the surface.

</li><li>
<code>map</code>:
contour lines are projected on the xy plane, and the view point is
set just in the vertical.

</li></ul>

<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(20*exp(-x^2-y^2)-10,x,0,2,y,-3,3),
             contour_levels = 15,
             contour        = both,
             surface_hide   = true) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-contour_005flevels"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>contour_levels</b>
<a name="IDX2033"></a>
</dt>
<dd><p>Default value: 5
</p>
<p>This graphic option controls the way contours are drawn. 
<code>contour_levels</code> can be set to a positive integer number, a list of three
numbers or an arbitrary set of numbers:
</p>
<ul>
<li>
When option <code>contour_levels</code> is bounded to positive integer <var>n</var>,
<var>n</var> contour lines will be drawn at equal intervals. By default, five
equally spaced contours are plotted.

</li><li>
When option <code>contour_levels</code> is bounded to a list of length three of the
form <code>[lowest,s,highest]</code>, contour lines are plotted from <code>lowest</code> 
to <code>highest</code> in steps of <code>s</code>.

</li><li>
When option <code>contour_levels</code> is bounded to a set of numbers of the
form <code>{n1, n2, ...}</code>, contour lines are plotted at values <code>n1</code>,
<code>n2</code>, ...
</li></ul>

<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Examples:
</p>
<p>Ten equally spaced contour lines. The actual number of
levels can be adjusted to give simple labels.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw3d(color = green,
             explicit(20*exp(-x^2-y^2)-10,x,0,2,y,-3,3),
             contour_levels = 10,
             contour        = both,
             surface_hide   = true) $
</pre>

<p>From -8 to 8 in steps of 4.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw3d(color = green,
             explicit(20*exp(-x^2-y^2)-10,x,0,2,y,-3,3),
             contour_levels = [-8,4,8],
             contour        = both,
             surface_hide   = true) $
</pre>
<p>Isolines at levels -7, -6, 0.8 and 5.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw3d(color = green,
             explicit(20*exp(-x^2-y^2)-10,x,0,2,y,-3,3),
             contour_levels = {-7, -6, 0.8, 5},
             contour        = both,
             surface_hide   = true) $
</pre>
<p>See also <code>contour</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-data_005ffile_005fname"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>data_file_name</b>
<a name="IDX2034"></a>
</dt>
<dd><p>Default value: <code>&quot;data.gnuplot&quot;</code>
</p>
<p>This is the name of the file with the numeric data needed
by Gnuplot to build the requested plot.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>See example in <code>gnuplot_file_name</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-delay"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>delay</b>
<a name="IDX2035"></a>
</dt>
<dd><p>Default value: 5
</p>
<p>This is the delay in 1/100 seconds of frames in animated gif files.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw(
        delay     = 100,
        file_name = &quot;zzz&quot;,
        terminal  = 'animated_gif,
        gr2d(explicit(x^2,x,-1,1)),
        gr2d(explicit(x^3,x,-1,1)),
        gr2d(explicit(x^4,x,-1,1)));
End of animation sequence
(%o2)          [gr2d(explicit), gr2d(explicit), gr2d(explicit)]
</pre>
<p>Option <code>delay</code> is only active in animated gif's; it is ignored in
any other case.
</p>
<p>See also <code>terminal</code>, <code>dimensions</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-dimensions"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>dimensions</b>
<a name="IDX2036"></a>
</dt>
<dd><p>Default value: <code>[600,500]</code>
</p>
<p>Dimensions of the output terminal. Its value is a list formed by
the width and the height. The meaning of the two numbers depends on
the terminal you are working with.
</p>
<p>With terminals <code>gif</code>, <code>animated_gif</code>, <code>png</code>, <code>jpg</code>,
<code>svg</code>, <code>screen</code>, <code>wxt</code>, and <code>aquaterm</code>,
the integers represent the number of points in each direction. If they
are not intergers, they are rounded.
</p>
<p>With terminals <code>eps</code>, <code>eps_color</code>, <code>pdf</code>, and 
<code>pdfcairo</code>, both numbers represent hundredths of cm, which
means that, by default, pictures in these formats are 6 cm in
width and 5 cm in height.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>Examples:
</p>
<p>Option <code>dimensions</code> applied to file output
and to wxt canvas.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        dimensions = [300,300],
        terminal   = 'png,
        explicit(x^4,x,-1,1)) $
(%i3) draw2d(
        dimensions = [300,300],
        terminal   = 'wxt,
        explicit(x^4,x,-1,1)) $
</pre>
<p>Option <code>dimensions</code> applied to eps output.
We want an eps file with A4 portrait dimensions.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) A4portrait: 100*[21, 29.7]$
(%i3) draw3d(
        dimensions = A4portrait,
        terminal   = 'eps,
        explicit(x^2-y^2,x,-2,2,y,-2,2)) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-draw_005frealpart"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>draw_realpart</b>
<a name="IDX2037"></a>
</dt>
<dd><p>Default value: <code>true</code>
</p>
<p>When <code>true</code>, functions to be drawn are considered as complex functions whose
real part value should be plotted; when <code>false</code>, nothing will be plotted when
the function does not give a real value. 
</p>
<p>This option affects objects <code>explicit</code> and <code>parametric</code> in 2D and 3D, and
<code>parametric_surface</code>.
</p>
<p>Example:
</p>
<p>Option <code>draw_realpart</code> affects objects <code>explicit</code> and <code>parametric</code>.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        draw_realpart = false,
        explicit(sqrt(x^2  - 4*x) - x, x, -1, 5),
        color         = red,
        draw_realpart = true,
        parametric(x,sqrt(x^2  - 4*x) - x + 1, x, -1, 5) );
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-enhanced3d"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>enhanced3d</b>
<a name="IDX2038"></a>
</dt>
<dd><p>Default value: <code>none</code>
</p>
<p>If <code>enhanced3d</code> is <code>none</code>, surfaces are not colored in 3D plots.
In order to get a colored surface, a list must be assigned to option
<code>enhanced3d</code>, where the first element is an expression and the rest
are the names of the variables or parameters used in that expression. A list such 
<code>[f(x,y,z), x, y, z]</code> means that point <code>[x,y,z]</code> of the surface 
is assigned number <code>f(x,y,z)</code>, which will be colored according to 
the actual <code>palette</code>. For those 3D graphic objects defined in terms of
parameters, it is possible to define the color number in terms of
the parameters, as in <code>[f(u), u]</code>, as in objects <code>parametric</code> and 
<code>tube</code>, or <code>[f(u,v), u, v]</code>, as in object <code>parametric_surface</code>.
While all 3D objects admit the model based on absolute coordinates,
<code>[f(x,y,z), x, y, z]</code>, only two of them, namely <code>explicit</code>
and <code>elevation_grid</code>, accept also models defined on the <code>[x,y]</code> coordinates,
<code>[f(x,y), x, y]</code>. 3D graphic object <code>implicit</code> accepts only the
<code>[f(x,y,z), x, y, z]</code> model. Object <code>points</code> accepts also the
<code>[f(x,y,z), x, y, z]</code> model, but when points have a chronological nature,
model <code>[f(k), k]</code> is also valid, being <code>k</code> an ordering parameter.
</p>
<p>When <code>enhanced3d</code> is assigned something different to <code>none</code>, options
<code>color</code> and <code>surface_hide</code> are ignored.
</p>
<p>The names of the variables defined in the lists may be different to those
used in the definitions of the graphic objects.
</p>
<p>In order to maintain back compatibility, <code>enhanced3d = false</code> is equivalent
to <code>enhanced3d = none</code>, and <code>enhanced3d = true</code> is equivalent to 
<code>enhanced3d = [z, x, y, z]</code>.  If an expression is given to <code>enhanced3d</code>,
its variables must be the same used in the surface definition. This is not
necessary when using lists.
</p>
<p>See option <code>palette</code> to learn how palettes are specified.
</p>
<p>Examples:
</p>
<p><code>explicit</code> object with coloring defined by the <code>[f(x,y,z), x, y, z]</code> model.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         enhanced3d = [x-z/10,x,y,z],
         palette    = gray,
         explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3))$
</pre>
<p><code>explicit</code> object with coloring defined by the <code>[f(x,y), x, y]</code> model.
The names of the variables defined in the lists may be different to those
used in the definitions of the graphic objects; in this case, <code>r</code> corresponds
to <code>x</code>, and <code>s</code> to <code>y</code>.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         enhanced3d = [sin(r*s),r,s],
         explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3))$
</pre>
<p><code>parametric</code> object with coloring defined by the <code>[f(x,y,z), x, y, z]</code> model.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         nticks = 100,
         line_width = 2,
         enhanced3d = [if y&gt;= 0 then 1 else 0, x, y, z],
         parametric(sin(u)^2,cos(u),u,u,0,4*%pi)) $
</pre>
<p><code>parametric</code> object with coloring defined by the <code>[f(u), u]</code> model.
In this case, <code>(u-1)^2</code> is a shortcut for <code>[(u-1)^2,u]</code>.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         nticks = 60,
         line_width = 3,
         enhanced3d = (u-1)^2,
         parametric(cos(5*u)^2,sin(7*u),u-2,u,0,2))$
</pre>
<p><code>elevation_grid</code> object with coloring defined by the <code>[f(x,y), x, y]</code> model.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) m: apply(
           matrix,
           makelist(makelist(cos(i^2/80-k/30),k,1,30),i,1,20)) $
(%i3) draw3d(
         enhanced3d = [cos(x*y*10),x,y],
         elevation_grid(m,-1,-1,2,2),
         xlabel = &quot;x&quot;,
         ylabel = &quot;y&quot;);
</pre>
<p><code>tube</code> object with coloring defined by the <code>[f(x,y,z), x, y, z]</code> model.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         enhanced3d = [cos(x-y),x,y,z],
         palette = gray,
         xu_grid = 50,
         tube(cos(a), a, 0, 1, a, 0, 4*%pi) )$
</pre>
<p><code>tube</code> object with coloring defined by the <code>[f(u), u]</code> model.
Here, <code>enhanced3d = -a</code> would be the shortcut for <code>enhanced3d = [-foo,foo]</code>.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         tube_extremes = [open, closed],
         palette = [26,15,-2],
         enhanced3d = [-foo, foo],
         tube(a, a, a^2, 1, a, -2, 2) )$
</pre>
<p><code>implicit</code> and <code>points</code> objects with coloring defined by the <code>[f(x,y,z), x, y, z]</code> model.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         enhanced3d = [x-y,x,y,z],
         implicit((x^2+y^2+z^2-1)*(x^2+(y-1.5)^2+z^2-0.5)=0.015,
                  x,-1,1,y,-1.2,2.3,z,-1,1)) $
(%i3) m: makelist([random(1.0),random(1.0),random(1.0)],k,1,2000)$
(%i4) draw3d(
         point_type = filled_circle,
         point_size = 2,
         enhanced3d = [u+v-w,u,v,w],
         points(m) ) $
</pre>
<p>When points have a chronological nature, model <code>[f(k), k]</code> is also valid,
being <code>k</code> an ordering parameter.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) m:makelist([random(1.0), random(1.0), random(1.0)],k,1,5)$
(%i3) draw3d(
         enhanced3d = [sin(j), j],
         point_size = 3,
         point_type = filled_circle,
         points_joined = true,
         points(m)) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-error_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>error_type</b>
<a name="IDX2039"></a>
</dt>
<dd><p>Default value: <code>y</code>
</p>
<p>Depending on its value, which can be <code>x</code>, <code>y</code>, or <code>xy</code>,
graphic object <code>errors</code> will draw points with horizontal, vertical,
or both, error bars. When <code>error_type=boxes</code>, boxes will be drawn
instead of crosses.
</p>
<p>See also <code>errors</code>.
</p></dd></dl>



<p><a name="Item_003a-file_005fname"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>file_name</b>
<a name="IDX2040"></a>
</dt>
<dd><p>Default value: <code>&quot;maxima_out&quot;</code>
</p>
<p>This is the name of the file where terminals <code>png</code>, <code>jpg</code>, <code>gif</code>,
<code>eps</code>, <code>eps_color</code>, <code>pdf</code>, <code>pdfcairo</code> and <code>svg</code>
will save the graphic.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(file_name = &quot;myfile&quot;,
             explicit(x^2,x,-1,1),
             terminal  = 'png)$
</pre>
<p>See also <code>terminal</code>, <code>dimensions</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-fill_005fcolor"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>fill_color</b>
<a name="IDX2041"></a>
</dt>
<dd><p>Default value: <code>&quot;red&quot;</code>
</p>
<p><code>fill_color</code> specifies the color for filling polygons and
2d <code>explicit</code> functions.
</p>
<p>See <code>color</code> to learn how colors are specified.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-fill_005fdensity"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>fill_density</b>
<a name="IDX2042"></a>
</dt>
<dd><p>Default value: 0
</p>
<p><code>fill_density</code> is a number between 0 and 1 that specifies
the intensity of the <code>fill_color</code> in <code>bars</code> objects.
</p>
<p>See <code>bars</code> for examples.
</p></dd></dl>




<p><a name="Item_003a-filled_005ffunc"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>filled_func</b>
<a name="IDX2043"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>Option <code>filled_func</code> controls how regions limited by functions
should be filled. When <code>filled_func</code> is <code>true</code>, the region
bounded by the function defined with object <code>explicit</code> and the
bottom of the graphic window is filled with <code>fill_color</code>. When 
<code>filled_func</code> contains a function expression, then the region bounded
by this function and the function defined with object <code>explicit</code> 
will be filled. By default, explicit functions are not filled. 
</p>
<p>This option affects only the 2d graphic object <code>explicit</code>.
</p>
<p>Example:
</p>
<p>Region bounded by an <code>explicit</code> object and the bottom of the
graphic window.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(fill_color  = red,
             filled_func = true,
             explicit(sin(x),x,0,10) )$
</pre>
<p>Region bounded by an <code>explicit</code> object and the function
defined by option <code>filled_func</code>. Note that the variable in
<code>filled_func</code> must be the same as that used in <code>explicit</code>.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(fill_color  = grey,
             filled_func = sin(x),
             explicit(-sin(x),x,0,%pi));
</pre>
<p>See also <code>fill_color</code> and <code>explicit</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-font"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>font</b>
<a name="IDX2044"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>This option can be used to set the font face to be used by the terminal.
Only one font face and size can be used throughout the plot.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>See also <code>font_size</code>.
</p>
<p>Gnuplot doesn't handle fonts by itself, it leaves this task to the
support libraries of the different terminals, each one with its own
philosophy about it. A brief summary follows:
</p>
<ul>
<li>
<i>x11</i>:
Uses the normal x11 font server mechanism.

<p>Example:
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(font      = &quot;Arial&quot;, 
             font_size = 20,
             label([&quot;Arial font, size 20&quot;,1,1]))$
</pre>
</li><li>
<i>windows</i>:
The windows terminal doesn't support changing of fonts from inside the plot.
Once the plot has been generated, the font can be changed right-clicking on
the menu of the graph window.

</li><li>
<i>png, jpeg, gif</i>:
The <i>libgd</i> library uses the font path stored in the environment
variable <code>GDFONTPATH</code>; in this case, it is only necessary to
set option <code>font</code> to the font's name. It is also possible to
give the complete path to the font file.

<p>Examples:
</p>
<p>Option <code>font</code> can be given the complete path to the font file:
</p><pre class="example">(%i1) load(draw)$
(%i2) path: &quot;/usr/share/fonts/truetype/freefont/&quot; $
(%i3) file: &quot;FreeSerifBoldItalic.ttf&quot; $
(%i4) draw2d(
        font      = concat(path, file), 
        font_size = 20,
        color     = red,
        label([&quot;FreeSerifBoldItalic font, size 20&quot;,1,1]),
        terminal  = png)$
</pre>
<p>If environment variable <code>GDFONTPATH</code> is set to the
path where font files are allocated, it is possible to
set graphic option <code>font</code> to the name of the font.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        font      = &quot;FreeSerifBoldItalic&quot;, 
        font_size = 20,
        color     = red,
        label([&quot;FreeSerifBoldItalic font, size 20&quot;,1,1]),
        terminal  = png)$
</pre>
</li><li>
<i>Postscript</i>:
Standard Postscript fonts are:<br>
<code>&quot;Times-Roman&quot;</code>, <code>&quot;Times-Italic&quot;</code>, <code>&quot;Times-Bold&quot;</code>,
<code>&quot;Times-BoldItalic&quot;</code>,<br>
<code>&quot;Helvetica&quot;</code>, <code>&quot;Helvetica-Oblique&quot;</code>, <code>&quot;Helvetica-Bold&quot;</code>,<br>
<code>&quot;Helvetic-BoldOblique&quot;</code>, <code>&quot;Courier&quot;</code>,
<code>&quot;Courier-Oblique&quot;</code>, <code>&quot;Courier-Bold&quot;</code>,<br>
and <code>&quot;Courier-BoldOblique&quot;</code>.
  
<p>Example:
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        font      = &quot;Courier-Oblique&quot;, 
        font_size = 15,
        label([&quot;Courier-Oblique font, size 15&quot;,1,1]),
        terminal = eps)$
</pre>
</li><li>
<i>pdf</i>:
Uses same fonts as <i>Postscript</i>.

</li><li>
<i>pdfcairo</i>:
Uses same fonts as <i>wxt</i>.

</li><li>
<i>wxt</i>:
The <i>pango</i> library finds fonts via the <code>fontconfig</code> utility.

</li><li>
<i>aqua</i>:
Default is <code>&quot;Times-Roman&quot;</code>.
</li></ul>

<p>The gnuplot documentation is an important source of information about terminals and fonts.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-font_005fsize"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>font_size</b>
<a name="IDX2045"></a>
</dt>
<dd><p>Default value: 10
</p>
<p>This option can be used to set the font size to be used by the terminal.
Only one font face and size can be used throughout the plot. <code>font_size</code> is
active only when option <code>font</code> is not equal to the empty string.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>See also <code>font</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-gnuplot_005ffile_005fname"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>gnuplot_file_name</b>
<a name="IDX2046"></a>
</dt>
<dd><p>Default value: <code>&quot;maxout.gnuplot&quot;</code>
</p>
<p>This is the name of the file with the necessary commands to
be processed by Gnuplot.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
       file_name = &quot;my_file&quot;,
       gnuplot_file_name = &quot;my_commands_for_gnuplot&quot;,
       data_file_name    = &quot;my_data_for_gnuplot&quot;,
       terminal          = png,
       explicit(x^2,x,-1,1)) $
</pre>
<p>See also <code>data_file_name</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>grid</b>
<a name="IDX2047"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>grid</code> is <code>true</code>, a grid will be drawn on the <var>xy</var> plane.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(grid = true,
             explicit(exp(u),u,-2,2))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-head_005fangle"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>head_angle</b>
<a name="IDX2048"></a>
</dt>
<dd><p>Default value: 45
</p>
<p><code>head_angle</code> indicates the angle, in degrees, between the arrow heads and
the segment.
</p>
<p>This option is relevant only for <code>vector</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [0,10],
             yrange      = [0,9],
             head_length = 0.7,
             head_angle  = 10,
             vector([1,1],[0,6]),
             head_angle  = 20,
             vector([2,1],[0,6]),
             head_angle  = 30,
             vector([3,1],[0,6]),
             head_angle  = 40,
             vector([4,1],[0,6]),
             head_angle  = 60,
             vector([5,1],[0,6]),
             head_angle  = 90,
             vector([6,1],[0,6]),
             head_angle  = 120,
             vector([7,1],[0,6]),
             head_angle  = 160,
             vector([8,1],[0,6]),
             head_angle  = 180,
             vector([9,1],[0,6]) )$
</pre>
<p>See also <code>head_both</code>, <code>head_length</code>, and <code>head_type</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-head_005fboth"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>head_both</b>
<a name="IDX2049"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>head_both</code> is <code>true</code>, vectors are plotted with two arrow heads.
If <code>false</code>, only one arrow is plotted.
</p>
<p>This option is relevant only for <code>vector</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [0,8],
             yrange      = [0,8],
             head_length = 0.7,
             vector([1,1],[6,0]),
             head_both   = true,
             vector([1,7],[6,0]) )$
</pre>
<p>See also <code>head_length</code>, <code>head_angle</code>, and <code>head_type</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-head_005flength"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>head_length</b>
<a name="IDX2050"></a>
</dt>
<dd><p>Default value: 2
</p>
<p><code>head_length</code> indicates, in <var>x</var>-axis units, the length of arrow heads.
</p>
<p>This option is relevant only for <code>vector</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [0,12],
             yrange      = [0,8],
             vector([0,1],[5,5]),
             head_length = 1,
             vector([2,1],[5,5]),
             head_length = 0.5,
             vector([4,1],[5,5]),
             head_length = 0.25,
             vector([6,1],[5,5]))$
</pre>
<p>See also <code>head_both</code>, <code>head_angle</code>, and <code>head_type</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-head_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>head_type</b>
<a name="IDX2051"></a>
</dt>
<dd><p>Default value: <code>filled</code>
</p>
<p><code>head_type</code> is used to specify how arrow heads are plotted. Possible
values are: <code>filled</code> (closed and filled arrow heads), <code>empty</code>
(closed but not filled arrow heads), and <code>nofilled</code> (open arrow heads).
</p>
<p>This option is relevant only for <code>vector</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [0,12],
             yrange      = [0,10],
             head_length = 1,
             vector([0,1],[5,5]), /* default type */
             head_type = 'empty,
             vector([3,1],[5,5]),
             head_type = 'nofilled,
             vector([6,1],[5,5]))$
</pre>
<p>See also <code>head_both</code>, <code>head_angle</code>, and <code>head_length</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-ip_005fgrid"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ip_grid</b>
<a name="IDX2052"></a>
</dt>
<dd><p>Default value: <code>[50, 50]</code>
</p>
<p><code>ip_grid</code> sets the grid for the first sampling in implicit plots.
</p>
<p>This option is relevant only for <code>implicit</code> objects.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-ip_005fgrid_005fin"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ip_grid_in</b>
<a name="IDX2053"></a>
</dt>
<dd><p>Default value: <code>[5, 5]</code>
</p>
<p><code>ip_grid_in</code> sets the grid for the second sampling in implicit plots.
</p>
<p>This option is relevant only for <code>implicit</code> objects.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-key"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>key</b>
<a name="IDX2054"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p><code>key</code> is the name of a function in the legend. If <code>key</code> is an
empty string, no key is assigned to the function.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>, <code>polygon</code>, <code>rectangle</code>,
<code>ellipse</code>, <code>vector</code>, <code>explicit</code>, <code>implicit</code>,
<code>parametric</code>, and <code>polar</code>.

</li><li>
<code>gr3d</code>: <code>points</code>, <code>explicit</code>, <code>parametric</code>,
and <code>parametric_surface</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(key   = &quot;Sinus&quot;,
             explicit(sin(x),x,0,10),
             key   = &quot;Cosinus&quot;,
             color = red,
             explicit(cos(x),x,0,10) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-label_005falignment"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>label_alignment</b>
<a name="IDX2055"></a>
</dt>
<dd><p>Default value: <code>center</code>
</p>
<p><code>label_alignment</code> is used to specify where to write labels with
respect to the given coordinates. Possible values are: <code>center</code>,
<code>left</code>, and <code>right</code>.
</p>
<p>This option is relevant only for <code>label</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange          = [0,10],
             yrange          = [0,10],
             points_joined   = true,
             points([[5,0],[5,10]]),
             color           = blue,
             label([&quot;Centered alignment (default)&quot;,5,2]),
             label_alignment = 'left,
             label([&quot;Left alignment&quot;,5,5]),
             label_alignment = 'right,
             label([&quot;Right alignment&quot;,5,8]))$
</pre>
<p>See also <code>label_orientation</code>, and <code>color</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-label_005forientation"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>label_orientation</b>
<a name="IDX2056"></a>
</dt>
<dd><p>Default value: <code>horizontal</code>
</p>
<p><code>label_orientation</code> is used to specify orientation of labels.
Possible values are: <code>horizontal</code>, and <code>vertical</code>.
</p>
<p>This option is relevant only for <code>label</code> objects.
</p>
<p>Example:
</p>
<p>In this example, a dummy point is added to get an image.
Package <code>draw</code> needs always data to draw an scene.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange     = [0,10],
             yrange     = [0,10],
             point_size = 0,
             points([[5,5]]),
             color      = navy,
             label([&quot;Horizontal orientation (default)&quot;,5,2]),
             label_orientation = 'vertical,
             color             = &quot;#654321&quot;,
             label([&quot;Vertical orientation&quot;,1,5]))$
</pre>
<p>See also <code>label_alignment</code> and <code>color</code>. 
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-line_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>line_type</b>
<a name="IDX2057"></a>
</dt>
<dd><p>Default value: <code>solid</code>
</p>
<p><code>line_type</code> indicates how lines are displayed; possible values are
<code>solid</code> and <code>dots</code>.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>, <code>polygon</code>, <code>rectangle</code>, 
<code>ellipse</code>, <code>vector</code>, <code>explicit</code>, <code>implicit</code>, 
<code>parametric</code> and <code>polar</code>.

</li><li>
<code>gr3d</code>: <code>points</code>, <code>explicit</code>, <code>parametric</code> and <code>parametric_surface</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(line_type = dots,
             explicit(1 + x^2,x,-1,1),
             line_type = solid, /* default */
             explicit(2 + x^2,x,-1,1))$
</pre>
<p>See also <code>line_width</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-line_005fwidth"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>line_width</b>
<a name="IDX2058"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>line_width</code> is the width of plotted lines.
Its value must be a positive number.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>, <code>polygon</code>, <code>rectangle</code>, 
<code>ellipse</code>, <code>vector</code>, <code>explicit</code>, <code>implicit</code>, 
<code>parametric</code> and <code>polar</code>.

</li><li>
<code>gr3d</code>: <code>points</code> and <code>parametric</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^2,x,-1,1), /* default width */
             line_width = 5.5,
             explicit(1 + x^2,x,-1,1),
             line_width = 10,
             explicit(2 + x^2,x,-1,1))$
</pre>
<p>See also <code>line_type</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-logcb"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>logcb</b>
<a name="IDX2059"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>logcb</code> is <code>true</code>, the tics in the colorbox will be drawn in the
logarithmic scale.
</p>
<p>When <code>enhanced3d</code> or <code>colorbox</code> is <code>false</code>, option <code>logcb</code> has
no effect.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d (
        enhanced3d = true,
        color      = green,
        logcb = true,
        logz  = true,
        palette = [-15,24,-9],
        explicit(exp(x^2-y^2), x,-2,2,y,-2,2)) $
</pre>
<p>See also <code>enhanced3d</code>, <code>colorbox</code> and <code>cbrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>logx</b>
<a name="IDX2060"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>logx</code> is <code>true</code>, the <var>x</var> axis will be drawn in the
logarithmic scale.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(log(x),x,0.01,5),
             logx = true)$
</pre>
<p>See also <code>logy</code> and <code>logz</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>logy</b>
<a name="IDX2061"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>logy</code> is <code>true</code>, the <var>y</var> axis will be drawn in the
logarithmic scale.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(logy = true,
             explicit(exp(x),x,0,5))$
</pre>
<p>See also <code>logx</code> and <code>logz</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-logz"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>logz</b>
<a name="IDX2062"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>logz</code> is <code>true</code>, the <var>z</var> axis will be drawn in the
logarithmic scale.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(logz = true,
             explicit(exp(u^2+v^2),u,-2,2,v,-2,2))$
</pre>
<p>See also <code>logx</code> and <code>logy</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>nticks</b>
<a name="IDX2063"></a>
</dt>
<dd><p>Default value: 29
</p>
<p>In 2d, <code>nticks</code> gives the initial number of points used by the
adaptive plotting routine for explicit objects. It is also the
number of points that will be shown in parametric and polar curves.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>ellipse</code>, <code>explicit</code>, <code>parametric</code> and <code>polar</code>.

</li><li>
<code>gr3d</code>: <code>parametric</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(transparent = true,
             ellipse(0,0,4,2,0,180),
             nticks = 5,
             ellipse(0,0,4,2,180,180) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>palette</b>
<a name="IDX2064"></a>
</dt>
<dd><p>Default value: <code>color</code>
</p>
<p><code>palette</code> indicates how to map gray levels onto color components.
It works together with option <code>enhanced3d</code> in 3D graphics,
who associates every point of a surfaces to a real number or gray level.
It also works with gray images. With <code>palette</code>, levels are transformed into colors.
</p>
<p>There are two ways for defining these transformations.
</p>
<p>First, <code>palette</code> can be a vector of length three with components 
ranging from -36 to +36; each value is an index for a formula mapping the levels
onto red, green and blue colors, respectively:
</p><pre class="example"> 0: 0               1: 0.5           2: 1
 3: x               4: x^2           5: x^3
 6: x^4             7: sqrt(x)       8: sqrt(sqrt(x))
 9: sin(90x)       10: cos(90x)     11: |x-0.5|
12: (2x-1)^2       13: sin(180x)    14: |cos(180x)|
15: sin(360x)      16: cos(360x)    17: |sin(360x)|
18: |cos(360x)|    19: |sin(720x)|  20: |cos(720x)|
21: 3x             22: 3x-1         23: 3x-2
24: |3x-1|         25: |3x-2|       26: (3x-1)/2 
27: (3x-2)/2       28: |(3x-1)/2|   29: |(3x-2)/2|
30: x/0.32-0.78125 31: 2*x-0.84     32: 4x;1;-2x+1.84;x/0.08-11.5
33: |2*x - 0.5|    34: 2*x          35: 2*x - 0.5
36: 2*x - 1
</pre><p>negative numbers mean negative colour component.
<code>palette = gray</code> and <code>palette = color</code> are short cuts for
<code>palette = [3,3,3]</code> and <code>palette = [7,5,15]</code>, respectively.
</p>
<p>Second, <code>palette</code> can be a user defined lookup table. In this case,
the format for building a lookup table of length <code>n</code> is
<code>palette=[color_1, color_2, ..., color_n]</code>, where <code>color_i</code> is
a well formed color (see option <code>color</code>), such that <code>color_1</code> is
assigned to the lowest gray level and <code>color_n</code> to the highest. The rest
of colors are interpolated.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Examples:
</p>
<p>It works together with option <code>enhanced3d</code> in 3D graphics.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        enhanced3d = [z-x+2*y,x,y,z],
        palette = [32, -8, 17],
        explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3))$
</pre>
<p>It also works with gray images.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) im: apply(
           'matrix,
            makelist(makelist(random(200),i,1,30),i,1,30))$
(%i3) /* palette = color, default */
      draw2d(image(im,0,0,30,30))$
(%i4) draw2d(palette = gray, image(im,0,0,30,30))$
(%i5) draw2d(palette = [15,20,-4],
             colorbox=false,
             image(im,0,0,30,30))$
</pre>
<p><code>palette</code> can be a user defined lookup table.
In this example, low values of <code>x</code> are colored
in red, and higher values in yellow.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
         palette = [red, blue, yellow],
         enhanced3d = x,
         explicit(x^2+y^2,x,-1,1,y,-1,1)) $
</pre>
<p>See also <code>colorbox</code> and <code>enhanced3d</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-point_005fsize"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>point_size</b>
<a name="IDX2065"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>point_size</code> sets the size for plotted points. It must be a
non negative number.
</p>
<p>This option has no effect when graphic option <code>point_type</code> is
set to <code>dot</code>.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>.

</li><li>
<code>gr3d</code>: <code>points</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(points(makelist([random(20),random(50)],k,1,10)),
        point_size = 5,
        points(makelist(k,k,1,20),makelist(random(30),k,1,20)))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>point_type</b>
<a name="IDX2066"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>point_type</code> indicates how isolated points are displayed; the value of this
option can be any integer index greater or equal than -1, or the name of
a point style: <code>$none</code> (-1), <code>dot</code> (0), <code>plus</code> (1), <code>multiply</code> (2),
<code>asterisk</code> (3), <code>square</code> (4), <code>filled_square</code> (5), <code>circle</code> (6),
<code>filled_circle</code> (7), <code>up_triangle</code> (8), <code>filled_up_triangle</code> (9),
<code>down_triangle</code> (10), <code>filled_down_triangle</code> (11), <code>diamant</code> (12) and
<code>filled_diamant</code> (13).
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>.

</li><li>
<code>gr3d</code>: <code>points</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange = [0,10],
             yrange = [0,10],
             point_size = 3,
             point_type = diamant,
             points([[1,1],[5,1],[9,1]]),
             point_type = filled_down_triangle,
             points([[1,2],[5,2],[9,2]]),
             point_type = asterisk,
             points([[1,3],[5,3],[9,3]]),
             point_type = filled_diamant,
             points([[1,4],[5,4],[9,4]]),
             point_type = 5,
             points([[1,5],[5,5],[9,5]]),
             point_type = 6,
             points([[1,6],[5,6],[9,6]]),
             point_type = filled_circle,
             points([[1,7],[5,7],[9,7]]),
             point_type = 8,
             points([[1,8],[5,8],[9,8]]),
             point_type = filled_diamant,
             points([[1,9],[5,9],[9,9]]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-points_005fjoined"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>points_joined</b>
<a name="IDX2067"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>When <code>points_joined</code> is <code>true</code>, points are joined by lines; when <code>false</code>,
isolated points are drawn. A third possible value for this graphic option is 
<code>impulses</code>; in such case, vertical segments are drawn from points to the x-axis (2D)
or to the xy-plane (3D).
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>points</code>.

</li><li>
<code>gr3d</code>: <code>points</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange        = [0,10],
             yrange        = [0,4],
             point_size    = 3,
             point_type    = up_triangle,
             color         = blue,
             points([[1,1],[5,1],[9,1]]),
             points_joined = true,
             point_type    = square,
             line_type     = dots,
             points([[1,2],[5,2],[9,2]]),
             point_type    = circle,
             color         = red,
             line_width    = 7,
             points([[1,3],[5,3],[9,3]]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-proportional_005faxes"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>proportional_axes</b>
<a name="IDX2068"></a>
</dt>
<dd><p>Default value: <code>none</code>
</p>
<p>When <code>proportional_axes</code> is equal to <code>xy</code> or <code>xyz</code>,
a 2D or 3D scene will be drawn with axes proportional to their relative
lengths.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>This option works with Gnuplot version 4.2.6 or greater.
</p>
<p>Examples:
</p>
<p>Single 2D plot.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        ellipse(0,0,1,1,0,360),
        transparent=true,
        color = blue,
        line_width = 4,
        ellipse(0,0,2,1/2,0,360),
        proportional_axes = xy) $
</pre>
<p>Multiplot.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw(
        terminal = wxt,
        gr2d(proportional_axes = xy,
             explicit(x^2,x,0,1)),
        gr2d(explicit(x^2,x,0,1),
             xrange = [0,1],
             yrange = [0,2],
             proportional_axes=xy),
        gr2d(explicit(x^2,x,0,1)))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-surface_005fhide"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>surface_hide</b>
<a name="IDX2069"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>surface_hide</code> is <code>true</code>, hidden parts are not plotted in 3d surfaces.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw(columns=2,
           gr3d(explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3)),
           gr3d(surface_hide = true,
                explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3)) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-terminal"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>terminal</b>
<a name="IDX2070"></a>
</dt>
<dd><p>Default value: <code>screen</code>
</p>
<p>Selects the terminal to be used by Gnuplot; possible values are:
<code>screen</code> (default), <code>png</code>, <code>pngcairo</code>, <code>jpg</code>, <code>gif</code>, 
<code>eps</code>, <code>eps_color</code>, <code>epslatex</code>, <code>epslatex_standalone</code>, 
<code>svg</code>, <code>dumb</code>, <code>dumb_file</code>, <code>pdf</code>, <code>pdfcairo</code>, 
<code>wxt</code>, <code>animated_gif</code>, <code>multipage_pdfcairo</code>, <code>multipage_pdf</code>, 
<code>multipage_eps</code>, <code>multipage_eps_color</code>, and <code>aquaterm</code>.
</p>
<p>Terminals <code>screen</code>, <code>wxt</code> and <code>aquaterm</code> can be also defined as a list
with two elements: the name of the terminal itself and a non negative integer number.
In this form, multiple windows can be opened at the same time, each with its
corresponding number. This feature does not work in Windows platforms.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter. It can be also used as an argument of function <code>draw</code>.
</p>
<p>N.B. pdfcairo requires Gnuplot 4.3 or newer. 
<code>pdf</code> requires Gnuplot to be compiled with the option <code>--enable-pdf</code> and libpdf must
be installed. The pdf library is available from: <a href="http://www.pdflib.com/en/download/pdflib-family/pdflib-lite/">http://www.pdflib.com/en/download/pdflib-family/pdflib-lite/</a>
</p>
<p>Examples:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) /* screen terminal (default) */
      draw2d(explicit(x^2,x,-1,1))$
(%i3) /* png file */
      draw2d(terminal  = 'png,
             explicit(x^2,x,-1,1))$
(%i4) /* jpg file */
      draw2d(terminal   = 'jpg,
             dimensions = [300,300],
             explicit(x^2,x,-1,1))$
(%i5) /* eps file */
      draw2d(file_name = &quot;myfile&quot;,
             explicit(x^2,x,-1,1),
             terminal  = 'eps)$
(%i6) /* pdf file */
      draw2d(file_name = &quot;mypdf&quot;,
             dimensions = 100*[12.0,8.0],
             explicit(x^2,x,-1,1),
             terminal  = 'pdf)$
(%i7) /* wxwidgets window */
      draw2d(explicit(x^2,x,-1,1),
             terminal  = 'wxt)$
</pre>
<p>Multiple windows.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^5,x,-2,2), terminal=[screen, 3])$
(%i3) draw2d(explicit(x^2,x,-2,2), terminal=[screen, 0])$
</pre>
<p>An animated gif file.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw(
        delay     = 100,
        file_name = &quot;zzz&quot;,
        terminal  = 'animated_gif,
        gr2d(explicit(x^2,x,-1,1)),
        gr2d(explicit(x^3,x,-1,1)),
        gr2d(explicit(x^4,x,-1,1)));
End of animation sequence
(%o2)          [gr2d(explicit), gr2d(explicit), gr2d(explicit)]
</pre>
<p>Option <code>delay</code> is only active in animated gif's; it is ignored in
any other case.
</p>
<p>Multipage output in eps format.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw(
        file_name = &quot;parabol&quot;,
        terminal  = multipage_eps,
        dimensions = 100*[10,10],
        gr2d(explicit(x^2,x,-1,1)),
        gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1))) $
</pre>
<p>See also <code>file_name</code>, <code>dimensions</code> and <code>delay</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>title</b>
<a name="IDX2071"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>Option <code>title</code>, a string, is the main title for the scene.
By default, no title is written.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(exp(u),u,-2,2),
             title = &quot;Exponential function&quot;)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-transform"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>transform</b>
<a name="IDX2072"></a>
</dt>
<dd><p>Default value: <code>none</code>
</p>
<p>If <code>transform</code> is <code>none</code>, the space is not transformed and
graphic objects are drawn as defined. When a space transformation is
desired, a list must be assigned to option <code>transform</code>. In case of
a 2D scene, the list takes the form <code>[f1(x,y), f2(x,y), x, y]</code>.
In case of a 3D scene, the list is of the form
<code>[f1(x,y,z), f2(x,y,z), f3(x,y,z), x, y, z]</code>.
</p>
<p>The names of the variables defined in the lists may be different to those
used in the definitions of the graphic objects.
</p>
<p>Examples:
</p>
<p>Rotation in 2D.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) th : %pi / 4$
(%i3) draw2d(
        color = &quot;#e245f0&quot;,
        proportional_axes = 'xy,
        line_width = 8,
        triangle([3,2],[7,2],[5,5]),
        border     = false,
        fill_color = yellow,
        transform  = [cos(th)*x - sin(th)*y,
                      sin(th)*x + cos(th)*y, x, y],
        triangle([3,2],[7,2],[5,5]) )$
</pre>
<p>Translation in 3D.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        color     = &quot;#a02c00&quot;,
        explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3),
        transform = [x+10,y+10,z+10,x,y,z],
        color     = blue,
        explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>



<p><a name="Item_003a-transparent"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>transparent</b>
<a name="IDX2073"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>transparent</code> is <code>false</code>, interior regions of polygons are 
filled according to <code>fill_color</code>.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr2d</code>: <code>polygon</code>, <code>rectangle</code>, and <code>ellipse</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(polygon([[3,2],[7,2],[5,5]]),
             transparent = true,
             color       = blue,
             polygon([[5,2],[9,2],[7,5]]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-tube_005fextremes"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>tube_extremes</b>
<a name="IDX2074"></a>
</dt>
<dd><p>Default value: <code>[open, open]</code>
</p>
<p>A list with two possible elements, <code>open</code> and <code>closed</code>,
indicating whether the extremes of a graphic object <code>tube</code> remain open
or must be closed. By default, both extremes are left open.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        tube_extremes = [open, closed],
        tube(0, 0, a, 1,
             a, 0, 8) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-unit_005fvectors"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>unit_vectors</b>
<a name="IDX2075"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>unit_vectors</code> is <code>true</code>, vectors are plotted with module 1.
This is useful for plotting vector fields. If <code>unit_vectors</code> is <code>false</code>,
vectors are plotted with its original length.
</p>
<p>This option is relevant only for <code>vector</code> objects.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [-1,6],
             yrange      = [-1,6],
             head_length = 0.1,
             vector([0,0],[5,2]),
             unit_vectors = true,
             color        = red,
             vector([0,3],[5,2]))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-user_005fpreamble"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>user_preamble</b>
<a name="IDX2076"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>Expert Gnuplot users can make use of this option to fine tune Gnuplot's
behaviour by writing settings to be sent before the <code>plot</code> or <code>splot</code>
command.
</p>
<p>The value of this option must be a string or a list of strings (one per line).
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<p>The <i>dumb</i> terminal is not supported by package <code>draw</code>,
but it is possible to set it by making use of option <code>user_preamble</code>,
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(exp(x)-1,x,-1,1),
             parametric(cos(u),sin(u),u,0,2*%pi),
             user_preamble=&quot;set terminal dumb&quot;)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-view"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>view</b>
<a name="IDX2077"></a>
</dt>
<dd><p>Default value: <code>[60,30]</code>
</p>
<p>A pair of angles, measured in degrees, indicating the view direction in a 
3D scene. The first angle is the vertical rotation around the <var>x</var> axis, in 
the range <em>[0, 360]</em>. The second one is the horizontal rotation around
the <var>z</var> axis, in the range <em>[0, 360]</em>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(view = [170, 360],
             explicit(sin(x^2+y^2),x,-2,2,y,-2,2) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-wired_005fsurface"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>wired_surface</b>
<a name="IDX2078"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>Indicates whether 3D surfaces in <code>enhanced3d</code> mode show the grid joinning
the points or not.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        enhanced3d    = [sin(x),x,y],
        wired_surface = true,
        explicit(x^2+y^2,x,-1,1,y,-1,1)) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-x_005fvoxel"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>x_voxel</b>
<a name="IDX2079"></a>
</dt>
<dd><p>Default value: 10
</p>
<p><code>x_voxel</code> is the number of voxels in the x direction to
be used by the <i>marching cubes algorithm</i> implemented
by the 3d <code>implicit</code> object. It is also used by graphic
object <code>region</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-xaxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xaxis</b>
<a name="IDX2080"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xaxis</code> is <code>true</code>, the <var>x</var> axis is drawn.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             xaxis       = true,
             xaxis_color = blue)$
</pre>
<p>See also <code>xaxis_width</code>, <code>xaxis_type</code> and <code>xaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-xaxis_005fcolor"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xaxis_color</b>
<a name="IDX2081"></a>
</dt>
<dd><p>Default value: <code>&quot;black&quot;</code>
</p>
<p><code>xaxis_color</code> specifies the color for the <var>x</var> axis. See
<code>color</code> to know how colors are defined.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             xaxis       = true,
             xaxis_color = red)$
</pre>
<p>See also <code>xaxis</code>, <code>xaxis_width</code> and <code>xaxis_type</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xaxis_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xaxis_secondary</b>
<a name="IDX2082"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xaxis_secondary</code> is <code>true</code>, function values can be plotted with 
respect to the second <var>x</var> axis, which will be drawn on top of the scene.
</p>
<p>Note that this is a local graphics option which only affects to 2d plots.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
         key   = &quot;Bottom x-axis&quot;,
         explicit(x+1,x,1,2),
         color = red,
         key   = &quot;Above x-axis&quot;,
         xtics_secondary = true,
         xaxis_secondary = true,
         explicit(x^2,x,-1,1)) $
</pre>
<p>See also <code>xrange_secondary</code>, <code>xtics_secondary</code>, <code>xtics_rotate_secondary</code>,
<code>xtics_axis_secondary</code> and <code>xaxis_secondary</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-xaxis_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xaxis_type</b>
<a name="IDX2083"></a>
</dt>
<dd><p>Default value: <code>dots</code>
</p>
<p><code>xaxis_type</code> indicates how the <var>x</var> axis is displayed; 
possible values are <code>solid</code> and <code>dots</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             xaxis       = true,
             xaxis_type  = solid)$
</pre>
<p>See also <code>xaxis</code>, <code>xaxis_width</code> and <code>xaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xaxis_005fwidth"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xaxis_width</b>
<a name="IDX2084"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>xaxis_width</code> is the width of the <var>x</var> axis.
Its value must be a positive number.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             xaxis       = true,
             xaxis_width = 3)$
</pre>
<p>See also <code>xaxis</code>, <code>xaxis_type</code> and <code>xaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>xlabel</b>
<a name="IDX2085"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>Option <code>xlabel</code>, a string, is the label for the <var>x</var> axis.
By default, no label is written.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xlabel = &quot;Time&quot;,
             explicit(exp(u),u,-2,2),
             ylabel = &quot;Population&quot;)$
</pre>
<p>See also <code>ylabel</code>, and <code>zlabel</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xrange"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xrange</b>
<a name="IDX2086"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>xrange</code> is <code>auto</code>, the range for the <var>x</var> coordinate is
computed automatically.
</p>
<p>If the user wants a specific interval for <var>x</var>, it must be given as a 
Maxima list, as in <code>xrange=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange = [-3,5],
             explicit(x^2,x,-1,1))$
</pre>
<p>See also <code>yrange</code> and <code>zrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xrange_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xrange_secondary</b>
<a name="IDX2087"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>xrange_secondary</code> is <code>auto</code>, the range for the second <var>x</var> axis is
computed automatically.
</p>
<p>If the user wants a specific interval for the second <var>x</var> axis, it must be given as a 
Maxima list, as in <code>xrange_secondary=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>See also <code>xrange</code>, <code>yrange</code>, <code>zrange</code> and <code>yrange_secondary</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>





<dl>
<dt><u>Graphic option:</u> <b>xtics</b>
<a name="IDX2088"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the <var>x</var> axis.
</p>
<ul>
<li>
When option <code>xtics</code> is bounded to symbol <var>auto</var>, tic marks are
drawn automatically.

</li><li>
When option <code>xtics</code> is bounded to symbol <var>none</var>, tic marks are
not drawn.

</li><li>
When option <code>xtics</code> is bounded to a positive number, this is the distance
between two consecutive tic marks.

</li><li>
When option <code>xtics</code> is bounded to a list of length three of the
form <code>[start,incr,end]</code>, tic marks are plotted from <code>start</code> 
to <code>end</code> at intervals of length <code>incr</code>.

</li><li>
When option <code>xtics</code> is bounded to a set of numbers of the
form <code>{n1, n2, ...}</code>, tic marks are plotted at values <code>n1</code>,
<code>n2</code>, ...

</li><li>
When option <code>xtics</code> is bounded to a set of pairs of the
form <code>{[&quot;label1&quot;, n1], [&quot;label2&quot;, n2], ...}</code>, tic marks corresponding to values <code>n1</code>,
<code>n2</code>, ... are labeled with <code>&quot;label1&quot;</code>, <code>&quot;label2&quot;</code>, ..., respectively.
</li></ul>

<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Examples:
</p>
<p>Disable tics.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xtics = 'none,
             explicit(x^3,x,-1,1)  )$
</pre>
<p>Tics every 1/4 units.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xtics = 1/4,
             explicit(x^3,x,-1,1)  )$
</pre>
<p>Tics from -3/4 to 3/4 in steps of 1/8.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xtics = [-3/4,1/8,3/4],
             explicit(x^3,x,-1,1)  )$
</pre>
<p>Tics at points -1/2, -1/4 and 3/4.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xtics = {-1/2,-1/4,3/4},
             explicit(x^3,x,-1,1)  )$
</pre>
<p>Labeled tics.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(xtics = {[&quot;High&quot;,0.75],[&quot;Medium&quot;,0],[&quot;Low&quot;,-0.75]},
             explicit(x^3,x,-1,1)  )$
</pre>
<p>See also <code>ytics</code>, and <code>ztics</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xtics_005faxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xtics_axis</b>
<a name="IDX2089"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xtics_axis</code> is <code>true</code>, tic marks and their labels are plotted just
along the <var>x</var> axis, if it is <code>false</code> tics are plotted on the border.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xtics_005frotate"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xtics_rotate</b>
<a name="IDX2090"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xtics_rotate</code> is <code>true</code>, tic marks on the <var>x</var> axis are rotated 
90 degrees.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-xtics_005frotate_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xtics_rotate_secondary</b>
<a name="IDX2091"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xtics_rotate_secondary</code> is <code>true</code>, tic marks on the secondary <var>x</var> axis are rotated 
90 degrees.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xtics_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xtics_secondary</b>
<a name="IDX2092"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the second <var>x</var> axis.
</p>
<p>See <code>xtics</code> for a complete description.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xtics_005fsecondary_005faxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xtics_secondary_axis</b>
<a name="IDX2093"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>xtics_secondary_axis</code> is <code>true</code>, tic marks and their labels are plotted just
along the secondary <var>x</var> axis, if it is <code>false</code> tics are plotted on the border.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-xu_005fgrid"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xu_grid</b>
<a name="IDX2094"></a>
</dt>
<dd><p>Default value: 30
</p>
<p><code>xu_grid</code> is the number of coordinates of the first variable
(<code>x</code> in explicit and <code>u</code> in parametric 3d surfaces) to 
build the grid of sample points.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr3d</code>: <code>explicit</code> and <code>parametric_surface</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(xu_grid = 10,
             yv_grid = 50,
             explicit(x^2+y^2,x,-3,3,y,-3,3) )$
</pre>
<p>See also <code>yv_grid</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-xy_005ffile"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xy_file</b>
<a name="IDX2095"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p><code>xy_file</code> is the name of the file where the coordinates will be saved
after clicking with the mouse button and hitting the 'x' key. By default,
no coordinates are saved.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-xyplane"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>xyplane</b>
<a name="IDX2096"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>Allocates the xy-plane in 3D scenes. When <code>xyplane</code> is
<code>false</code>, the xy-plane is placed automatically; when it is
a real number, the xy-plane intersects the z-axis at this level.
This option has no effect in 2D scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(xyplane = %e-2,
             explicit(x^2+y^2,x,-1,1,y,-1,1))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-y_005fvoxel"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>y_voxel</b>
<a name="IDX2097"></a>
</dt>
<dd><p>Default value: 10
</p>
<p><code>y_voxel</code> is the number of voxels in the y direction to
be used by the <i>marching cubes algorithm</i> implemented
by the 3d <code>implicit</code> object. It is also used by graphic
object <code>region</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yaxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yaxis</b>
<a name="IDX2098"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>yaxis</code> is <code>true</code>, the <var>y</var> axis is drawn.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             yaxis       = true,
             yaxis_color = blue)$
</pre>
<p>See also <code>yaxis_width</code>, <code>yaxis_type</code> and <code>yaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yaxis_005fcolor"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yaxis_color</b>
<a name="IDX2099"></a>
</dt>
<dd><p>Default value: <code>&quot;black&quot;</code>
</p>
<p><code>yaxis_color</code> specifies the color for the <var>y</var> axis. See
<code>color</code> to know how colors are defined.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             yaxis       = true,
             yaxis_color = red)$
</pre>
<p>See also <code>yaxis</code>, <code>yaxis_width</code> and <code>yaxis_type</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yaxis_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yaxis_secondary</b>
<a name="IDX2100"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>yaxis_secondary</code> is <code>true</code>, function values can be plotted with 
respect to the second <var>y</var> axis, which will be drawn on the right side of the
scene.
</p>
<p>Note that this is a local graphics option which only affects to 2d plots.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
         explicit(sin(x),x,0,10),
         yaxis_secondary = true,
         ytics_secondary = true,
         color = blue,
         explicit(100*sin(x+0.1)+2,x,0,10));
</pre>
<p>See also <code>yrange_secondary</code>, <code>ytics_secondary</code>, <code>ytics_rotate_secondary</code>
and <code>ytics_axis_secondary</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yaxis_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yaxis_type</b>
<a name="IDX2101"></a>
</dt>
<dd><p>Default value: <code>dots</code>
</p>
<p><code>yaxis_type</code> indicates how the <var>y</var> axis is displayed; 
possible values are <code>solid</code> and <code>dots</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             yaxis       = true,
             yaxis_type  = solid)$
</pre>
<p>See also <code>yaxis</code>, <code>yaxis_width</code> and <code>yaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yaxis_005fwidth"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yaxis_width</b>
<a name="IDX2102"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>yaxis_width</code> is the width of the <var>y</var> axis.
Its value must be a positive number.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(x^3,x,-1,1),
             yaxis       = true,
             yaxis_width = 3)$
</pre>
<p>See also <code>yaxis</code>, <code>yaxis_type</code> and <code>yaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>ylabel</b>
<a name="IDX2103"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>Option <code>ylabel</code>, a string, is the label for the <var>y</var> axis.
By default, no label is written.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xlabel = &quot;Time&quot;,
             ylabel = &quot;Population&quot;,
             explicit(exp(u),u,-2,2) )$
</pre>
<p>See also <code>xlabel</code>, and <code>zlabel</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yrange"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yrange</b>
<a name="IDX2104"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>yrange</code> is <code>auto</code>, the range for the <var>y</var> coordinate is
computed automatically.
</p>
<p>If the user wants a specific interval for <var>y</var>, it must be given as a 
Maxima list, as in <code>yrange=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(yrange = [-2,3],
             explicit(x^2,x,-1,1),
             xrange = [-3,3])$
</pre>
<p>See also <code>xrange</code>, <code>yrange_secondary</code> and <code>zrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yrange_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yrange_secondary</b>
<a name="IDX2105"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>yrange_secondary</code> is <code>auto</code>, the range for the second <var>y</var> axis is
computed automatically.
</p>
<p>If the user wants a specific interval for the second <var>y</var> axis, it must be given as a 
Maxima list, as in <code>yrange_secondary=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
         explicit(sin(x),x,0,10),
         yaxis_secondary = true,
         ytics_secondary = true,
         yrange = [-3, 3],
         yrange_secondary = [-20, 20],
         color = blue,
         explicit(100*sin(x+0.1)+2,x,0,10)) $
</pre>
<p>See also <code>xrange</code>, <code>yrange</code> and <code>zrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>ytics</b>
<a name="IDX2106"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the <var>y</var> axis.
</p>
<p>See <code>xtics</code> for a complete description.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-ytics_005faxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ytics_axis</b>
<a name="IDX2107"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ytics_axis</code> is <code>true</code>, tic marks and their labels are plotted just
along the <var>y</var> axis, if it is <code>false</code> tics are plotted on the border.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-ytics_005frotate"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ytics_rotate</b>
<a name="IDX2108"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ytics_rotate</code> is <code>true</code>, tic marks on the <var>y</var> axis are rotated 
90 degrees.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-ytics_005frotate_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ytics_rotate_secondary</b>
<a name="IDX2109"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ytics_rotate_secondary</code> is <code>true</code>, tic marks on the secondary <var>y</var> axis are rotated 
90 degrees.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-ytics_005fsecondary"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ytics_secondary</b>
<a name="IDX2110"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the second <var>y</var> axis.
</p>
<p>See <code>xtics</code> for a complete description.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-ytics_005fsecondary_005faxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ytics_secondary_axis</b>
<a name="IDX2111"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ytics_secondary_axis</code> is <code>true</code>, tic marks and their labels are plotted just
along the secondary <var>y</var> axis, if it is <code>false</code> tics are plotted on the border.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-yv_005fgrid"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>yv_grid</b>
<a name="IDX2112"></a>
</dt>
<dd><p>Default value: 30
</p>
<p><code>yv_grid</code> is the number of coordinates of the second variable
(<code>y</code> in explicit and <code>v</code> in parametric 3d surfaces) to 
build the grid of sample points.
</p>
<p>This option affects the following graphic objects:
</p><ul>
<li>
<code>gr3d</code>: <code>explicit</code> and <code>parametric_surface</code>.
</li></ul>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(xu_grid = 10,
             yv_grid = 50,
             explicit(x^2+y^2,x,-3,3,y,-3,3) )$
</pre>
<p>See also <code>xu_grid</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-z_005fvoxel"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>z_voxel</b>
<a name="IDX2113"></a>
</dt>
<dd><p>Default value: 10
</p>
<p><code>z_voxel</code> is the number of voxels in the z direction to
be used by the <i>marching cubes algorithm</i> implemented
by the 3d <code>implicit</code> object.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-zaxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>zaxis</b>
<a name="IDX2114"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>zaxis</code> is <code>true</code>, the <var>z</var> axis is drawn in 3D plots.
This option has no effect in 2D scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1),
             zaxis       = true,
             zaxis_type  = solid,
             zaxis_color = blue)$
</pre>
<p>See also <code>zaxis_width</code>, <code>zaxis_type</code> and <code>zaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-zaxis_005fcolor"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>zaxis_color</b>
<a name="IDX2115"></a>
</dt>
<dd><p>Default value: <code>&quot;black&quot;</code>
</p>
<p><code>zaxis_color</code> specifies the color for the <var>z</var> axis. See
<code>color</code> to know how colors are defined. 
This option has no effect in 2D scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1),
             zaxis       = true,
             zaxis_type  = solid,
             zaxis_color = red)$
</pre>
<p>See also <code>zaxis</code>, <code>zaxis_width</code> and <code>zaxis_type</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-zaxis_005ftype"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>zaxis_type</b>
<a name="IDX2116"></a>
</dt>
<dd><p>Default value: <code>dots</code>
</p>
<p><code>zaxis_type</code> indicates how the <var>z</var> axis is displayed; 
possible values are <code>solid</code> and <code>dots</code>.
This option has no effect in 2D scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1),
             zaxis       = true,
             zaxis_type  = solid)$
</pre>
<p>See also <code>zaxis</code>, <code>zaxis_width</code> and <code>zaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-zaxis_005fwidth"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>zaxis_width</b>
<a name="IDX2117"></a>
</dt>
<dd><p>Default value: 1
</p>
<p><code>zaxis_width</code> is the width of the <var>z</var> axis.
Its value must be a positive number. This option has no effect in 2D scenes.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(x^2+y^2,x,-1,1,y,-1,1),
             zaxis       = true,
             zaxis_type  = solid,
             zaxis_width = 3)$
</pre>
<p>See also <code>zaxis</code>, <code>zaxis_type</code> and <code>zaxis_color</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<dl>
<dt><u>Graphic option:</u> <b>zlabel</b>
<a name="IDX2118"></a>
</dt>
<dd><p>Default value: <code>&quot;&quot;</code> (empty string)
</p>
<p>Option <code>zlabel</code>, a string, is the label for the <var>z</var> axis.
By default, no label is written.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(zlabel = &quot;Z variable&quot;,
             ylabel = &quot;Y variable&quot;,
             explicit(sin(x^2+y^2),x,-2,2,y,-2,2),
             xlabel = &quot;X variable&quot; )$
</pre>
<p>See also <code>xlabel</code>, and <code>ylabel</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-zrange"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>zrange</b>
<a name="IDX2119"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>If <code>zrange</code> is <code>auto</code>, the range for the <var>z</var> coordinate is
computed automatically.
</p>
<p>If the user wants a specific interval for <var>z</var>, it must be given as a 
Maxima list, as in <code>zrange=[-2, 3]</code>.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(yrange = [-3,3],
             zrange = [-2,5],
             explicit(x^2+y^2,x,-1,1,y,-1,1),
             xrange = [-3,3])$
</pre>
<p>See also <code>xrange</code> and <code>yrange</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>


<p><a name="Item_003a-ztics"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ztics</b>
<a name="IDX2120"></a>
</dt>
<dd><p>Default value: <code>auto</code>
</p>
<p>This graphic option controls the way tic marks are drawn on the <var>z</var> axis.
</p>
<p>See <code>xtics</code> for a complete description.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-ztics_005faxis"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ztics_axis</b>
<a name="IDX2121"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ztics_axis</code> is <code>true</code>, tic marks and their labels are plotted just
along the <var>z</var> axis, if it is <code>false</code> tics are plotted on the border.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-ztics_005frotate"></a>
</p><dl>
<dt><u>Graphic option:</u> <b>ztics_rotate</b>
<a name="IDX2122"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p>If <code>ztics_rotate</code> is <code>true</code>, tic marks on the <var>z</var> axis are rotated 
90 degrees.
</p>
<p>Since this is a global graphics option, its position in the scene description
does not matter.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<hr size="6">
<a name="SEC245"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC244" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC246" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC241" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.2.4 Graphics objects </h3>




<p><a name="Item_003a-bars"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>bars</b><i> ([<var>x1</var>,<var>h1</var>,<var>w1</var>], [<var>x2</var>,<var>h2</var>,<var>w2</var>, ...])</i>
<a name="IDX2123"></a>
</dt>
<dd><p>Draws vertical bars in 2D.
</p>
<p><b>2D</b>
</p>
<p><code>bars ([<var>x1</var>,<var>h1</var>,<var>w1</var>], [<var>x2</var>,<var>h2</var>,<var>w2</var>, ...])</code> 
draws bars centered at values <var>x1</var>, <var>x2</var>, ... with heights <var>h1</var>, <var>h2</var>, ...
and widths <var>w1</var>, <var>w2</var>, ...
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>key</code>, 
<code>fill_color</code>, <code>fill_density</code> and <code>line_width</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
       key          = &quot;Group A&quot;,
       fill_color   = blue,
       fill_density = 0.2,
       bars([0.8,5,0.4],[1.8,7,0.4],[2.8,-4,0.4]),
       key          = &quot;Group B&quot;,
       fill_color   = red,
       fill_density = 0.6,
       line_width   = 4,
       bars([1.2,4,0.4],[2.2,-2,0.4],[3.2,5,0.4]),
       xaxis = true);
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-cylindrical"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>cylindrical</b><i> (<var>radius</var>, <var>z</var>, <var>minz</var>, <var>maxz</var>, <var>azi</var>, <var>minazi</var>, <var>maxazi</var>)</i>
<a name="IDX2124"></a>
</dt>
<dd><p>Draws 3D functions defined in cylindrical coordinates.
</p>
<p><b>3D</b>
</p>
<p><code>cylindrical(<var>radius</var>, <var>z</var>, <var>minz</var>, <var>maxz</var>, <var>azi</var>,
<var>minazi</var>, <var>maxazi</var>)</code> plots the function <code><var>radius</var>(<var>z</var>,
<var>azi</var>)</code> defined in cylindrical coordinates, with variable <var>z</var> taking
values from <var>minz</var> to <var>maxz</var> and <i>azimuth</i> <var>azi</var> taking values
from <var>minazi</var> to <var>maxazi</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>xu_grid</code>, 
<code>yv_grid</code>, <code>line_type</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(cylindrical(1,z,-2,2,az,0,2*%pi))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-elevation_005fgrid"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>elevation_grid</b><i> (<var>mat</var>,<var>x0</var>,<var>y0</var>,<var>width</var>,<var>height</var>)</i>
<a name="IDX2125"></a>
</dt>
<dd><p>Draws matrix <var>mat</var> in 3D space. <var>z</var> values are taken from <var>mat</var>,
the abscissas range from <var>x0</var> to <em><var>x0</var> + <var>width</var></em>
and ordinates from <var>y0</var> to <em><var>y0</var> + <var>height</var></em>. Element <em>a(1,1)</em>
is projected on point <em>(x0,y0+height)</em>, <em>a(1,n)</em> on <em>(x0+width,y0+height)</em>,
<em>a(m,1)</em> on <em>(x0,y0)</em>, and <em>a(m,n)</em> on <em>(x0+width,y0)</em>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>line_type</code>,
<code>line_width</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code>, and <code>color</code>.
</p>
<p>In older versions of Maxima, <code>elevation_grid</code> was called <code>mesh</code>.
See also <code>mesh</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) m: apply(
            matrix,
            makelist(makelist(random(10.0),k,1,30),i,1,20)) $
(%i3) draw3d(
         color = blue,
         elevation_grid(m,0,0,3,2),
         xlabel = &quot;x&quot;,
         ylabel = &quot;y&quot;,
         surface_hide = true);
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-ellipse"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>ellipse</b><i> (<var>xc</var>, <var>yc</var>, <var>a</var>, <var>b</var>, <var>ang1</var>, <var>ang2</var>)</i>
<a name="IDX2126"></a>
</dt>
<dd><p>Draws ellipses and circles in 2D.
</p>

<p><b>2D</b>
</p>
<p><code>ellipse (<var>xc</var>, <var>yc</var>, <var>a</var>, <var>b</var>, <var>ang1</var>, <var>ang2</var>)</code>
plots an ellipse centered at <code>[<var>xc</var>, <var>yc</var>]</code> with horizontal and vertical
semi axis <var>a</var> and <var>b</var>, respectively, starting at angle <var>ang1</var> with an amplitude
equal to angle <var>ang2</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>nticks</code>, 
<code>transparent</code>, <code>fill_color</code>, <code>border</code>, <code>line_width</code>, 
<code>line_type</code>, <code>key</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(transparent = false,
             fill_color  = red,
             color       = gray30,
             transparent = false,
             line_width  = 5,
             ellipse(0,6,3,2,270,-270),
             /* center (x,y), a, b, start &amp; end in degrees */
             transparent = true,
             color       = blue,
             line_width  = 3,
             ellipse(2.5,6,2,3,30,-90),
             xrange      = [-3,6],
             yrange      = [2,9] )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-errors"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>errors</b><i> ([<var>x1</var>, <var>x2</var>, &hellip;], [<var>y1</var>, <var>y2</var>, &hellip;])</i>
<a name="IDX2127"></a>
</dt>
<dd><p>Draws points with error bars, horizontally, vertically or both, depending on the
value of option <code>error_type</code>.
</p>
<p><b>2D</b>
</p>
<p>If <code>error_type = x</code>, arguments to <code>errors</code> must be of the form
<code>[x, y, xdelta]</code> or <code>[x, y, xlow, xhigh]</code>.  If <code>error_type = y</code>, 
arguments must be of the form <code>[x, y, ydelta]</code> or
<code>[x, y, ylow, yhigh]</code>.  If <code>error_type = xy</code> or
<code>error_type = boxes</code>, arguments to <code>errors</code> must be of the form
<code>[x, y, xdelta, ydelta]</code> or <code>[x, y, xlow, xhigh, ylow, yhigh]</code>.
</p>
<p>See also <code>error_type</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>error_type</code>, 
<code>points_joined</code>, <code>line_width</code>, <code>key</code>, <code>line_type</code>, 
<code>color</code>, <code>fill_density</code>, <code>xaxis_secondary</code>, and  <code>yaxis_secondary</code>.
</p>
<p>Option <code>fill_density</code> is only relevant when <code>error_type=boxes</code>.
</p>
<p>Examples:
</p>
<p>Horizontal error bars.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        error_type = y,
        errors([[1,2,1], [3,5,3], [10,3,1], [17,6,2]]))$
</pre>
<p>Vertical and horizontal error bars.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        error_type = xy,
        points_joined = true,
        color = blue,
        errors([[1,2,1,2], [3,5,2,1], [10,3,1,1], [17,6,1/2,2]])); 
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-explicit"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>explicit</b><i> (<var>fcn</var>,<var>var</var>,<var>minval</var>,<var>maxval</var>)</i>
<a name="IDX2128"></a>
</dt>
<dt><u>Graphic object:</u> <b>explicit</b><i> (<var>fcn</var>,<var>var1</var>,<var>minval1</var>,<var>maxval1</var>,<var>var2</var>,<var>minval2</var>,<var>maxval2</var>)</i>
<a name="IDX2129"></a>
</dt>
<dd><p>Draws explicit functions in 2D and 3D.
</p>
<p><b>2D</b>
</p>
<p><code>explicit(<var>fcn</var>,<var>var</var>,<var>minval</var>,<var>maxval</var>)</code> plots explicit function <var>fcn</var>,
with variable <var>var</var> taking values from <var>minval</var> to <var>maxval</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>nticks</code>, 
<code>adapt_depth</code>, <code>draw_realpart</code>, <code>line_width</code>, <code>line_type</code>, <code>key</code>, 
<code>filled_func</code>, <code>fill_color</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(line_width = 3,
             color      = blue,
             explicit(x^2,x,-3,3) )$
(%i3) draw2d(fill_color  = brown,
             filled_func = true,
             explicit(x^2,x,-3,3) )$
</pre>
<p><b>3D</b>
</p>
<p><code>explicit(<var>fcn</var>, <var>var1</var>, <var>minval1</var>, <var>maxval1</var>, <var>var2</var>,
<var>minval2</var>, <var>maxval2</var>)</code> plots the explicit function <var>fcn</var>, with
variable <var>var1</var> taking values from <var>minval1</var> to <var>maxval1</var> and
variable <var>var2</var> taking values from <var>minval2</var> to <var>maxval2</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>draw_realpart</code>, <code>xu_grid</code>,
<code>yv_grid</code>, <code>line_type</code>, <code>line_width</code>, <code>key</code>, <code>wired_surface</code>,
<code>enhanced3d</code>, and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(key   = &quot;Gauss&quot;,
             color = &quot;#a02c00&quot;,
             explicit(20*exp(-x^2-y^2)-10,x,-3,3,y,-3,3),
             yv_grid     = 10,
             color = blue,
             key   = &quot;Plane&quot;,
             explicit(x+y,x,-5,5,y,-5,5),
             surface_hide = true)$
</pre>
<p>See also <code>filled_func</code> for filled functions.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-image"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>image</b><i> (<var>im</var>,<var>x0</var>,<var>y0</var>,<var>width</var>,<var>height</var>)</i>
<a name="IDX2130"></a>
</dt>
<dd><p>Renders images in 2D.
</p>
<p><b>2D</b>
</p>
<p><code>image (<var>im</var>,<var>x0</var>,<var>y0</var>,<var>width</var>,<var>height</var>)</code> plots image <var>im</var> in the rectangular
region from vertex <code>(<var>x0</var>,<var>y0</var>)</code> to <code>(x0+<var>width</var>,y0+<var>height</var>)</code> on the real
plane. Argument <var>im</var> must be a matrix of real numbers, a matrix of
vectors of length three or a <var>picture</var> object.
</p>
<p>If <var>im</var> is a matrix of real numbers or a <var>levels picture</var> object,
pixel values are interpreted according to graphic option <code>palette</code>, 
which is a vector of length three with components 
ranging from -36 to +36; each value is an index for a formula mapping the levels
onto red, green and blue colors, respectively:
</p><pre class="example"> 0: 0               1: 0.5           2: 1
 3: x               4: x^2           5: x^3
 6: x^4             7: sqrt(x)       8: sqrt(sqrt(x))
 9: sin(90x)       10: cos(90x)     11: |x-0.5|
12: (2x-1)^2       13: sin(180x)    14: |cos(180x)|
15: sin(360x)      16: cos(360x)    17: |sin(360x)|
18: |cos(360x)|    19: |sin(720x)|  20: |cos(720x)|
21: 3x             22: 3x-1         23: 3x-2
24: |3x-1|         25: |3x-2|       26: (3x-1)/2
27: (3x-2)/2       28: |(3x-1)/2|   29: |(3x-2)/2|
30: x/0.32-0.78125                  31: 2*x-0.84
32: 4x;1;-2x+1.84;x/0.08-11.5
33: |2*x - 0.5|    34: 2*x          35: 2*x - 0.5
36: 2*x - 1
</pre><p>negative numbers mean negative colour component.
</p>
<p><code>palette = gray</code> and <code>palette = color</code> are short cuts for
<code>palette = [3,3,3]</code> and <code>palette = [7,5,15]</code>, respectively.
</p>
<p>If <var>im</var> is a matrix of vectors of length three or an <var>rgb picture</var> object,
they are interpreted as red, green and blue color components.
</p>
<p>Examples:
</p>
<p>If <var>im</var> is a matrix of real numbers, pixel values are interpreted according
to graphic option <code>palette</code>.
</p><pre class="example">(%i1) load(draw)$
(%i2) im: apply(
           'matrix,
            makelist(makelist(random(200),i,1,30),i,1,30))$
(%i3) /* palette = color, default */
      draw2d(image(im,0,0,30,30))$
(%i4) draw2d(palette = gray, image(im,0,0,30,30))$
(%i5) draw2d(palette = [15,20,-4],
             colorbox=false,
             image(im,0,0,30,30))$
</pre>
<p>See also <code>colorbox</code>.
</p>
<p>If <var>im</var> is a matrix of vectors of length three, they are interpreted
as red, green and blue color components.
</p><pre class="example">(%i1) load(draw)$
(%i2) im: apply(
            'matrix,
             makelist(
               makelist([random(300),
                         random(300),
                         random(300)],i,1,30),i,1,30))$
(%i3) draw2d(image(im,0,0,30,30))$
</pre>
<p>Package <code>draw</code> automatically loads package <code>picture</code>. In this
example, a level picture object is built by hand and then rendered.
</p><pre class="example">(%i1) load(draw)$
(%i2) im: make_level_picture([45,87,2,134,204,16],3,2);
(%o2)       picture(level, 3, 2, {Array:  #(45 87 2 134 204 16)})
(%i3) /* default color palette */
      draw2d(image(im,0,0,30,30))$
(%i4) /* gray palette */
      draw2d(palette = gray,
             image(im,0,0,30,30))$
</pre>
<p>An xpm file is read and then rendered.
</p><pre class="example">(%i1) load(draw)$
(%i2) im: read_xpm(&quot;myfile.xpm&quot;)$
(%i3) draw2d(image(im,0,0,10,7))$
</pre>
<p>See also <code>make_level_picture</code>, <code>make_rgb_picture</code> and <code>read_xpm</code>.
</p>
<p><a href="http://www.telefonica.net/web2/biomates/maxima/gpdraw/image">http://www.telefonica.net/web2/biomates/maxima/gpdraw/image</a><br>
contains more elaborated examples.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-implicit"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>implicit</b><i> (<var>fcn</var>,<var>x</var>,<var>xmin</var>,<var>xmax</var>,<var>y</var>,<var>ymin</var>,<var>ymax</var>)</i>
<a name="IDX2131"></a>
</dt>
<dt><u>Graphic object:</u> <b>implicit</b><i> (<var>fcn</var>,<var>x</var>,<var>xmin</var>,<var>xmax</var>,<var>y</var>,<var>ymin</var>,<var>ymax</var>,<var>z</var>,<var>zmin</var>,<var>zmax</var>)</i>
<a name="IDX2132"></a>
</dt>
<dd><p>Draws implicit functions in 2D and 3D.
</p>
<p><b>2D</b>
</p>
<p><code>implicit(<var>fcn</var>,<var>x</var>,<var>xmin</var>,<var>xmax</var>,<var>y</var>,<var>ymin</var>,<var>ymax</var>)</code>
plots the implicit function defined by <var>fcn</var>, with variable <var>x</var> taking values
from <var>xmin</var> to <var>xmax</var>, and variable <var>y</var> taking values
from <var>ymin</var> to <var>ymax</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>ip_grid</code>, 
<code>ip_grid_in</code>, <code>line_width</code>, <code>line_type</code>, <code>key</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(terminal  = eps,
             grid      = true,
             line_type = solid,
             key       = &quot;y^2=x^3-2*x+1&quot;,
             implicit(y^2=x^3-2*x+1, x, -4,4, y, -4,4),
             line_type = dots,
             key       = &quot;x^3+y^3 = 3*x*y^2-x-1&quot;,
             implicit(x^3+y^3 = 3*x*y^2-x-1, x,-4,4, y,-4,4),
             title     = &quot;Two implicit functions&quot; )$
</pre>
<p><b>3D</b>
</p>
<p><code>implicit (<var>fcn</var>,<var>x</var>,<var>xmin</var>,<var>xmax</var>, <var>y</var>,<var>ymin</var>,<var>ymax</var>, <var>z</var>,<var>zmin</var>,<var>zmax</var>)</code>
plots the implicit surface defined by <var>fcn</var>, with variable <var>x</var> taking values
from <var>xmin</var> to <var>xmax</var>, variable <var>y</var> taking values
from <var>ymin</var> to <var>ymax</var> and variable <var>z</var> taking values
from <var>zmin</var> to <var>zmax</var>. This object implements the <i>marching cubes algorithm</i>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>x_voxel</code>, 
<code>y_voxel</code>, <code>z_voxel</code>, <code>line_width</code>, <code>line_type</code>, <code>key</code>,
<code>wired_surface</code>, <code>enhanced3d</code>,and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        color=blue,
        implicit((x^2+y^2+z^2-1)*(x^2+(y-1.5)^2+z^2-0.5)=0.015,
                 x,-1,1,y,-1.2,2.3,z,-1,1),
        surface_hide=true);
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>





<dl>
<dt><u>Graphic object:</u> <b>label</b><i> ([<var>string</var>,<var>x</var>,<var>y</var>],...)</i>
<a name="IDX2133"></a>
</dt>
<dt><u>Graphic object:</u> <b>label</b><i> ([<var>string</var>,<var>x</var>,<var>y</var>,<var>z</var>],...)</i>
<a name="IDX2134"></a>
</dt>
<dd><p>Writes labels in 2D and 3D.
</p>
<p>Colored labels work only with Gnuplot 4.3. This is a known bug in package <code>draw</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>label_alignment</code>, 
<code>label_orientation</code> and <code>color</code>.
</p>
<p><b>2D</b>
</p>
<p><code>label([<var>string</var>,<var>x</var>,<var>y</var>])</code> writes the <var>string</var> at point
<code>[<var>x</var>,<var>y</var>]</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(yrange = [0.1,1.4],
             color = red,
             label([&quot;Label in red&quot;,0,0.3]),
             color = &quot;#0000ff&quot;,
             label([&quot;Label in blue&quot;,0,0.6]),
             color = light_blue,
             label([&quot;Label in light-blue&quot;,0,0.9],
                   [&quot;Another light-blue&quot;,0,1.2])  )$
</pre>
<p><b>3D</b>
</p>
<p><code>label([<var>string</var>,<var>x</var>,<var>y</var>,<var>z</var>])</code> writes the <var>string</var> at point
<code>[<var>x</var>,<var>y</var>,<var>z</var>]</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3),
             color = red,
             label([&quot;UP 1&quot;,-2,0,3], [&quot;UP 2&quot;,1.5,0,4]),
             color = blue,
             label([&quot;DOWN 1&quot;,2,0,-3]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-mesh"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>mesh</b><i> (<var>row_1</var>,<var>row_2</var>,...)</i>
<a name="IDX2135"></a>
</dt>
<dd><p>Draws a quadrangular mesh in 3D.
</p>
<p><b>3D</b>
</p>
<p>Argument <var>row_i</var> is a list of <var>n</var> 3D points of the form
<code>[[x_i1,y_i1,z_i1], ...,[x_in,y_in,z_in]]</code>, and all rows are
of equal length. All these points define an arbitrary surface in 3D and
in some sense it's a generalization of the <code>elevation_grid</code> object.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>line_type</code>, 
<code>line_width</code>, <code>color</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code>, and <code>transform</code>.
</p>
<p>Examples:
</p>
<p>A simple example.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d( 
         mesh([[1,1,3],   [7,3,1],[12,-2,4],[15,0,5]],
              [[2,7,8],   [4,3,1],[10,5,8], [12,7,1]],
              [[-2,11,10],[6,9,5],[6,15,1], [20,15,2]])) $
</pre>
<p>Plotting a triangle in 3D.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        line_width = 2,
        mesh([[1,0,0],[0,1,0]],
             [[0,0,1],[0,0,1]])) $
</pre>
<p>Two quadrilaterals.
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        surface_hide = true,
        line_width   = 3,
        color = red,
        mesh([[0,0,0], [0,1,0]],
             [[2,0,2], [2,2,2]]),
        color = blue,
        mesh([[0,0,2], [0,1,2]],
             [[2,0,4], [2,2,4]])) $
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-parametric"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>parametric</b><i> (<var>xfun</var>,<var>yfun</var>,<var>par</var>,<var>parmin</var>,<var>parmax</var>)</i>
<a name="IDX2136"></a>
</dt>
<dt><u>Graphic object:</u> <b>parametric</b><i> (<var>xfun</var>,<var>yfun</var>,<var>zfun</var>,<var>par</var>,<var>parmin</var>,<var>parmax</var>)</i>
<a name="IDX2137"></a>
</dt>
<dd><p>Draws parametric functions in 2D and 3D.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>nticks</code>, 
<code>line_width</code>, <code>line_type</code>, <code>key</code>, <code>color</code> and <code>enhanced3d</code>.
</p>
<p><b>2D</b>
</p>
<p>The command <code>parametric(<var>xfun</var>, <var>yfun</var>, <var>par</var>, <var>parmin</var>,
<var>parmax</var>)</code> plots the parametric function <code>[<var>xfun</var>, <var>yfun</var>]</code>,
with parameter <var>par</var> taking values from <var>parmin</var> to <var>parmax</var>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(explicit(exp(x),x,-1,3),
             color = red,
             key   = &quot;This is the parametric one!!&quot;,
             parametric(2*cos(rrr),rrr^2,rrr,0,2*%pi))$
</pre>
<p><b>3D</b>
</p>
<p><code>parametric(<var>xfun</var>, <var>yfun</var>, <var>zfun</var>, <var>par</var>, <var>parmin</var>,
<var>parmax</var>)</code> plots the parametric curve <code>[<var>xfun</var>, <var>yfun</var>,
<var>zfun</var>]</code>, with parameter <var>par</var> taking values from <var>parmin</var> to
<var>parmax</var>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3),
             color = royalblue,
             parametric(cos(5*u)^2,sin(7*u),u-2,u,0,2),
             color      = turquoise,
             line_width = 2,
             parametric(t^2,sin(t),2+t,t,0,2),
             surface_hide = true,
             title = &quot;Surface &amp; curves&quot; )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-parametric_005fsurface"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>parametric_surface</b><i> (<var>xfun</var>, <var>yfun</var>, <var>zfun</var>, <var>par1</var>, <var>par1min</var>, <var>par1max</var>, <var>par2</var>, <var>par2min</var>, <var>par2max</var>)</i>
<a name="IDX2138"></a>
</dt>
<dd><p>Draws parametric surfaces in 3D.
</p>
<p><b>3D</b>
</p>
<p>The command <code>parametric_surface(<var>xfun</var>, <var>yfun</var>, <var>zfun</var>,
<var>par1</var>, <var>par1min</var>, <var>par1max</var>, <var>par2</var>, <var>par2min</var>,
<var>par2max</var>)</code> plots the parametric surface <code>[<var>xfun</var>, <var>yfun</var>,
<var>zfun</var>]</code>, with parameter <var>par1</var> taking values from <var>par1min</var> to
<var>par1max</var> and parameter <var>par2</var> taking values from <var>par2min</var> to
<var>par2max</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>draw_realpart</code>, <code>xu_grid</code>, 
<code>yv_grid</code>, <code>line_type</code>, <code>line_width</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code>,
 and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(title          = &quot;Sea shell&quot;,
             xu_grid        = 100,
             yv_grid        = 25,
             view           = [100,20],
             surface_hide   = true,
             parametric_surface(0.5*u*cos(u)*(cos(v)+1),
                           0.5*u*sin(u)*(cos(v)+1),
                           u*sin(v) - ((u+3)/8*%pi)^2 - 20,
                           u, 0, 13*%pi, v, -%pi, %pi) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-points"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>points</b><i> ([[<var>x1</var>,<var>y1</var>], [<var>x2</var>,<var>y2</var>],...])</i>
<a name="IDX2139"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> ([<var>x1</var>,<var>x2</var>,...], [<var>y1</var>,<var>y2</var>,...])</i>
<a name="IDX2140"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> ([<var>y1</var>,<var>y2</var>,...])</i>
<a name="IDX2141"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> ([[<var>x1</var>,<var>y1</var>,<var>z1</var>], [<var>x2</var>,<var>y2</var>,<var>z2</var>],...])</i>
<a name="IDX2142"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> ([<var>x1</var>,<var>x2</var>,...], [<var>y1</var>,<var>y2</var>,...], [<var>z1</var>,<var>z2</var>,...])</i>
<a name="IDX2143"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>matrix</var>)</i>
<a name="IDX2144"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>1d_y_array</var>)</i>
<a name="IDX2145"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>1d_x_array</var>, <var>1d_y_array</var>)</i>
<a name="IDX2146"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>1d_x_array</var>, <var>1d_y_array</var>, <var>1d_z_array</var>)</i>
<a name="IDX2147"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>2d_xy_array</var>)</i>
<a name="IDX2148"></a>
</dt>
<dt><u>Graphic object:</u> <b>points</b><i> (<var>2d_xyz_array</var>)</i>
<a name="IDX2149"></a>
</dt>
<dd><p>Draws points in 2D and 3D.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>point_size</code>, 
<code>point_type</code>, <code>points_joined</code>, <code>line_width</code>, <code>key</code>,
<code>line_type</code> and <code>color</code>. In 3D mode, it is also affected by <code>enhanced3d</code>.
</p>
<p><b>2D</b>
</p>
<p><code>points ([[<var>x1</var>,<var>y1</var>], [<var>x2</var>,<var>y2</var>],...])</code> or
<code>points ([<var>x1</var>,<var>x2</var>,...], [<var>y1</var>,<var>y2</var>,...])</code>
plots points <code>[x1,y1]</code>, <code>[x2,y2]</code>, etc. If abscissas
are not given, they are set to consecutive positive integers, so that 
<code>points ([<var>y1</var>,<var>y2</var>,...])</code> draws points <code>[1,<var>y1</var>]</code>, <code>[2,<var>y2</var>]</code>, etc.
If <var>matrix</var> is a two-column or two-row matrix, <code>points (<var>matrix</var>)</code>
draws the associated points. If <var>matrix</var> is a one-column or one-row matrix,
abscissas are assigned automatically.
</p>
<p>If <var>1d_y_array</var> is a 1D lisp array of numbers, <code>points (<var>1d_y_array</var>)</code> plots them
setting abscissas to consecutive positive integers. <code>points (<var>1d_x_array</var>, <var>1d_y_array</var>)</code>
plots points with their coordinates taken from the two arrays passed as arguments. If
<var>2d_xy_array</var> is a 2D array with two columns, or with two rows, <code>points (<var>2d_xy_array</var>)</code>
plots the corresponding points on the plane.
</p>
<p>Examples:
</p>
<p>Two types of arguments for <code>points</code>, a list of pairs and two lists
of separate coordinates.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        key = &quot;Small points&quot;,
        points(makelist([random(20),random(50)],k,1,10)),
        point_type    = circle,
        point_size    = 3,
        points_joined = true,
        key           = &quot;Great points&quot;,
        points(makelist(k,k,1,20),makelist(random(30),k,1,20)),
        point_type    = filled_down_triangle,
        key           = &quot;Automatic abscissas&quot;,
        color         = red,
        points([2,12,8]))$
</pre>
<p>Drawing impulses.
</p><pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        points_joined = impulses,
        line_width    = 2,
        color         = red,
        points(makelist([random(20),random(50)],k,1,10)))$
</pre>
<p>Array with ordinates.
</p><pre class="example">(%i1) load(draw)$
(%i2) a: make_array (flonum, 100) $
(%i3) for i:0 thru 99 do a[i]: random(1.0) $
(%i4) draw2d(points(a)) $
</pre>
<p>Two arrays with separate coordinates.
</p><pre class="example">(%i1) load(draw)$
(%i2) x: make_array (flonum, 100) $
(%i3) y: make_array (fixnum, 100) $
(%i4) for i:0 thru 99 do (
        x[i]: float(i/100),
        y[i]: random(10) ) $
(%i5) draw2d(points(x, y)) $
</pre>
<p>A two-column 2D array.
</p><pre class="example">(%i1) load(draw)$
(%i2) xy: make_array(flonum, 100, 2) $
(%i3) for i:0 thru 99 do (
        xy[i, 0]: float(i/100),
        xy[i, 1]: random(10) ) $
(%i4) draw2d(points(xy)) $
</pre>
<p>Drawing an array filled with function <code>read_array</code>.
</p><pre class="example">(%i1) load(draw)$
(%i2) a: make_array(flonum,100) $
(%i3) read_array (file_search (&quot;pidigits.data&quot;), a) $
(%i4) draw2d(points(a)) $
</pre>
<p><b>3D</b>
</p>
<p><code>points([[<var>x1</var>, <var>y1</var>, <var>z1</var>], [<var>x2</var>, <var>y2</var>, <var>z2</var>],
...])</code> or <code>points([<var>x1</var>, <var>x2</var>, ...], [<var>y1</var>, <var>y2</var>, ...],
[<var>z1</var>, <var>z2</var>,...])</code> plots points <code>[<var>x1</var>, <var>y1</var>, <var>z1</var>]</code>,
<code>[<var>x2</var>, <var>y2</var>, <var>z2</var>]</code>, etc.  If <var>matrix</var> is a three-column
or three-row matrix, <code>points (<var>matrix</var>)</code> draws the associated points.
</p>
<p>When arguments are lisp arrays, <code>points (<var>1d_x_array</var>, <var>1d_y_array</var>, <var>1d_z_array</var>)</code>
takes coordinates from the three 1D arrays.  If <var>2d_xyz_array</var> is a 2D array with three columns,
or with three rows, <code>points (<var>2d_xyz_array</var>)</code> plots the corresponding points.
</p>
<p>Examples:
</p>
<p>One tridimensional sample,
</p><pre class="example">(%i1) load(draw)$
(%i2) load (numericalio)$
(%i3) s2 : read_matrix (file_search (&quot;wind.data&quot;))$
(%i4) draw3d(title = &quot;Daily average wind speeds&quot;,
             point_size = 2,
             points(args(submatrix (s2, 4, 5))) )$
</pre>
<p>Two tridimensional samples,
</p><pre class="example">(%i1) load(draw)$
(%i2) load (numericalio)$
(%i3) s2 : read_matrix (file_search (&quot;wind.data&quot;))$
(%i4) draw3d(
         title = &quot;Daily average wind speeds. Two data sets&quot;,
         point_size = 2,
         key        = &quot;Sample from stations 1, 2 and 3&quot;,
         points(args(submatrix (s2, 4, 5))),
         point_type = 4,
         key        = &quot;Sample from stations 1, 4 and 5&quot;,
         points(args(submatrix (s2, 2, 3))) )$
</pre>
<p>Unidimensional arrays,
</p><pre class="example">(%i1) load(draw)$
(%i2) x: make_array (fixnum, 10) $
(%i3) y: make_array (fixnum, 10) $
(%i4) z: make_array (fixnum, 10) $
(%i5) for i:0 thru 9 do (
        x[i]: random(10),
        y[i]: random(10),
        z[i]: random(10) ) $
(%i6) draw3d(points(x,y,z)) $
</pre>
<p>Bidimensional colored array,
</p><pre class="example">(%i1) load(draw)$
(%i2) xyz: make_array(fixnum, 10, 3) $
(%i3) for i:0 thru 9 do (
        xyz[i, 0]: random(10),
        xyz[i, 1]: random(10),
        xyz[i, 2]: random(10) ) $
(%i4) draw3d(
         enhanced3d = true,
         points_joined = true,
         points(xyz)) $
</pre>
<p>Color numbers explicitly specified by the user.
</p><pre class="example">(%i1) load(draw)$
(%i2) pts: makelist([t,t^2,cos(t)], t, 0, 15)$
(%i3) col_num: makelist(k, k, 1, length(pts))$
(%i4) draw3d(
        enhanced3d = ['part(col_num,k),k],
        point_size = 3,
        point_type = filled_circle,
        points(pts))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-polar"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>polar</b><i> (<var>radius</var>,<var>ang</var>,<var>minang</var>,<var>maxang</var>)</i>
<a name="IDX2150"></a>
</dt>
<dd><p>Draws 2D functions defined in polar coordinates.
</p>
<p><b>2D</b>
</p>
<p><code>polar (<var>radius</var>,<var>ang</var>,<var>minang</var>,<var>maxang</var>)</code> plots function 
<code><var>radius</var>(<var>ang</var>)</code> defined in polar coordinates, with variable 
<var>ang</var> taking values from 
<var>minang</var> to <var>maxang</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>nticks</code>, 
<code>line_width</code>, <code>line_type</code>, <code>key</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(user_preamble = &quot;set grid polar&quot;,
             nticks        = 200,
             xrange        = [-5,5],
             yrange        = [-5,5],
             color         = blue,
             line_width    = 3,
             title         = &quot;Hyperbolic Spiral&quot;,
             polar(10/theta,theta,1,10*%pi) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-polygon"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>polygon</b><i> ([[<var>x1</var>, <var>y1</var>], [<var>x2</var>, <var>y2</var>], &hellip;])</i>
<a name="IDX2151"></a>
</dt>
<dt><u>Graphic object:</u> <b>polygon</b><i> ([<var>x1</var>, <var>x2</var>, &hellip;], [<var>y1</var>, <var>y2</var>, &hellip;])</i>
<a name="IDX2152"></a>
</dt>
<dd><p>Draws polygons in 2D.
</p>
<p><b>2D</b>
</p>
<p>The commands <code>polygon([[<var>x1</var>, <var>y1</var>], [<var>x2</var>, <var>y2</var>], ...])</code>
or <code>polygon([<var>x1</var>, <var>x2</var>, ...], [<var>y1</var>, <var>y2</var>, ...])</code> plot on
the plane a polygon with vertices <code>[<var>x1</var>, <var>y1</var>]</code>, <code>[<var>x2</var>,
<var>y2</var>]</code>, etc.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>transparent</code>, 
<code>fill_color</code>, <code>border</code>, <code>line_width</code>, <code>key</code>,
 <code>line_type</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(color      = &quot;#e245f0&quot;,
             line_width = 8,
             polygon([[3,2],[7,2],[5,5]]),
             border      = false,
             fill_color  = yellow,
             polygon([[5,2],[9,2],[7,5]]) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-quadrilateral"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>quadrilateral</b><i> (<var>point_1</var>, <var>point_2</var>, <var>point_3</var>, <var>point_4</var>)</i>
<a name="IDX2153"></a>
</dt>
<dd><p>Draws a quadrilateral.
</p>
<p><b>2D</b>
</p>
<p><code>quadrilateral([<var>x1</var>, <var>y1</var>], [<var>x2</var>, <var>y2</var>], 
[<var>x3</var>, <var>y3</var>], [<var>x4</var>, <var>y4</var>])</code> draws a quadrilateral with vertices
<code>[<var>x1</var>, <var>y1</var>]</code>, <code>[<var>x2</var>, <var>y2</var>]</code>, 
<code>[<var>x3</var>, <var>y3</var>]</code>, and <code>[<var>x4</var>, <var>y4</var>]</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>:<br>
<code>transparent</code>, <code>fill_color</code>, <code>border</code>, <code>line_width</code>,
<code>key</code>, <code>xaxis_secondary</code>, <code>yaxis_secondary</code>, <code>line_type</code>,
<code>transform</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        quadrilateral([1,1],[2,2],[3,-1],[2,-2]))$
</pre>
<p><b>3D</b>
</p>
<p><code>quadrilateral([<var>x1</var>, <var>y1</var>, <var>z1</var>], [<var>x2</var>, <var>y2</var>,
<var>z2</var>], [<var>x3</var>, <var>y3</var>, <var>z3</var>], [<var>x4</var>, <var>y4</var>, <var>z4</var>])</code>
draws a quadrilateral with vertices <code>[<var>x1</var>, <var>y1</var>, <var>z1</var>]</code>,
<code>[<var>x2</var>, <var>y2</var>, <var>z2</var>]</code>, <code>[<var>x3</var>, <var>y3</var>, <var>z3</var>]</code>,
and <code>[<var>x4</var>, <var>y4</var>, <var>z4</var>]</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>line_type</code>, 
<code>line_width</code>, <code>color</code>, <code>key</code>, <code>enhanced3d</code>, and
<code>transform</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>


<p><a name="Item_003a-rectangle"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>rectangle</b><i> ([<var>x1</var>,<var>y1</var>], [<var>x2</var>,<var>y2</var>])</i>
<a name="IDX2154"></a>
</dt>
<dd><p>Draws rectangles in 2D.
</p>
<p><b>2D</b>
</p>
<p><code>rectangle ([<var>x1</var>,<var>y1</var>], [<var>x2</var>,<var>y2</var>])</code> draws a rectangle with opposite vertices
<code>[<var>x1</var>,<var>y1</var>]</code> and <code>[<var>x2</var>,<var>y2</var>]</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>transparent</code>, 
<code>fill_color</code>, <code>border</code>, <code>line_width</code>, <code>key</code>,
<code>line_type</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(fill_color  = red,
             line_width  = 6,
             line_type   = dots,
             transparent = false,
             fill_color  = blue,
             rectangle([-2,-2],[8,-1]), /* opposite vertices */
             transparent = true,
             line_type   = solid,
             line_width  = 1,
             rectangle([9,4],[2,-1.5]),
             xrange      = [-3,10],
             yrange      = [-3,4.5] )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-region"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>region</b><i> (<var>expr</var>,<var>var1</var>,<var>minval1</var>,<var>maxval1</var>,<var>var2</var>,<var>minval2</var>,<var>maxval2</var>)</i>
<a name="IDX2155"></a>
</dt>
<dd><p>Plots a region on the plane defined by inequalities.
</p>
<p><b>2D</b>
<var>expr</var> is an expression formed by inequalities and boolean operators
<code>and</code>, <code>or</code>, and <code>not</code>. The region is bounded by the rectangle
defined by <em>[<var>minval1</var>, <var>maxval1</var>]</em> and <em>[<var>minval2</var>, <var>maxval2</var>]</em>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>fill_color</code>, 
<code>key</code>, <code>x_voxel</code>, and <code>y_voxel</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        x_voxel = 30,
        y_voxel = 30,
        region(x^2+y^2&lt;1 and x^2+y^2 &gt; 1/2,
               x, -1.5, 1.5, y, -1.5, 1.5));
</pre></dd></dl>




<p><a name="Item_003a-spherical"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>spherical</b><i> (<var>radius</var>, <var>azi</var>, <var>minazi</var>, <var>maxazi</var>, <var>zen</var>, <var>minzen</var>, <var>maxzen</var>)</i>
<a name="IDX2156"></a>
</dt>
<dd><p>Draws 3D functions defined in spherical coordinates.
</p>
<p><b>3D</b>
</p>
<p><code>spherical(<var>radius</var>, <var>azi</var>, <var>minazi</var>, <var>maxazi</var>, <var>zen</var>,
<var>minzen</var>, <var>maxzen</var>)</code> plots the function <code><var>radius</var>(<var>azi</var>,
<var>zen</var>)</code> defined in spherical coordinates, with <i>azimuth</i> <var>azi</var> taking
values from <var>minazi</var> to <var>maxazi</var> and <i>zenith</i> <var>zen</var> taking values
from <var>minzen</var> to <var>maxzen</var>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>xu_grid</code>, 
<code>yv_grid</code>, <code>line_type</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code> and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(spherical(1,a,0,2*%pi,z,0,%pi))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-triangle"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>triangle</b><i> (<var>point_1</var>, <var>point_2</var>, <var>point_3</var>)</i>
<a name="IDX2157"></a>
</dt>
<dd><p>Draws a triangle.
</p>
<p><b>2D</b>
</p>
<p><code>triangle ([<var>x1</var>,<var>y1</var>], [<var>x2</var>,<var>y2</var>], [<var>x3</var>,<var>y3</var>])</code> draws a triangle with vertices <code>[<var>x1</var>,<var>y1</var>]</code>, <code>[<var>x2</var>,<var>y2</var>]</code>,
and <code>[<var>x3</var>,<var>y3</var>]</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>:<br>
<code>transparent</code>, <code>fill_color</code>, <code>border</code>, <code>line_width</code>,
<code>key</code>, <code>xaxis_secondary</code>, <code>yaxis_secondary</code>, <code>line_type</code>,
<code>transform</code>, and <code>color</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(
        triangle([1,1],[2,2],[3,-1]))$
</pre>
<p><b>3D</b>
</p>
<p><code>triangle ([<var>x1</var>,<var>y1</var>,<var>z1</var>], [<var>x2</var>,<var>y2</var>,<var>z2</var>], [<var>x3</var>,<var>y3</var>,<var>z3</var>])</code> draws a triangle with vertices <code>[<var>x1</var>,<var>y1</var>,<var>z1</var>]</code>,
<code>[<var>x2</var>,<var>y2</var>,<var>z2</var>]</code>, and <code>[<var>x3</var>,<var>y3</var>,<var>z3</var>]</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>line_type</code>, 
<code>line_width</code>, <code>color</code>, <code>key</code>, <code>enhanced3d</code>, and <code>transform</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-tube"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>tube</b><i> (<var>xfun</var>,<var>yfun</var>,<var>zfun</var>,<var>rfun</var>,<var>p</var>,<var>pmin</var>,<var>pmax</var>)</i>
<a name="IDX2158"></a>
</dt>
<dd><p>Draws a tube in 3D with varying diameter.
</p>
<p><b>3D</b>
</p>
<p><code>[<var>xfun</var>,<var>yfun</var>,<var>zfun</var>]</code>
is the parametric curve with parameter <var>p</var> taking values from <var>pmin</var>
to <var>pmax</var>. Circles of radius <var>rfun</var> are placed with their centers on
the parametric curve and perpendicular to it.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>xu_grid</code>, 
<code>yv_grid</code>, <code>line_type</code>, <code>line_width</code>, <code>key</code>, <code>wired_surface</code>, <code>enhanced3d</code>,
<code>color</code>, and <code>tube_extremes</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(
        enhanced3d = true,
        xu_grid = 50,
        tube(cos(a), a, 0, cos(a/10)^2,
             a, 0, 4*%pi) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-vector"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>vector</b><i> ([<var>x</var>,<var>y</var>], [<var>dx</var>,<var>dy</var>])</i>
<a name="IDX2159"></a>
</dt>
<dt><u>Graphic object:</u> <b>vector</b><i> ([<var>x</var>,<var>y</var>,<var>z</var>], [<var>dx</var>,<var>dy</var>,<var>dz</var>])</i>
<a name="IDX2160"></a>
</dt>
<dd><p>Draws vectors in 2D and 3D.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>head_both</code>, 
<code>head_length</code>, <code>head_angle</code>, <code>head_type</code>, <code>line_width</code>, 
<code>line_type</code>, <code>key</code> and <code>color</code>.
</p>
<p><b>2D</b>
</p>
<p><code>vector([<var>x</var>,<var>y</var>], [<var>dx</var>,<var>dy</var>])</code> plots vector
<code>[<var>dx</var>,<var>dy</var>]</code> with origin in <code>[<var>x</var>,<var>y</var>]</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw2d(xrange      = [0,12],
             yrange      = [0,10],
             head_length = 1,
             vector([0,1],[5,5]), /* default type */
             head_type = 'empty,
             vector([3,1],[5,5]),
             head_both = true,
             head_type = 'nofilled,
             line_type = dots,
             vector([6,1],[5,5]))$
</pre>
<p><b>3D</b>
</p>
<p><code>vector([<var>x</var>,<var>y</var>,<var>z</var>], [<var>dx</var>,<var>dy</var>,<var>dz</var>])</code> 
plots vector <code>[<var>dx</var>,<var>dy</var>,<var>dz</var>]</code> with
origin in <code>[<var>x</var>,<var>y</var>,<var>z</var>]</code>.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) draw3d(color = cyan,
             vector([0,0,0],[1,1,1]/sqrt(3)),
             vector([0,0,0],[1,-1,0]/sqrt(2)),
             vector([0,0,0],[1,1,-2]/sqrt(6)) )$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-Functions-and-Variables-for-pictures"></a>
</p><hr size="6">
<a name="Functions-and-Variables-for-pictures"></a>
<a name="SEC246"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC245" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC247" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC239" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 48.3 Functions and Variables for pictures </h2>



<p><a name="Item_003a-get_005fpixel"></a>
</p><dl>
<dt><u>Function:</u> <b>get_pixel</b><i> (<var>pic</var>,<var>x</var>,<var>y</var>)</i>
<a name="IDX2161"></a>
</dt>
<dd><p>Returns pixel from picture. Coordinates <var>x</var> and <var>y</var> range from 0 to
<code>width-1</code> and <code>height-1</code>, respectively.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-make_005flevel_005fpicture"></a>
</p><dl>
<dt><u>Function:</u> <b>make_level_picture</b><i> (<var>data</var>)</i>
<a name="IDX2162"></a>
</dt>
<dt><u>Function:</u> <b>make_level_picture</b><i> (<var>data</var>,<var>width</var>,<var>height</var>)</i>
<a name="IDX2163"></a>
</dt>
<dd><p>Returns a levels <var>picture</var> object. <code>make_level_picture (<var>data</var>)</code>
builds the <var>picture</var> object from matrix <var>data</var>.
<code>make_level_picture (<var>data</var>,<var>width</var>,<var>height</var>)</code>
builds the object from a list of numbers; in this case, both the
<var>width</var> and the <var>height</var> must be given.
</p>
<p>The returned <var>picture</var> object contains the following 
four parts:
</p>
<ol>
<li> symbol <code>level</code>
</li><li> image width
</li><li> image height
</li><li> an integer array with pixel data ranging from 0 to 255.
Argument <var>data</var> must contain only numbers ranged from 0 to 255;
negative numbers are substituted by 0, and those which are
greater than 255 are set to 255.
</li></ol>

<p>Example:
</p>
<p>Level picture from matrix.
</p><pre class="example">(%i1) load(draw)$
(%i2) make_level_picture(matrix([3,2,5],[7,-9,3000]));
(%o2)         picture(level, 3, 2, {Array:  #(3 2 5 7 0 255)})
</pre>
<p>Level picture from numeric list.
</p><pre class="example">(%i1) load(draw)$
(%i2) make_level_picture([-2,0,54,%pi],2,2);
(%o2)            picture(level, 2, 2, {Array:  #(0 0 54 3)})
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-make_005frgb_005fpicture"></a>
</p><dl>
<dt><u>Function:</u> <b>make_rgb_picture</b><i> (<var>redlevel</var>,<var>greenlevel</var>,<var>bluelevel</var>)</i>
<a name="IDX2164"></a>
</dt>
<dd><p>Returns an rgb-coloured <var>picture</var> object. All three arguments must
be levels picture; with red, green and blue levels.
</p>
<p>The returned <var>picture</var> object contains the following 
four parts:
</p>
<ol>
<li> symbol <code>rgb</code>
</li><li> image width
</li><li> image height
</li><li> an integer array of length <var>3*width*height</var> with pixel data ranging
from 0 to 255. Each pixel is represented by three consecutive numbers
(red, green, blue).
</li></ol>

<p>Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) red: make_level_picture(matrix([3,2],[7,260]));
(%o2)           picture(level, 2, 2, {Array:  #(3 2 7 255)})
(%i3) green: make_level_picture(matrix([54,23],[73,-9]));
(%o3)           picture(level, 2, 2, {Array:  #(54 23 73 0)})
(%i4) blue: make_level_picture(matrix([123,82],[45,32.5698]));
(%o4)          picture(level, 2, 2, {Array:  #(123 82 45 33)})
(%i5) make_rgb_picture(red,green,blue);
(%o5) picture(rgb, 2, 2, 
              {Array:  #(3 54 123 2 23 82 7 73 45 255 0 33)})
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-negative_005fpicture"></a>
</p><dl>
<dt><u>Function:</u> <b>negative_picture</b><i> (<var>pic</var>)</i>
<a name="IDX2165"></a>
</dt>
<dd><p>Returns the negative of a (<var>level</var> or <var>rgb</var>) picture.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p></dd></dl>





<p><a name="Item_003a-picture_005fequalp"></a>
</p><dl>
<dt><u>Function:</u> <b>picture_equalp</b><i> (<var>x</var>,<var>y</var>)</i>
<a name="IDX2166"></a>
</dt>
<dd><p>Returns <code>true</code> in case of equal pictures, and <code>false</code> otherwise.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: Predicate functions}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-picturep"></a>
</p><dl>
<dt><u>Function:</u> <b>picturep</b><i> (<var>x</var>)</i>
<a name="IDX2167"></a>
</dt>
<dd><p>Returns <code>true</code> if the argument is a well formed image,
and <code>false</code> otherwise.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw} &middot;
@ref{Category: Predicate functions}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-read_005fxpm"></a>
</p><dl>
<dt><u>Function:</u> <b>read_xpm</b><i> (<var>xpm_file</var>)</i>
<a name="IDX2168"></a>
</dt>
<dd><p>Reads a file in xpm and returns a picture object.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-rgb2level"></a>
</p><dl>
<dt><u>Function:</u> <b>rgb2level</b><i> (<var>pic</var>)</i>
<a name="IDX2169"></a>
</dt>
<dd><p>Transforms an <var>rgb</var> picture into a <var>level</var> one by
averaging the red, green and blue channels.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-take_005fchannel"></a>
</p><dl>
<dt><u>Function:</u> <b>take_channel</b><i> (<var>im</var>,<var>color</var>)</i>
<a name="IDX2170"></a>
</dt>
<dd><p>If argument <var>color</var> is <code>red</code>, <code>green</code> or <code>blue</code>,
function <code>take_channel</code> returns the corresponding color channel of
picture <var>im</var>.
Example:
</p>
<pre class="example">(%i1) load(draw)$
(%i2) red: make_level_picture(matrix([3,2],[7,260]));
(%o2)           picture(level, 2, 2, {Array:  #(3 2 7 255)})
(%i3) green: make_level_picture(matrix([54,23],[73,-9]));
(%o3)           picture(level, 2, 2, {Array:  #(54 23 73 0)})
(%i4) blue: make_level_picture(matrix([123,82],[45,32.5698]));
(%o4)          picture(level, 2, 2, {Array:  #(123 82 45 33)})
(%i5) make_rgb_picture(red,green,blue);
(%o5) picture(rgb, 2, 2, 
              {Array:  #(3 54 123 2 23 82 7 73 45 255 0 33)})
(%i6) take_channel(%,'green);  /* simple quote!!! */
(%o6)           picture(level, 2, 2, {Array:  #(54 23 73 0)})
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-Functions-and-Variables-for-worldmap"></a>
</p><hr size="6">
<a name="Functions-and-Variables-for-worldmap"></a>
<a name="SEC247"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC246" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC248" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC239" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h2 class="section"> 48.4 Functions and Variables for worldmap </h2>


<p>This package automatically loads package <code>draw</code>.
</p>

<hr size="6">
<a name="SEC248"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC247" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC249" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC247" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.4.1 Variables and Functions </h3>



<p><a name="Item_003a-boundaries_005farray"></a>
</p><dl>
<dt><u>Global variable:</u> <b>boundaries_array</b>
<a name="IDX2171"></a>
</dt>
<dd><p>Default value: <code>false</code>
</p>
<p><code>boundaries_array</code> is where the graphic object <code>geomap</code> looks
for boundaries coordinates.
</p>
<p>Each component of <code>boundaries_array</code> is an array of floating
point quantities, the coordinates of a polygonal segment or map boundary.
</p>
<p>See also <code>geomap</code>.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-numbered_005fboundaries"></a>
</p><dl>
<dt><u>Function:</u> <b>numbered_boundaries</b><i> (<var>nlist</var>)</i>
<a name="IDX2172"></a>
</dt>
<dd><p>Draws a list of polygonal segments (boundaries), labeled by
its numbers (<code>boundaries_array</code> coordinates). This is of great
help when building new geographical entities.
</p>
<p>Example:
</p>
<p>Map of Europe labeling borders with their component number in
<code>boundaries_array</code>.
</p><pre class="example">(%i1) load(worldmap)$
(%i2) european_borders: 
           region_boundaries(-31.81,74.92,49.84,32.06)$
(%i3) numbered_boundaries(european_borders)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<p><a name="Item_003a-make_005fpoly_005fcontinent"></a>
</p><dl>
<dt><u>Function:</u> <b>make_poly_continent</b><i> (<var>continent_name</var>)</i>
<a name="IDX2173"></a>
</dt>
<dt><u>Function:</u> <b>make_poly_continent</b><i> (<var>country_list</var>)</i>
<a name="IDX2174"></a>
</dt>
<dd><p>Makes the necessary polygons to draw a colored continent
or a list of countries.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(worldmap)$
(%i2) /* A continent */
      make_poly_continent(Africa)$
(%i3) apply(draw2d, %)$
(%i4) /* A list of countries */
      make_poly_continent([Germany,Denmark,Poland])$
(%i5) apply(draw2d, %)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-make_005fpoly_005fcountry"></a>
</p><dl>
<dt><u>Function:</u> <b>make_poly_country</b><i> (<var>country_name</var>)</i>
<a name="IDX2175"></a>
</dt>
<dd><p>Makes the necessary polygons to draw a colored country.
If islands exist, one country can be defined with more than
just one polygon.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(worldmap)$
(%i2) make_poly_country(India)$
(%i3) apply(draw2d, %)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-make_005fpolygon"></a>
</p><dl>
<dt><u>Function:</u> <b>make_polygon</b><i> (<var>nlist</var>)</i>
<a name="IDX2176"></a>
</dt>
<dd><p>Returns a <code>polygon</code> object from boundary indices. Argument
<var>nlist</var> is a list of components of <code>boundaries_array</code>.
</p>
<p>Example:
</p>
<p>Bhutan is defined by boundary numbers 171, 173
and 1143, so that <code>make_polygon([171,173,1143])</code>
appends arrays of coordinates <code>boundaries_array[171]</code>,
<code>boundaries_array[173]</code> and <code>boundaries_array[1143]</code> and 
returns a <code>polygon</code> object suited to be plotted by 
<code>draw</code>. To avoid an error message, arrays must be
compatible in the sense that any two consecutive
arrays have two coordinates in the extremes in common. In this
example, the two first components of <code>boundaries_array[171]</code> are
equal to the last two coordinates of <code>boundaries_array[173]</code>, and 
the two first of <code>boundaries_array[173]</code> are equal to the two first
of <code>boundaries_array[1143]</code>; in conclussion, boundary numbers
171, 173 and 1143 (in this order) are compatible and the colored 
polygon can be drawn.
</p><pre class="example">(%i1) load(worldmap)$
(%i2) Bhutan;
(%o2)                        [[171, 173, 1143]]
(%i3) boundaries_array[171];
(%o3) {Array:  
       #(88.750549 27.14727 88.806351 27.25305 88.901367 27.282221
         88.917877 27.321039)}
(%i4) boundaries_array[173];
(%o4) {Array:
       #(91.659554 27.76511 91.6008 27.66666 91.598022 27.62499
         91.631348 27.536381 91.765533 27.45694 91.775253 27.4161 
         92.007751 27.471939 92.11441 27.28583 92.015259 27.168051
         92.015533 27.08083 92.083313 27.02277 92.112183 26.920271
         92.069977 26.86194 91.997192 26.85194 91.915253 26.893881
         91.916924 26.85416 91.8358 26.863331 91.712479 26.799999 
         91.542191 26.80444 91.492188 26.87472 91.418854 26.873329
         91.371353 26.800831 91.307457 26.778049 90.682457 26.77417
         90.392197 26.903601 90.344131 26.894159 90.143044 26.75333
         89.98996 26.73583 89.841919 26.70138 89.618301 26.72694 
         89.636093 26.771111 89.360786 26.859989 89.22081 26.81472
         89.110237 26.829161 88.921631 26.98777 88.873016 26.95499
         88.867737 27.080549 88.843307 27.108601 88.750549 
         27.14727)}
(%i5) boundaries_array[1143];
(%o5) {Array:  
       #(91.659554 27.76511 91.666924 27.88888 91.65831 27.94805 
         91.338028 28.05249 91.314972 28.096661 91.108856 27.971109
         91.015808 27.97777 90.896927 28.05055 90.382462 28.07972
         90.396088 28.23555 90.366074 28.257771 89.996353 28.32333
         89.83165 28.24888 89.58609 28.139999 89.35997 27.87166 
         89.225517 27.795 89.125793 27.56749 88.971077 27.47361
         88.917877 27.321039)}
(%i6) Bhutan_polygon: make_polygon([171,173,1143])$
(%i7) draw2d(Bhutan_polygon)$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>





<p><a name="Item_003a-region_005fboundaries"></a>
</p><dl>
<dt><u>Function:</u> <b>region_boundaries</b><i> (<var>x1</var>,<var>y1</var>,<var>x2</var>,<var>y2</var>)</i>
<a name="IDX2177"></a>
</dt>
<dd><p>Detects polygonal segments of global variable <code>boundaries_array</code>
fully contained in the rectangle with vertices (<var>x1</var>,<var>y1</var>) -upper left- 
and (<var>x2</var>,<var>y2</var>) -bottom right-.
</p>
<p>Example:
</p>
<p>Returns segment numbers for plotting southern Italy.
</p><pre class="example">(%i1) load(worldmap)$
(%i2) region_boundaries(10.4,41.5,20.7,35.4);
(%o2)                [1846, 1863, 1864, 1881, 1888, 1894]
(%i3) draw2d(geomap(%))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>



<p><a name="Item_003a-region_005fboundaries_005fplus"></a>
</p><dl>
<dt><u>Function:</u> <b>region_boundaries_plus</b><i> (<var>x1</var>,<var>y1</var>,<var>x2</var>,<var>y2</var>)</i>
<a name="IDX2178"></a>
</dt>
<dd><p>Detects polygonal segments of global variable <code>boundaries_array</code>
containing at least one vertex in the rectangle defined by vertices (<var>x1</var>,<var>y1</var>)
-upper left- and (<var>x2</var>,<var>y2</var>) -bottom right-.
</p>
<p>Example:
</p>
<pre class="example">(%i1) load(worldmap)$
(%i2) region_boundaries_plus(10.4,41.5,20.7,35.4);
(%o2) [1060, 1062, 1076, 1835, 1839, 1844, 1846, 1858,
       1861, 1863, 1864, 1871, 1881, 1888, 1894, 1897]
(%i3) draw2d(geomap(%))$
</pre>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>




<hr size="6">
<a name="SEC249"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC248" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC247" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h3 class="subsection"> 48.4.2 Graphic objects </h3>



<p><a name="Item_003a-geomap"></a>
</p><dl>
<dt><u>Graphic object:</u> <b>geomap</b><i> (<var>numlist</var>)</i>
<a name="IDX2179"></a>
</dt>
<dt><u>Graphic object:</u> <b>geomap</b><i> (<var>numlist</var>,<var>3Dprojection</var>)</i>
<a name="IDX2180"></a>
</dt>
<dd><p>Draws cartographic maps in 2D and 3D.
</p>
<p><b>2D</b>
</p>
<p>This function works together with global variable <code>boundaries_array</code>.
</p>
<p>Argument <var>numlist</var> is a list containing numbers or lists of numbers.
All these numbers must be integers greater or equal than zero, 
representing the components of global array <code>boundaries_array</code>.
</p>
<p>Each component of <code>boundaries_array</code> is an array of floating
point quantities, the coordinates of a polygonal segment or map boundary.
</p>
<p><code>geomap (<var>numlist</var>)</code> flattens its arguments and draws the
associated boundaries in <code>boundaries_array</code>.
</p>
<p>This object is affected by the following <i>graphic options</i>: <code>line_width</code>, 
<code>line_type</code> and <code>color</code>.
</p>
<p>Examples:
</p>
<p>A simple map defined by hand:
</p><pre class="example">(%i1) load(worldmap)$
(%i2) /* Vertices of boundary #0: {(1,1),(2,5),(4,3)} */
   ( bnd0: make_array(flonum,6),
     bnd0[0]:1.0, bnd0[1]:1.0, bnd0[2]:2.0,
     bnd0[3]:5.0, bnd0[4]:4.0, bnd0[5]:3.0 )$
(%i3) /* Vertices of boundary #1: {(4,3),(5,4),(6,4),(5,1)} */
   ( bnd1: make_array(flonum,8),
     bnd1[0]:4.0, bnd1[1]:3.0, bnd1[2]:5.0, bnd1[3]:4.0,
     bnd1[4]:6.0, bnd1[5]:4.0, bnd1[6]:5.0, bnd1[7]:1.0)$
(%i4) /* Vertices of boundary #2: {(5,1), (3,0), (1,1)} */
   ( bnd2: make_array(flonum,6),
     bnd2[0]:5.0, bnd2[1]:1.0, bnd2[2]:3.0,
     bnd2[3]:0.0, bnd2[4]:1.0, bnd2[5]:1.0 )$
(%i5) /* Vertices of boundary #3: {(1,1), (4,3)} */
   ( bnd3: make_array(flonum,4),
     bnd3[0]:1.0, bnd3[1]:1.0, bnd3[2]:4.0, bnd3[3]:3.0)$
(%i6) /* Vertices of boundary #4: {(4,3), (5,1)} */
   ( bnd4: make_array(flonum,4),
     bnd4[0]:4.0, bnd4[1]:3.0, bnd4[2]:5.0, bnd4[3]:1.0)$
(%i7) /* Pack all together in boundaries_array */
   ( boundaries_array: make_array(any,5),
     boundaries_array[0]: bnd0, boundaries_array[1]: bnd1,
     boundaries_array[2]: bnd2, boundaries_array[3]: bnd3,
     boundaries_array[4]: bnd4 )$
(%i8) draw2d(geomap([0,1,2,3,4]))$
</pre>
<p>The auxiliary package <code>worldmap</code> sets the global variable
<code>boundaries_array</code> to real world boundaries in
(longitude, latitude) coordinates. These data are in the 
public domain and come from 
<a href="http://www-cger.nies.go.jp/grid-e/gridtxt/grid19.html">http://www-cger.nies.go.jp/grid-e/gridtxt/grid19.html</a>.
Package <code>worldmap</code> defines also boundaries for countries,
continents and coastlines as lists with the necessary components of 
<code>boundaries_array</code> (see file <code>share/draw/worldmap.mac</code>
for more information). Package <code>worldmap</code> automatically loads 
package <code>worldmap</code>.
</p><pre class="example">(%i1) load(worldmap)$
(%i2) c1: gr2d(geomap(Canada,United_States,
                      Mexico,Cuba))$
(%i3) c2: gr2d(geomap(Africa))$
(%i4) c3: gr2d(geomap(Oceania,China,Japan))$
(%i5) c4: gr2d(geomap(France,Portugal,Spain,
                      Morocco,Western_Sahara))$
(%i6) draw(columns  = 2,
           c1,c2,c3,c4)$
</pre>
<p>Package <code>worldmap</code> is also useful for plotting
countries as polygons. In this case, graphic object
<code>geomap</code> is no longer necessary and the <code>polygon</code>
object is used instead. Since lists are now used and not
arrays, maps rendering will be slower. See also <code>make_poly_country</code>
and <code>make_poly_continent</code> to understand the following code.
</p><pre class="example">(%i1) load(worldmap)$
(%i2) mymap: append(
   [color      = white],  /* borders are white */
   [fill_color = red],             make_poly_country(Bolivia),
   [fill_color = cyan],            make_poly_country(Paraguay),
   [fill_color = green],           make_poly_country(Colombia),
   [fill_color = blue],            make_poly_country(Chile),
   [fill_color = &quot;#23ab0f&quot;],       make_poly_country(Brazil),
   [fill_color = goldenrod],       make_poly_country(Argentina),
   [fill_color = &quot;midnight-blue&quot;], make_poly_country(Uruguay))$
(%i3) apply(draw2d, mymap)$
</pre>

<p><b>3D</b>
</p>
<p><code>geomap (<var>numlist</var>)</code> projects map boundaries on the sphere of radius 1
centered at (0,0,0). It is possible to change the sphere or the projection type
by using <code>geomap (<var>numlist</var>,<var>3Dprojection</var>)</code>.
</p>
<p>Available 3D projections:
</p>
<ul>
<li>
<code>[spherical_projection,<var>x</var>,<var>y</var>,<var>z</var>,<var>r</var>]</code>: projects map boundaries on the sphere of
radius <var>r</var> centered at (<var>x</var>,<var>y</var>,<var>z</var>).
<pre class="example">(%i1) load(worldmap)$
(%i2) draw3d(geomap(Australia), /* default projection */
             geomap(Australia,
                    [spherical_projection,2,2,2,3]))$
</pre>
</li><li>
<code>[cylindrical_projection,<var>x</var>,<var>y</var>,<var>z</var>,<var>r</var>,<var>rc</var>]</code>: re-projects spherical map boundaries on the cylinder of radius
<var>rc</var> and axis passing through the poles of the globe of radius <var>r</var> centered at (<var>x</var>,<var>y</var>,<var>z</var>).
<pre class="example">(%i1) load(worldmap)$
(%i2) draw3d(geomap([America_coastlines,Eurasia_coastlines],
                    [cylindrical_projection,2,2,2,3,4]))$
</pre>
</li><li>
<code>[conic_projection,<var>x</var>,<var>y</var>,<var>z</var>,<var>r</var>,<var>alpha</var>]</code>: re-projects spherical map boundaries on the cones of angle <var>alpha</var>,
with axis passing through the poles of the globe of radius <var>r</var> centered at (<var>x</var>,<var>y</var>,<var>z</var>). Both 
the northern and southern cones are tangent to sphere.
<pre class="example">(%i1) load(worldmap)$
(%i2) draw3d(geomap(World_coastlines,
                    [conic_projection,0,0,0,1,90]))$
</pre></li></ul>

<p>See also <a href="http://www.telefonica.net/web2/biomates/maxima/gpdraw/geomap">http://www.telefonica.net/web2/biomates/maxima/gpdraw/geomap</a>
for more elaborated examples.
</p>
<div class=categorybox>
&middot;
<p>@ref{Category: Package draw}
</div>
</p>
</dd></dl>


<p><a name="Item_003a-drawdf"></a>
</p><hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC239" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="maxima_49.html#SEC250" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="maxima.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="maxima_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="maxima_82.html#SEC380" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="maxima_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>root</em> on <em>January, 10 2014</em> using <a href="http://texi2html.cvshome.org/"><em>texi2html 1.76</em></a>.
 </font>
 <br>

</p>
</body>
</html>