ContourPlot

New in version 5.0

ContourPlot ( appearanceConst ;​ numOfGridPointsHorizontal ;​ numOfGridPointsVertical ;​ arrangeColumnByColumn ;​ margins )

Argument Type Range Default Note
appearanceConst int 0..127 default
numOfGridPointsHorizontal int 2..100000 (autom.)
numOfGridPointsVertical int 2..100000 (autom.)
arrangeColumnByColumn int 0..1 0
margins num[] 0..0.5 0.5
Examples

ContourPlot(label;​11;​5)

ContourPlot(label+symbol;​11;​5;​0;​)

Description

Two functions are available to set up contour plots: ContourPlot() and ContourPlotOptions() . The appearance of the contour lines can be controlled by the LineStyle() and LineColorScheme() functions, the labels by using the five style functions LabelTexts() , LabelStyle() , LabelBackground() , LabelBackgroundOptions() and LabelOptions() . By using the function BorderStyle() the appearance of the border around the contour plot can be controlled.

CONTOUR_PLOT_01
1

OpenDrawing(400;​250)

2

ChartData(102 108 100 101 102 103 104 105 106 107 108

3

109 101 102 103 104 105 106 107 108 109 110

4

102 100 101 102 103 104 105 106 107 108 109

5

108 105 100 101 104 106 108 106 105 104 103

6

109 106 110 100 101 102 103 104 105 106 107)

7

ContourPlot(label;​11;​5)

8

ContourPlotOptions(;​;​0.25)

9

Borderstyle(1;​none)

10

LineStyle(all;​;​0.25;​peru)

11

LabelStyle(1;​Arial;​7)

12

CloseDrawing()

CONTOUR_PLOT_01
CONTOUR_PLOT_02
1

OpenDrawing(400;​250)

2

ChartData(102 108 100 101 102 103 104 105 106 107 108

3

109 101 102 103 104 105 106 107 108 109 110

4

102 100 101 102 103 104 105 106 107 108 109

5

108 105 100 101 104 106 108 106 105 104 103

6

109 106 110 100 101 102 103 104 105 106 107)

7

ContourPlot(label+symbol;​11;​5)

8

ContourPlotOptions(;​;​0) /* Hide grid. */

9

SymbolStyle(1;​bullet;​3;​1;​teal)

10

Borderstyle(1;​none)

11

LineColorScheme(15)

12

LabelStyle(1;​Arial;​7)

13

LegendStyle(Arial;​9)

14

LegendOptions(bottomCenter;​

15

0;​ /* Place legend inside of plot area. */

16

0;​ /* Horizontal offset.  */

17

3;​ /* Vertical offset.  */

18

1;​ /* Number of rows.  */

19

0;​ /* Legend item type (ignored).  */

20

12;​ /* Legend item width.  */

21

1;​ /* Legend item height.  */

22

3;​ /* Gap between text and line.  */

23

0;​ /* Row gap (ignored).  */

24

12;​ /* Column gap.  */

25

bottomCenter) /* Text location.  */

26

CloseDrawing()

CONTOUR_PLOT_02
CONTOUR_PLOT_03
1

OpenDrawing(500;​300)

2

OpenChart(20;​20;​400;​260;​on)

3

ChartData(–363 310 –478 –409 –305 –217 –108 0 101 239 352

4

422 –461 –387 265 –100 0 88 226 334 450 496

5

–309 –500 –477 –383 –215 –137 0 109 189 329 420

6

366 0 –463 –467 –382 –208 –147 0 –489 0 363

7

416 91 441 –463 –405 –347 –289 –160 0 123 236)

8

ContourPlot(label+symbol;​11;​5;​0;​)

9

ContourPlotOptions(-500 -450 -400 -300 -200 -100 0 100 200 300 400 450 500;​;​0)

10

Borderstyle(1;​1;​0.25;​#999)

11

SymbolStyle(1;​bullet;​2;​1;​#888)

12

LabelStyle(1;​Arial;​7)

13

LineColorscheme(15)

14

LineStyle(all;​;​0.25)

15

LineStyle( 2;​;​0.25 15 5) /* Contour line: -450 */

16

LineStyle(12;​;​0.25 15 5;​magenta) /* Contour line: 450 */

17

LineStyle( 7;​;​1.5;​red) /* Contour line: 0 */

18

/* Set up legend. */

19

LegendTexts(;​;​;​;​;​;​"0-Level")

20

LegendStyle(Arial;​9)

21

LegendOptions(centerRight;​

22

0;​ /* Place legend inside of plot area. */

23

6;​ /* Horizontal offset.  */

24

0;​ /* Vertical offset.  */

25

-1 1;​ /* Unlimited rows, 1 column.  */

26

0;​ /* Legend item type (ignored).  */

27

10;​ /* Legend item width.  */

28

10;​ /* Legend item height.  */

29

3;​ /* Gap between text and line.  */

30

7;​ /* Row gap.  */

31

0;​ /* Column gap.  */

32

centerRight) /* Text location.  */

33

CloseChart()

34

Background(#f8f8fb;​0;​0;​;​;​2 2 2;​lightGray)

35

BackgroundOptions(6)

36

CloseDrawing()

CONTOUR_PLOT_03
CONTOUR_PLOT_04
1

OpenDrawing(560;​350)

2

SetThousandsSep(",")

3

OpenChart(40;​25;​490;​290;​off)

4

ChartData(538 115 224 799 180 151 754 545 564 757 608 360 786 605 117 16 614 573 419 525 49 330 773 349 604 530 79 677 272 415

5

184 111 811 894 549 64 633 458 529 33 414 37 217 456 278 855 255 861 455 158 868 779 237 59 716 98 867 598 541

6

175 169 753 483 612 487 505 165 820 625 300 391 396 761 274 176 676 611 243 776 56 167 235 378 720 671 629 559

7

373 216 326 227 29 635 420 809 562 371 449 660 768 734 780 328 314 240 26 67 899 703 206 241 447 722 282 44

8

141 845 201 327 496 739 322 289 343 94 287 15 718 25 18 405 830 284 221 741 670 150 708 226 821 638 404 432

9

306 395 159 836 121 444 698 774 95 249 410 857 425 418 43 583 735 785 526 766 637 485 424 423 374 841 627 714

10

286 738 357 619 795 142 617 269 80 276 370 273 329 113 236 514 874 356 22 76 153 797 301 279 163 48 230 32 781

11

299 762 361 482 622 661 244 891 771 495 232 172 883 152 675 787 379 707 621 97 375 223 162 501 46 199 130 481

12

806 202 639 453 649 136 664 408 254 892 376 82 610 490 122 539 335 86 601 563 827 303 486 317 446 798 844 790

13

881 102 209 53 548 672 705 783 96 388 521 155 9 508 597 30 837 238 12 265 218 451 533 148 70 470 402 161 454

14

727 537 769 731 642 28 778 293 215 504 581 594 178 242 815 383 54 534 214 338 577 73 228 878 900 310 748 518

15

200 431 667 634 464 436 654 618 7 674 895 784 644 411 389 628 114 656 522 128 88 813 831 524 19 10 711 566 669

16

652 60 686 859 687 489 182 692 207 365 253 688 586 665 78 561 557 248 407 191 587 81 351 732 668 832 651 887

17

283 623 315 896 105 742 443 626 409 77 858 139 192 108 367 450 822 107 729 725 24 624 473 318 1 71 137 826 430

18

863 875 252 543 632 321 834 66 271 782 304 740 764 746 341 120 749 862 498 125 295 506 516 239 745 85 579 648

19

426 393 839 640 3 173 873 846 743 531 422 353 438 491 607 699 884 556 2 460 849 448 197 697 39 156 818 872 715

20

700 666 791 606 536 347 246 825 886 468 186 134 853 833 578 13 368 320 27 427 457 477 517 233 154 592 380 358

21

4 319 174 372 552 565 291 710 87 870 110 270 179 390 324 445 220 69 90 568 177 655 759 744 523 641 302 723 109

22

502 36 685 288 290 519 890 493 313 149 421 363 499 570 403 465 140 515 569 83 694 488 231 736 381 847 50 135

23

814 865 848 281 463 311 334 681 337 40 898 819 702 777 55 204 620 854 123 877 866 210 475 74 312 47 355 631

24

118 823 145 146 251 45 208 461 369 259 57 756 609 132 828 808 602 864 382 384 673 166 804 571 509 229 188 480

25

127 684 591 596 812 721 474 21 316 100 717 440 567 679 802 709 763 92 788 595 392 850 726 772 527 91 843 406

26

750 433 250 68 462 308 511 277 157 439 285 888 842 401 645 34 550 41 345 544 476 266 257 362 472 342 256 643

27

219 751 296 793 452 584 437 663 103 755 840 260 796 662 695 706 332 856 366 500 442 106 75 693 540 17 701 789

28

340 730 52 307 589 484 198 678 346 897 65 305 585 724 647 189 435 93 574 160 292 555 331 737 434 350 880 860

29

510 758 765 816 261 810 805 104 144 794 512 885 893 824 547 467 659 580 575 126 593 62 829 222 352 479 262 471

30

133 616 691 348 187 143 394 339 871 851 838 258 416 775 657 689 494 882 42 770 195 719 212 190 713 275 532 397

31

413 503 492 630 196 613 138 469 600 84 5 112 876 183 400 309 101 817 852 466 889 835 264 170 124 682 99 23 181

32

528 247 20 767 194 879 801 377 31 185 615 129 535 364 554 147 752 205 323 576 792 800 38 211 268 8 386 441 164

33

119 203 245 653 560 553 297 807 603 459 417 412 11 336 520 225 72 747 497 683 385 116 869 387 646 590 6 58 542

34

344 478 359 513 760 803 733 294 728 398 168 63 558 588 171 280 636 263 712 51 546 599 582 61 507 333 131 234

35

690 696 193 572 14 704 680 298 650 658 267 35 89 213 429 399 428 551 354 325)

36

37

ContourPlot(default;​30;​30)

38

ContourPlotOptions(200 400 600 800;​0.5;​0)

39

40

/* Set up styles. */

41

Borderstyle(1;​;​3 3 3;​steelBlue)

42

LineStyle(1;​;​1;​violet)

43

LineStyle(2;​;​1;​mediumPurple)

44

LineStyle(3;​;​1;​lightSkyBlue)

45

LineStyle(4;​;​1;​mediumAquamarine)

46

47

/* Set up legend. */

48

LegendTitle("Levels";​Arial;​10)

49

LegendStyle(Arial;​10)

50

LegendOptions(centerRight;​

51

0;​ /* Place legend inside of plot area. */

52

6;​ /* Horizontal offset.  */

53

0;​ /* Vertical offset.  */

54

-1 1;​ /* Unlimited rows, 1 column.  */

55

0;​ /* Legend item type (ignored).  */

56

15;​ /* Legend item width.  */

57

10;​ /* Legend item height.  */

58

5;​ /* Gap between text and line.  */

59

7;​ /* Row gap.  */

60

0;​ /* Column gap.  */

61

centerRight) /* Text location.  */

62

LegendBackground(;​;​0;​;​;​1 1 4;​lightGray)

63

LegendBackgroundOptions(5;​5 5 5 10 )

64

65

/* Set up title. */

66

TitleText("CONTOUR PLOT")

67

TitleStyle(Verdana;​13;​plain;​#333)

68

TitleOptions(;​;​10;​-3)

69

CloseChart()

70

CloseDrawing()

CONTOUR_PLOT_04
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×