plot.xsd 60.6 KB
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
<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:include schemaLocation="request.xsd" />    
    
    <xs:element name="PlotElement" abstract="true"/>
        
    <xs:complexType name="FontType">
        <xs:attribute name="name" type="xs:string" />
        <xs:attribute name="size" type="xs:integer" />
        <xs:attribute name="style" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="weight" type="xs:string" use="optional"></xs:attribute>
    </xs:complexType>

    <xs:attributeGroup name="ColorGroup">
        <xs:attribute name="color" type="xs:string" />
        <xs:attribute name="colorMapIndex" type="xs:integer" />
    </xs:attributeGroup>
        
    <xs:complexType name="TitleType">
        <xs:simpleContent>
            <xs:extension base="xs:string">
                <xs:attributeGroup ref="titleGroup"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:attributeGroup name="titleGroup">
        <xs:attribute name="position">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="top" />
                    <xs:enumeration value="bottom" />
                </xs:restriction>
            </xs:simpleType>  
        </xs:attribute> 
        <xs:attribute name="align">
            <xs:simpleType  >
                <xs:restriction base="xs:string">
                    <xs:enumeration value="center" />
                    <xs:enumeration value="left" />
                    <xs:enumeration value="right" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attributeGroup ref="labelGroup"/>
    </xs:attributeGroup>
    
    <xs:attributeGroup name="axisGroup">
        <xs:attribute name="origin">
            <xs:simpleType>
                <xs:restriction base="xs:float">
                    <xs:enumeration value="0.0" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="position">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="top" />
                    <xs:enumeration value="bottom" />
                    <xs:enumeration value="left" />
                    <xs:enumeration value="right" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="thickness" type="xs:integer" />
        <xs:attributeGroup ref="ColorGroup" />
        <xs:attribute name="reverse" type="xs:boolean" />
        <xs:attribute name="visible" type="xs:boolean" />
        <xs:attribute name="scale">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="linear" />
                    <xs:enumeration value="logarithmic" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="showLegend" type="xs:boolean"></xs:attribute>
        <xs:attribute name="showTickMark" type="xs:boolean"></xs:attribute>
    </xs:attributeGroup>

    <xs:attributeGroup name="labelGroup">        
        <xs:attribute name="fontName" type="xs:string"/>                    
        <xs:attribute name="fontSize" type="xs:integer"/>
        <xs:attribute name="fontStyle" type="xs:string"/>
        <xs:attribute name="fontWeight" type="xs:string"/>
        <xs:attributeGroup ref="ColorGroup"/>
    </xs:attributeGroup>
    
    <xs:attributeGroup name="legendGroup">
        <xs:attribute name="text" type="xs:string"/>
        <xs:attributeGroup ref="labelGroup"/>
    </xs:attributeGroup>
    
    <!-- Define configuration for parameter -->
    <xs:element name="ParameterDrawElement" abstract="true" />
    
    <xs:complexType name="ParametersType">
        <xs:annotation>
            <xs:documentation>Parameter identifier</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="param" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="default"
                                            type="ParameterDefaultPropertiesType" minOccurs="0"
                                            maxOccurs="1">
                        </xs:element>
                        <xs:element ref="ParameterDrawElement" maxOccurs="unbounded" minOccurs="0"/>
                    </xs:sequence>
                    <xs:attribute name="id" type="xs:string" use="required"/>                	
                </xs:complexType>
            </xs:element>        
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="TextLegendType">
        <xs:sequence>
            <xs:element name="font" type="FontType"
                                        minOccurs="0" maxOccurs="1">
            </xs:element>
        </xs:sequence>
        <xs:attribute name="text" type="xs:string">
        </xs:attribute>
        <xs:attribute name="position">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="right" />
                    <xs:enumeration value="left" />
                    <xs:enumeration value="top" />
                    <xs:enumeration value="bottom" />
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="color" type="xs:string">
        </xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="PlotLegendType">
        <xs:annotation>
            <xs:documentation>Additional legends for plot</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="paramsLegend" minOccurs="0"
                            maxOccurs="1">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="font" type="FontType"
                                                    minOccurs="0" maxOccurs="1" />
                    </xs:sequence>
                    <xs:attribute name="type">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="text-line-symbol" />
                                <xs:enumeration value="text-only" />
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="showParamInfo" type="xs:boolean"/>
                    <xs:attribute name="showIntervalInfo" type="xs:boolean"/>
                    <xs:attribute name="intervalInfoType">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="index" />
                                <xs:enumeration value="start-stop" />
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="position">
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="inside" />
                                <xs:enumeration value="outside" />
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="defaultTextColor"
                                              type="xs:string" />
                    <xs:attribute name="borderVisible"
                                              type="xs:boolean" />
                    <xs:attribute name="borderColor" type="xs:string" />
                </xs:complexType>
            </xs:element>
            <xs:element name="textLegend" type="TextLegendType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
        
    <xs:element name="serie" type="ParameterYPropertiesType" substitutionGroup="ParameterDrawElement">
        <xs:annotation>
            <xs:documentation>
                define drawing properties for one
                serie associated to that parameter.
                At least one serie should be
                attached to a parameter, but more
                can be associated when related
                parameter is not a simple type (a
                vector for instance).
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="spectro" type="ParameterSpectroPropertiesType" substitutionGroup="ParameterDrawElement">
        <xs:annotation>
            <xs:documentation>
                define drawing properties for one
                spectrogram associated to that parameter.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:element name="sauvaud" type="ParameterSauvaudPropertiesType" substitutionGroup="ParameterDrawElement">
        <xs:annotation>
            <xs:documentation>
                define drawing properties for one
                spectrogram associated to that parameter.
            </xs:documentation>
        </xs:annotation>
    </xs:element>
        
    <xs:element name="colorserie" type="ParameterColorSeriePropertiesType" substitutionGroup="ParameterDrawElement">
        <xs:annotation>
            <xs:documentation>
                define drawing properties for a
                colored serie.
            </xs:documentation>
        </xs:annotation>
    </xs:element>

    <xs:element name="intervals" type="ParameterIntervalsPropertiesType" substitutionGroup="ParameterDrawElement">
        <xs:annotation>
            <xs:documentation>
                define drawing properties for a
                intervals serie.
            </xs:documentation>
        </xs:annotation>
    </xs:element>    
        
    <!-- Define additional plot objects  -->
    <xs:complexType name="AdditionalObjetctsType">
        <xs:annotation>
            <xs:documentation>Additional object such as textPlot...</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="textPlot" type="TextPlotPropertiesType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        define drawing properties for a plot box 
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="curvePlot"  type="CurvePlotPropertiesType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        define drawing properties for a curve 
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <!-- Define base axis -->
    <xs:complexType name="AxisElement">
        <xs:sequence>
            <xs:element name="range" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:attribute name="min" type="xs:float" />
                    <xs:attribute name="max" type="xs:float" />
                    <xs:attribute name="extend" type="xs:boolean" />
                </xs:complexType>
            </xs:element>
            <xs:element name="tick" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="xs:string">
                            <xs:attribute name="majorNumber"
                                                              type="xs:integer" />
                            <xs:attribute name="minorNumber"
                                                              type="xs:integer" />
                            <xs:attribute name="majorSpace"
                                                              type="xs:float" />
                            <xs:attribute name="minorSpace"
                                                              type="xs:float" />
                            <xs:attribute name="position">
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:enumeration value="inwards" />
                                        <xs:enumeration
                                            value="outwards" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:attribute>
                            <xs:attribute name="lengthFactor"
                                                              type="xs:float" />
                            <xs:attribute name="minorGrid"
                                                              type="xs:boolean" />
                            <xs:attribute name="majorGrid"
                                                              type="xs:boolean" />
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="legend" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:attributeGroup ref="legendGroup" />
                </xs:complexType>
            </xs:element>
            <xs:element name="constantLine" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                    <xs:attribute name="color" type="xs:string">
                    </xs:attribute>
                    <xs:attribute name="style">
                        <xs:annotation>
                            <xs:documentation>
                                Line Style. Can be one of the following
                                values : - plain : plain line style -
                                dot : line with short dashes and gaps -
                                long-spaced-dot : line with long dashes
                                and long gaps. - long-short-dot : line
                                with long dashes and short gaps.
                            </xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:enumeration value="plain"></xs:enumeration>
                                <xs:enumeration value="dot"></xs:enumeration>
                                <xs:enumeration
                                    value="long-spaced-dot">
                                </xs:enumeration>
                                <xs:enumeration
                                    value="long-short-dot">
                                </xs:enumeration>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="width" type="xs:integer">
                    </xs:attribute>
                    <xs:attribute name="value" type="xs:string">
                    </xs:attribute>
                    <xs:attribute name="id"
                                              type="xs:integer">
                    </xs:attribute>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attributeGroup ref="axisGroup"/>
    </xs:complexType>
    
    
    <!-- Define axis that can only be used in X axis -->
    
    <!-- Time axis base -->
    <xs:complexType name="TimeAxis">
        <xs:complexContent>
            <xs:extension base="AxisElement">
                <xs:attribute name="format" type="xs:string"/>
                <xs:attribute name="id" type="xs:string"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>    
        
    <!-- Epoch axis base -->
    <xs:complexType name="EpochAxis">
        <xs:complexContent>
            <xs:extension base="AxisElement">
                <xs:attribute name="normalized" type="xs:boolean"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>    
    
    <!-- Digital axis base -->
    <xs:complexType name="DigitalAxis">
        <xs:complexContent>
            <xs:extension base="AxisElement">
                <xs:attribute name="id" use="required"/>   
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    
    <!-- Color axis base -->
    <xs:complexType name="ColorAxis">
        <xs:complexContent>
            <xs:extension base="AxisElement">
                <xs:attribute name="minValColor" type="xs:string"/>
                <xs:attribute name="maxValColor" type="xs:string"/>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>

    <xs:element name="plot" substitutionGroup="OutputElement" >
        <xs:complexType>
            <xs:sequence>
                <xs:element name="outputStructure" minOccurs="0" maxOccurs="1">
                    <xs:simpleType  >
                        <xs:restriction base="xs:string">
                            <xs:enumeration value="one-file" />
                            <xs:enumeration value="one-file-per-interval" />
                        </xs:restriction>
                    </xs:simpleType>
                </xs:element>
                <xs:element name="filePrefix" type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="page" minOccurs="0" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="title" type="TitleType"
                                            minOccurs="0" maxOccurs="1" />
                            <xs:element name="margin" minOccurs="0"
                                            maxOccurs="1">
                                <xs:complexType>
                                    <xs:attribute name="x"
                                                              type="xs:decimal" />
                                    <xs:attribute name="y"
                                                              type="xs:decimal" />
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="font" type="FontType"
                                            minOccurs="0" maxOccurs="1" />
                            <xs:element name="layout" minOccurs="0"
                                            maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence></xs:sequence>
                                    <xs:attribute name="type">
                                        <xs:simpleType>
                                            <xs:restriction
                                                base="xs:string">
                                                <xs:enumeration
                                                    value="manual">
                                                </xs:enumeration>
                                                <xs:enumeration
                                                    value="auto">
                                                </xs:enumeration>
                                                <xs:enumeration
                                                    value="vertical">
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="panelHeight"
                                                              type="xs:double">
                                    </xs:attribute>
                                    <xs:attribute name="panelSpacing"
                                                              type="xs:double">
                                    </xs:attribute>
                                    <xs:attribute
                                        name="firstPanelHeightFactor"
                                        type="xs:double">
                                    </xs:attribute>
                                    <xs:attribute name="expand"
                                                              type="xs:boolean">
                                    </xs:attribute>
                                    <xs:attribute name="onlyLowerTimeAxesLegend"
                                                              type="xs:boolean">

                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="panelDefaults"
                                            minOccurs="0" maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="font"
                                                                    type="FontType" minOccurs="0" maxOccurs="1" />
                                    </xs:sequence>
                                    <xs:attribute name="resolution"
                                                              type="xs:integer" />
                                    <!-- default series max resolution -->
                                    <xs:attribute name="backgroundColor"
                                                              type="xs:string" />
                                    <xs:attribute name="colorMapIndex"
                                                              type="xs:integer" />
                                    <xs:attribute name="charSizeUnits"
                                                              type="xs:integer" />
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="panel" minOccurs="0"
                                            maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="bounds"
                                                                    minOccurs="0" maxOccurs="1">
                                            <xs:complexType>
                                                <xs:attribute name="x"
                                                                                      type="xs:decimal" />
                                                <xs:attribute name="y"
                                                                                      type="xs:decimal" />
                                                <xs:attribute
                                                    name="width" type="xs:decimal" />
                                                <xs:attribute
                                                    name="height" type="xs:decimal" />
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element name="font"
                                                                    type="FontType" minOccurs="0" maxOccurs="1" />
                                        <xs:element name="title"
                                                                    type="TitleType" minOccurs="0" maxOccurs="1" />
                                        <xs:element ref="PlotElement"
                                                                    minOccurs="1" maxOccurs="1" />
                                        <xs:element name="tickPlot"
                                                                    minOccurs="0" maxOccurs="1">
                                            <xs:complexType>
                                                <xs:annotation>
                                                    <xs:documentation>
                                                        This enable to
                                                        add decoration
                                                        for time plot.
                                                    </xs:documentation>
                                                </xs:annotation>
                                                <xs:sequence>
                                                    <xs:element
                                                        name="params" type="TickPlotParams"
                                                        minOccurs="0" maxOccurs="1" />
                                                </xs:sequence>
                                                <xs:attribute
                                                    name="format" type="xs:string"
                                                    use="optional">
                                                    <xs:annotation>
                                                        <xs:documentation>
                                                            tickmarks
                                                            format. Uses
                                                            printf
                                                            format
                                                            specification.
                                                            (resulting
                                                            string will
                                                            be limited
                                                            to 40 chars,
                                                            due to
                                                            plplot
                                                            limitation)
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element name="statusPlot"
                                                                    minOccurs="0" maxOccurs="1">
                                            <xs:complexType>
                                                <xs:annotation>
                                                    <xs:documentation>
                                                        This enable to
                                                        add decoration
                                                        for time plot.
                                                    </xs:documentation>
                                                </xs:annotation>
                                                <xs:sequence>
                                                    <xs:element
                                                        name="params" type="StatusPlotParams"
                                                        minOccurs="0" maxOccurs="1" />
                                                </xs:sequence>
                                                <xs:attribute
                                                    name="colorMapIndex" type="xs:integer"
                                                    use="optional">
                                                    <xs:annotation>
                                                        <xs:documentation>
                                                            color map
                                                            index.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="position" use="optional">
                                                    <xs:simpleType>
                                                        <xs:restriction base="xs:string">
                                                            <xs:enumeration value="top" />
                                                            <xs:enumeration value="bottom" />
                                                        </xs:restriction>
                                                    </xs:simpleType> 
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="backgroundColor"
                                                              type="xs:string" />
                                    <xs:attribute name="plotAreaBackgroundColor" type="xs:string"/>
                                    <xs:attribute name="colorMapIndex"
                                                              type="xs:integer" />
                                    <xs:attribute name="preferedWidth"
                                                              type="xs:double">
                                    </xs:attribute>
                                    <xs:attribute name="preferedHeight"
                                                              type="xs:double">
                                    </xs:attribute>
                                    <xs:attribute name="xMargin"
                                                              type="xs:string">
                                    </xs:attribute>
                                    <xs:attribute name="yMargin"
                                                              type="xs:string">
                                    </xs:attribute>
                                    <xs:attribute name="id" type="xs:integer"></xs:attribute>
                                    <xs:attribute name="index" type="xs:integer"></xs:attribute>
                                    <xs:attribute name="showIntInfo" type="xs:boolean"></xs:attribute>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="format" use="required">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="png" />
                                    <xs:enumeration value="pdf" />
                                    <xs:enumeration value="ps" />
                                    <xs:enumeration value="svg" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="dimension">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="ISO A4" />
                                    <xs:enumeration value="US letter" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="orientation">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="landscape" />
                                    <xs:enumeration value="portrait" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="mode">
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="color" />
                                    <xs:enumeration value="grayscale" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="defaultTimePlotWidth"
                                      type="xs:double">
                        </xs:attribute>
                        <xs:attribute name="defaultTimePlotHeight"
                                      type="xs:double">
                        </xs:attribute>
                        <xs:attribute name="defaultTimePlotXMargin"
                                      type="xs:string">
                        </xs:attribute>
                        <xs:attribute name="defaultTimePlotYMargin"
                                      type="xs:string">
                        </xs:attribute>
                        <xs:attribute name="defaultXYPlotWidth"
                                      type="xs:double">
                        </xs:attribute>
                        <xs:attribute name="defaultXYPlotHeight"
                                      type="xs:double">
                        </xs:attribute>
                        <xs:attribute name="defaultXYPlotXMargin"
                                      type="xs:string">
                        </xs:attribute>
                        <xs:attribute name="defaultXYPlotYMargin"
                                      type="xs:string">
                        </xs:attribute>
                        <xs:attribute name="superposeMode"
                                      type="xs:boolean">
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ref="PostProcessingElement" minOccurs="0" maxOccurs="1"/>
            </xs:sequence>
            <xs:attribute name="writeContextFile" type="xs:boolean"/>
            <xs:attribute name="writeDataFile" type="xs:boolean"/>
        </xs:complexType>
    </xs:element>

    <xs:complexType name="ResamplingType">
        <xs:annotation>
            <xs:documentation>Resampling specifications. Define resampling to use to draw the object.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="type">
            <xs:annotation>
                <xs:documentation>Resampling type. Can be one of :
                    auto : determine automatically the resampling to use. The effect depends to the object to draw, but generally the natural parameter sampling will be used
                    xparam: use the xparam as reference to resample the yparam
                    yparam: use the yparam as reference to resample the xparam
                    manual: define a sampling time to apply to parameter for drawing</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="auto"></xs:enumeration>
                    <xs:enumeration value="xparam"></xs:enumeration>
                    <xs:enumeration value="yparam"></xs:enumeration>
                    <xs:enumeration value="manual"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="value" type="xs:double" default="0.">
            <xs:annotation>
                <xs:documentation>Value to use for resampling. Only used when resampling type is 'manual'</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>

    <xs:complexType name="Bins1DType">
        <xs:annotation>
            <xs:documentation>Bins specifications. Define bins to use to draw the 2D object.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="manual" type="Histo1dManualType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="Bins2DType">
        <xs:annotation>
            <xs:documentation>Bins specifications. Define bins to use to draw the 2D object.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="manual" type="Histo2dManualType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
        </xs:sequence>
    </xs:complexType>

     <xs:complexType name="Histo1DType">
        <xs:annotation>
            <xs:documentation>HistoType specifications. Define bins to use to draw the 2D object.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="type" type="xs:string"/>
        <xs:attribute name="paramId" type="xs:string"></xs:attribute>
        <xs:attribute name="index" type="xs:string"></xs:attribute>  
    </xs:complexType>

    <xs:complexType name="Histo2DType">
        <xs:annotation>
            <xs:documentation>HistoType specifications. Define bins to use to draw the 2D object.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="smoothfactor" type="xs:double" default="1.0">
            <xs:annotation>
                <xs:documentation>Value to use for smoothing. Only used in case of density map, = 1 means no smoothing</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="type" type="xs:string"/>
        <xs:attribute name="paramId" type="xs:string"></xs:attribute>
        <xs:attribute name="index" type="xs:string"></xs:attribute>  
    </xs:complexType>

    <xs:complexType name="Histo1dManualType">
        <xs:annotation>
            <xs:documentation>Manual specification for 2DHISTO.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="xbinnumber" type="xs:int" default="10">
            <xs:annotation>
                <xs:documentation>Value to use for xbinning. Only used when bins type is 'manual'</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="stairs" type="xs:string" default="false">
            <xs:annotation>
                <xs:documentation>True if needed to plot stair-like. Only used when bins type is 'manual'</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>

    <xs:complexType name="Histo2dManualType">
        <xs:annotation>
            <xs:documentation>Manual specification for 2DHISTO.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="xbinnumber" type="xs:int" default="10">
            <xs:annotation>
                <xs:documentation>Value to use for xbinning. Only used when bins type is 'manual'</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="ybinnumber" type="xs:int" default="10">
            <xs:annotation>
                <xs:documentation>Value to use for ybinning. Only used when bins type is 'manual'</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:attributeGroup name="CurveGroup">
        <xs:annotation>
            <xs:documentation>Curve specifications. Define properties for a curve.
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="style">
            <xs:annotation>
                <xs:documentation>Curve Style. Can be one of the following values :
                    - plain : plain Curve style
                    - dot : Curve with short dashes and gaps
                    - long-spaced-dot : Curve with long dashes and long gaps.
                    - long-short-dot : Curve with long dashes and short gaps.
                </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="plain"></xs:enumeration>
                    <xs:enumeration value="dot"></xs:enumeration>
                    <xs:enumeration value="long-spaced-dot"></xs:enumeration>
                    <xs:enumeration value="long-short-dot"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="width" type="xs:int" default="1">
            <xs:annotation>
                <xs:documentation>Curve width in mm. Default is 1mm</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attributeGroup ref="ColorGroup"/>
    </xs:attributeGroup>

    <xs:complexType name="LineType">
        <xs:annotation>
            <xs:documentation>Line specifications. Define properties for a line attached to a parameter.
                Properties set there will override default value or general properties that could have been set in tag's parent</xs:documentation>
        </xs:annotation>
        <xs:attribute name="type">
            <xs:annotation>
                <xs:documentation>Line type. Can be one of :
                    no : no line is drawn
                    line: a line is drawn between each points
                    histo: an histogram is drawn for each point

                    Note : This attribute may be unecessary since kind of line may be deduce from Plot Type [TBC]
                </xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="no"></xs:enumeration>
                    <xs:enumeration value="line"></xs:enumeration>
                    <xs:enumeration value="histo"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attributeGroup ref="CurveGroup"/>
    </xs:complexType>

    <xs:complexType name="SymbolType">
        <xs:annotation>
            <xs:documentation>Symbol displayed for each points. By default, no symbol is drawn if a line is defined. A 'point' symbol is used othrewise</xs:documentation>
        </xs:annotation>
        <xs:attribute name="type">
            <xs:annotation>
                <xs:documentation>Symbol type.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="no"></xs:enumeration>
                    <xs:enumeration value="dot"></xs:enumeration>
                    <xs:enumeration value="plus"></xs:enumeration>
                    <xs:enumeration value="wildcard"></xs:enumeration>
                    <xs:enumeration value="circle"></xs:enumeration>
                    <xs:enumeration value="crux"></xs:enumeration>
                    <xs:enumeration value="square"></xs:enumeration>
                    <xs:enumeration value="triangle"></xs:enumeration>
                    <xs:enumeration value="crux-in-circle"></xs:enumeration>
                    <xs:enumeration value="dot-in-circle"></xs:enumeration>
                    <!-- <xs:enumeration value="square-2"></xs:enumeration>  -->
                    <xs:enumeration value="diamond"></xs:enumeration>
                    <xs:enumeration value="star"></xs:enumeration>
                    <!-- <xs:enumeration value="christian-crux"></xs:enumeration> -->
                    <xs:enumeration value="david-star"></xs:enumeration>
                    <xs:enumeration value="full-square"></xs:enumeration>
                    <xs:enumeration value="full-circle"></xs:enumeration>
                    <xs:enumeration value="full-star"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="size" type="xs:int" default="4">
            <xs:annotation>
                <xs:documentation>
                    symbol size in mm. Default is 4mm
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attributeGroup ref="ColorGroup"/>
    </xs:complexType>
    

    <xs:complexType name="ParameterXPropertiesType">
        <xs:attribute name="index" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    Index of serie to put on x axis (in case Parameter is not a
                    scalar type).
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>    	
        <xs:attribute name="min" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="max" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="id" type="xs:integer" use="required"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="ParameterYPropertiesType">
        <xs:sequence>
            <xs:element name="resampling" type="ResamplingType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
            <xs:element name="line" type="LineType" maxOccurs="1"
                                    minOccurs="0">
            </xs:element>
            <xs:element name="symbol" type="SymbolType" maxOccurs="1"
                                    minOccurs="0">
            </xs:element>
            <xs:element name="timeTick" type="TimeTickType"
                                    minOccurs="0" maxOccurs="1">
            </xs:element>
            <xs:element name="intervalTick" type="IntervalTickType"
                                    minOccurs="0" maxOccurs="1">
            </xs:element>
            <xs:element name="errorBar" type="errorBarType" maxOccurs="1" minOccurs="0"></xs:element>
        </xs:sequence>
        <xs:attribute name="index" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    Index of serie to plot (in case Parameter is not a
                    scalar type). Default to 1 if Parameter is a simple
                    type.
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="yAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xId" type="xs:integer"></xs:attribute>
        <xs:attribute name="resolution" type="xs:integer" />
        <xs:attribute name="min" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="max" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="id" type="xs:integer"></xs:attribute>
        <xs:attribute name="colorSerieId" type="xs:integer"></xs:attribute>
    </xs:complexType>


    <xs:complexType name="Parameter1dhistogramPropertiesType">
        <xs:sequence>
            <xs:element name="bins" type="Bins1DType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
            <xs:element name="histotype" type="Histo1DType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
        </xs:sequence>
        <xs:attribute name="index" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    Index of serie to plot (in case Parameter is not a
                    scalar type). Default to 1 if Parameter is a simple
                    type.
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="yAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="color" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="id" type="xs:integer"></xs:attribute>
    </xs:complexType>


    <xs:complexType name="Parameter2dhistogramPropertiesType">
        <xs:sequence>
            <xs:element name="resampling" type="ResamplingType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
            <xs:element name="bins" type="Bins2DType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
            <xs:element name="histotype" type="Histo2DType"
                                    maxOccurs="1" minOccurs="0">
            </xs:element>
        </xs:sequence>
        <xs:attribute name="index" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    Index of serie to plot (in case Parameter is not a
                    scalar type). Default to 1 if Parameter is a simple
                    type.
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="yAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xId" type="xs:integer"></xs:attribute>
        <xs:attribute name="id" type="xs:integer"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="ParameterOrbitPropertiesType">
        <xs:sequence>
            <xs:element name="line" type="LineType" maxOccurs="1"
                                    minOccurs="0">
            </xs:element>
            <xs:element name="symbol" type="SymbolType" maxOccurs="1"
                                    minOccurs="0">
            </xs:element>
            <xs:element name="timeTick" type="TimeTickType"
                                    minOccurs="0" maxOccurs="1">
            </xs:element>
            <xs:element name="intervalTick" type="IntervalTickType"
                                    minOccurs="0" maxOccurs="1">
            </xs:element>
        </xs:sequence>
        <xs:attribute name="projection">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="XY"></xs:enumeration>
                    <xs:enumeration value="XZ"></xs:enumeration>
                    <xs:enumeration value="YZ"></xs:enumeration>
                    <xs:enumeration value="XR"></xs:enumeration>
                    <xs:enumeration value="YR"></xs:enumeration>
                    <xs:enumeration value="ZR"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="yAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="xAxis" type="xs:string"></xs:attribute>
        <xs:attribute name="resolution" type="xs:integer" />
        <xs:attribute name="id" type="xs:integer"></xs:attribute>
        <xs:attribute name="colorSerieId" type="xs:integer"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="ParameterIntervalsPropertiesType">
        <xs:sequence>
            <xs:element name="textLegend" type="TextLegendType" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
        <xs:attribute name="color" type="xs:string" use="optional"></xs:attribute> 
        <xs:attribute name="index" type="xs:string" use="optional"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="ParameterSpectroPropertiesType">
        <xs:attribute name="yAxis" type="xs:string" />
        <xs:attribute name="index" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="resolution" type="xs:integer" use="optional"></xs:attribute>
        <xs:attribute name="min" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="max" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="uselog0asmin" type="xs:boolean" use="optional"></xs:attribute>
        
        <xs:attribute name="normalization">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="none"></xs:enumeration>
                    <xs:enumeration value="log"></xs:enumeration>
                    <xs:enumeration value="linear"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>

        <xs:attribute name="background_sub_type" type="xs:string"/>
        <xs:attribute name="background_sub_value" type="xs:string"/>
        <xs:attribute name="background_sub_dim" type="xs:integer"/>
        
    </xs:complexType>
    
    <xs:complexType name="ParameterSauvaudPropertiesType">
        <xs:attribute name="yAxis" type="xs:string" />
        <xs:attribute name="index" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="resolution" type="xs:integer" use="optional"></xs:attribute>
        <xs:attribute name="min" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="max" type="xs:double" use="optional"></xs:attribute>
        <xs:attribute name="uselog0asmin" type="xs:boolean" use="optional"></xs:attribute>
        <xs:attribute name="right_dim" type="xs:integer" use="optional"></xs:attribute>
        
        <xs:attribute name="normalization">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="none"></xs:enumeration>
                    <xs:enumeration value="log"></xs:enumeration>
                    <xs:enumeration value="linear"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>

        <xs:attribute name="background_sub_type" type="xs:string"/>
        <xs:attribute name="background_sub_value" type="xs:string"/>
        <xs:attribute name="background_sub_dim" type="xs:integer"/>
        
    </xs:complexType>

    <xs:complexType name="ParameterColorSeriePropertiesType">
        <xs:attribute name="index" type="xs:string"></xs:attribute>
        <xs:attribute name="id" type="xs:integer"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="ParameterDefaultPropertiesType">
        <xs:annotation>
            <xs:documentation>
                Default values for all series. Can be overriden in
                each series element.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="line" type="LineType" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Default line properties</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="symbol" type="SymbolType" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Default symbol properties</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="yAxis" type="xs:string" use="optional">
            <xs:annotation>
                <xs:documentation>Default yAxis value</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="xAxis" type="xs:string" use="optional">
            <xs:annotation>
                <xs:documentation>Default xAxis value</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attributeGroup ref="ColorGroup"/>
    </xs:complexType>

    <xs:complexType name="TextPlotPropertiesType">
        <xs:sequence>
            <xs:element name="font" type="FontType" minOccurs="0"
                            maxOccurs="1">
            </xs:element>
        </xs:sequence>
        <xs:attribute name="text" type="xs:string" use="required"></xs:attribute>
        <xs:attribute name="xAxis" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="yAxis" type="xs:string" use="required"></xs:attribute>
        <xs:attribute name="x" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="y" type="xs:string"></xs:attribute>
        <xs:attribute name="angle" type="xs:string"></xs:attribute>
        <xs:attribute name="color" type="xs:string"></xs:attribute>
        <xs:attribute name="align" use="optional">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="left"></xs:enumeration>
                    <xs:enumeration value="center"></xs:enumeration>
                    <xs:enumeration value="right"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>

    <xs:complexType name="CurvePlotPropertiesType">
        <xs:sequence>
            <xs:element name="function" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:annotation>
                        <xs:documentation>Curve function definition</xs:documentation>
                    </xs:annotation>
                    <xs:sequence>
                        <xs:element name="attributes" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="attribute" minOccurs="0" maxOccurs="unbounded">
                                        <xs:complexType>
                                            <xs:attribute name="name" type="xs:string"/>
                                            <xs:attribute name="value" type="xs:decimal"/>
                                        </xs:complexType>
                                    </xs:element>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attribute name="name" type="xs:string" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="serieId" type="xs:string" use="required"/>
        <xs:attributeGroup ref="CurveGroup"/>
    </xs:complexType>

    <xs:complexType name="TimeTickType">
        <xs:all>
            <xs:element name="symbol" type="SymbolType" minOccurs="0"
                            maxOccurs="1">
            </xs:element>
            <xs:element name="firstSymbol" type="SymbolType"
                            minOccurs="0" maxOccurs="1">
            </xs:element>
            <xs:element name="font" type="FontType" minOccurs="0"
                            maxOccurs="1">
            </xs:element>
        </xs:all>
        <xs:attribute name="step" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="number" type="xs:int" use="optional"></xs:attribute>
        <xs:attribute name="minor" type="xs:int" use="optional"></xs:attribute>
        <xs:attribute name="color" type="xs:string" use="optional"></xs:attribute>
    </xs:complexType>
    
    <xs:complexType name="IntervalTickType">
        <xs:all>
            <xs:element name="symbol" type="SymbolType" minOccurs="0"
                            maxOccurs="1">
            </xs:element>
            <xs:element name="font" type="FontType" minOccurs="0"
                            maxOccurs="1">
            </xs:element>
        </xs:all>
        <xs:attribute name="color" type="xs:string" use="optional"></xs:attribute>
        <xs:attribute name="mode" use="optional">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="symbol-only"></xs:enumeration>
                    <xs:enumeration value="interval-index"></xs:enumeration>
                    <xs:enumeration value="start-time"></xs:enumeration>
                    <xs:enumeration value="start-stop-time"></xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>

    <!-- Define Fills types -->
    
    <xs:complexType name="FillsType">
        <xs:sequence>
            <xs:element name="fillSerieConstant"
                            type="FillSerieConstantType" minOccurs="0" maxOccurs="unbounded">
            </xs:element>
            <xs:element name="fillSerieSerie" type="FillSerieSerieType" minOccurs="0" maxOccurs="unbounded"></xs:element>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="FillSerieConstantType">
        <xs:attribute name="serieId" type="xs:int"></xs:attribute>
        <xs:attribute name="constantId" type="xs:int"></xs:attribute>
        <xs:attribute name="colorGreater" type="xs:string"></xs:attribute>
        <xs:attribute name="colorLess" type="xs:string"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="FillSerieSerieType">
        <xs:attribute name="firstSerieId" type="xs:int"></xs:attribute>
        <xs:attribute name="secondSerieId" type="xs:int"></xs:attribute>
        <xs:attribute name="colorGreater" type="xs:string"></xs:attribute>
        <xs:attribute name="colorLess" type="xs:string"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="errorBarType">
        <xs:sequence>
            <xs:element name="line" type="LineType" maxOccurs="1"
                            minOccurs="0">
            </xs:element>
            <xs:element name="errorMinMax" type="errorMinMaxType"
                            maxOccurs="1" minOccurs="0">
            </xs:element>
            <xs:element name="errorDelta" type="errorDeltaType"
                            maxOccurs="1" minOccurs="0">
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="errorMinMaxType">
        <xs:attribute name="paramMin" type="xs:string" use="required"></xs:attribute>
        <xs:attribute name="paramMax" type="xs:string" use="required"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="errorDeltaType">
        <xs:attribute name="param" type="xs:string" use="required"></xs:attribute>
    </xs:complexType>
</xs:schema>