<!-- ================================================================== -->
|
<!-- -->
|
<!-- FILE: plots.xsd -->
|
<!-- DESCRIPTION: XML Schema - Maple Worksheet: plot-related -->
|
<!-- elements -->
|
<!-- -->
|
<!-- ================================================================== -->
|
<xsd:schema xmlns:mws="http://www.maplesoft.com/xml/schema/worksheet"
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<xsd:annotation>
|
<xsd:documentation xml:lang="en">
|
Plot-related elements of a Maple Worksheet.
|
</xsd:documentation>
|
</xsd:annotation>
|
<!-- ============================================================== -->
|
<!-- Includes -->
|
<!-- ============================================================== -->
|
<xsd:include schemaLocation="common.xsd"/>
|
<!-- ============================================================== -->
|
<!-- Attribute types -->
|
<!-- ============================================================== -->
|
<!-- PlotDataModeType -->
|
<xsd:simpleType name="PlotDataModeType">
|
<xsd:restriction base="xsd:positiveInteger">
|
<xsd:enumeration value="2"/>
|
<xsd:enumeration value="3"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataStyleType -->
|
<xsd:simpleType name="PlotDataStyleType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="patchcontour"/>
|
<xsd:enumeration value="line"/>
|
<xsd:enumeration value="contour"/>
|
<xsd:enumeration value="flatcontour"/>
|
<xsd:enumeration value="hidden"/>
|
<xsd:enumeration value="patch"/>
|
<xsd:enumeration value="point"/>
|
<xsd:enumeration value="patchnogrid"/>
|
<xsd:enumeration value="default"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataSymbolType -->
|
<xsd:simpleType name="PlotDataSymbolType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="circle"/>
|
<xsd:enumeration value="point"/>
|
<xsd:enumeration value="diamond"/>
|
<xsd:enumeration value="cross"/>
|
<xsd:enumeration value="box"/>
|
<xsd:enumeration value="default"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataDashpatternType -->
|
<xsd:simpleType name="PlotDataDashpatternType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="dash"/>
|
<xsd:enumeration value="dashdot"/>
|
<xsd:enumeration value="solid"/>
|
<xsd:enumeration value="dot"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataGridStyleType -->
|
<xsd:simpleType name="PlotDataGridStyleType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="rectangular"/>
|
<xsd:enumeration value="triangular"/>
|
<xsd:enumeration value="default"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataColourStyleType -->
|
<xsd:simpleType name="PlotDataColourStyleType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="default"/>
|
<xsd:enumeration value="xyz"/>
|
<xsd:enumeration value="xy"/>
|
<xsd:enumeration value="z"/>
|
<xsd:enumeration value="z-hue"/>
|
<xsd:enumeration value="z-grey"/>
|
<xsd:enumeration value="rgb"/>
|
<xsd:enumeration value="hue"/>
|
<xsd:enumeration value="hsv"/>
|
<xsd:enumeration value="none"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataLightmodelType -->
|
<xsd:simpleType name="PlotDataLightmodelType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="default"/>
|
<xsd:enumeration value="none"/>
|
<xsd:enumeration value="light1"/>
|
<xsd:enumeration value="light2"/>
|
<xsd:enumeration value="light3"/>
|
<xsd:enumeration value="light4"/>
|
<xsd:enumeration value="user"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataAxesStyleType -->
|
<xsd:simpleType name="PlotDataAxesStyleType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="default"/>
|
<xsd:enumeration value="none"/>
|
<xsd:enumeration value="frame"/>
|
<xsd:enumeration value="box"/>
|
<xsd:enumeration value="normal"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- PlotDataProjectionStyleType -->
|
<xsd:simpleType name="PlotDataProjectionStyleType">
|
<xsd:restriction base="xsd:string">
|
<xsd:enumeration value="orthogonal"/>
|
<xsd:enumeration value="perspective"/>
|
<xsd:enumeration value="default"/>
|
</xsd:restriction>
|
</xsd:simpleType>
|
<!-- ============================================================== -->
|
<!-- Element Types -->
|
<!-- ============================================================== -->
|
<!-- PlotDataType -->
|
<xsd:complexType name="PlotDataType">
|
<!-- sub-elements -->
|
<xsd:sequence>
|
<xsd:element ref="legends" minOccurs="0" maxOccurs="1"/>
|
</xsd:sequence>
|
<!-- attributes -->
|
<xsd:attribute name="mode" type="PlotDataModeType" use="required">
|
<xsd:annotation>
|
<xsd:documentation>
|
Indicates whether the plotdata object represents
|
a two- or three-dimensional plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="style" type="PlotDataStyleType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Specifies the "drawing style" of the plot, which
|
affects the rendering of non-text objects in the
|
visual representation of the plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="symbol" type="PlotDataSymbolType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Determines what glyph is used to represent
|
specially distinguished points on a plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="dashpattern"
|
type="PlotDataDashpatternType"
|
default="solid">
|
<xsd:annotation>
|
<xsd:documentation>
|
Determines the style of lines used in the plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="symbol-size" type="xsd:nonNegativeInteger"
|
default="0">
|
<xsd:annotation>
|
<xsd:documentation>
|
Determines the size of symbols used in the plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="thickness" type="xsd:nonNegativeInteger"
|
default="0">
|
<xsd:annotation>
|
<xsd:documentation>
|
Positive integer specifying the thickness of
|
lines used when the plot is rendered.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="grid-style"
|
type="PlotDataGridStyleType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Determines whether diagonals are shown.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="colour-style"
|
type="PlotDataColourStyleType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Indicates how colors in the plot are specified.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="light-model"
|
type="PlotDataLightmodelType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Selects one of a predefined set of lighting
|
settings used to illuminate the plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="axes-style"
|
type="PlotDataAxesStyleType"
|
default="default">
|
<xsd:annotation>
|
<xsd:documentation>
|
Specifies the style of axes drawn on the plot.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
<xsd:attribute name="constrained"
|
type="ExtendedBooleanAttributeType"
|
default="inherited"/>
|
<xsd:attribute name="r" type="xsd:decimal" use="required"/>
|
<xsd:attribute name="phi" type="xsd:decimal" use="required"/>
|
<xsd:attribute name="theta" type="xsd:decimal" use="required"/>
|
<xsd:attribute name="projection-style"
|
type="PlotDataProjectionStyleType"
|
default="default"/>
|
<xsd:attribute name="display-legend" type="BooleanAttributeType"
|
default="true">
|
<xsd:annotation>
|
<xsd:documentation>
|
Controls whether legends are displayed.
|
</xsd:documentation>
|
</xsd:annotation>
|
</xsd:attribute>
|
</xsd:complexType>
|
<!-- PlotLegendsType -->
|
<xsd:complexType name="PlotLegendsType">
|
<xsd:sequence>
|
<xsd:element ref="legend" minOccurs="1"
|
maxOccurs="unbounded"/>
|
</xsd:sequence>
|
</xsd:complexType>
|
<!-- GLPlotType -->
|
<xsd:complexType name="GLPlotType">
|
<xsd:sequence>
|
<xsd:element ref="plotdata"/>
|
</xsd:sequence>
|
<xsd:attribute name="width" type="xsd:positiveInteger"
|
use="required"/>
|
<xsd:attribute name="height" type="xsd:positiveInteger"
|
use="required"/>
|
<xsd:attribute name="ascent" type="xsd:positiveInteger"
|
use="required"/>
|
</xsd:complexType>
|
<!-- SmartplotType -->
|
<xsd:complexType name="SmartplotType">
|
<xsd:complexContent>
|
<xsd:extension base="GLPlotType">
|
<xsd:attribute name="command" type="xsd:string"
|
use="optional"/>
|
</xsd:extension>
|
</xsd:complexContent>
|
</xsd:complexType>
|
<!-- BitmapType -->
|
<xsd:complexType name="BitmapType">
|
<xsd:simpleContent>
|
<xsd:extension base="xsd:string">
|
<xsd:attribute name="width" type="xsd:positiveInteger"
|
use="required"/>
|
<xsd:attribute name="height" type="xsd:positiveInteger"
|
use="required"/>
|
<xsd:attribute name="ascent" type="xsd:positiveInteger"
|
use="required"/>
|
<xsd:attribute name="compression-type" type="xsd:integer"
|
use="required"/>
|
</xsd:extension>
|
</xsd:simpleContent>
|
</xsd:complexType>
|
<!-- InlinePlotType -->
|
<xsd:complexType name="InlinePlotType">
|
<xsd:complexContent>
|
<xsd:extension base="PlotDataType">
|
<xsd:attribute name="width" type="xsd:nonNegativeInteger"
|
use="required"/>
|
<xsd:attribute name="height" type="xsd:nonNegativeInteger"
|
use="required"/>
|
<xsd:attribute name="ascent" type="xsd:nonNegativeInteger"
|
use="required"/>
|
<!-- device analogs of plotdata attributes -->
|
<xsd:attribute name="device-style"
|
type="PlotDataStyleType"
|
default="default"/>
|
<xsd:attribute name="device-line-style"
|
type="xsd:nonNegativeInteger" default="0"/>
|
<xsd:attribute name="device-symbol"
|
type="PlotDataSymbolType" default="default"/>
|
<xsd:attribute name="device-line-thickness"
|
type="xsd:nonNegativeInteger"
|
use="required"/>
|
<xsd:attribute name="device-grid-style"
|
type="PlotDataGridStyleType"
|
default="default"/>
|
<xsd:attribute name="device-colour-style"
|
type="PlotDataColourStyleType"
|
default="default"/>
|
<xsd:attribute name="device-light-model"
|
type="PlotDataLightmodelType"
|
default="default"/>
|
<xsd:attribute name="device-axes-style"
|
type="PlotDataAxesStyleType"
|
default="default"/>
|
<xsd:attribute name="device-projection-style"
|
type="PlotDataProjectionStyleType"
|
default="default"/>
|
<xsd:attribute name="device-constrained"
|
type="ExtendedBooleanAttributeType"
|
default="inherited"/>
|
<xsd:attribute name="is-virtual-device"
|
type="BooleanAttributeType"
|
default="false"/>
|
<!-- color control attributes -->
|
<xsd:attribute name="red" type="RGBColorType"
|
default="0"/>
|
<xsd:attribute name="green" type="RGBColorType"
|
default="0"/>
|
<xsd:attribute name="blue" type="RGBColorType"
|
default="0"/>
|
<xsd:attribute name="pen-red" type="RGBColorType"
|
default="0"/>
|
<xsd:attribute name="pen-green" type="RGBColorType"
|
default="0"/>
|
<xsd:attribute name="pen-blue" type="RGBColorType"
|
default="0"/>
|
<!-- position control attributes -->
|
<xsd:attribute name="estyle" type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="current-width"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="rotate-x"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="rotate-y"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="locate-x"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="locate-y"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="rotation-disabled"
|
type="BooleanAttributeType"
|
default="true"/>
|
<!-- animation control attributes -->
|
<xsd:attribute name="animation-mode"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="fast-animation"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="animation-type"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="animation-direction"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
<xsd:attribute name="frame-delay"
|
type="xsd:nonNegativeInteger"
|
default="0"/>
|
</xsd:extension>
|
</xsd:complexContent>
|
</xsd:complexType>
|
<!-- ============================================================== -->
|
<!-- Actual Elements -->
|
<!-- ============================================================== -->
|
<!-- bitmap element -->
|
<xsd:element name="bitmap" type="BitmapType"/>
|
<!-- glplot2d element -->
|
<xsd:element name="glplot2d" type="GLPlotType"/>
|
<!-- glplot3d element -->
|
<xsd:element name="glplot3d" type="GLPlotType"/>
|
<!-- inline-plot element -->
|
<xsd:element name="inline-plot" type="InlinePlotType"/>
|
<!-- legend element -->
|
<xsd:element name="legend" type="xsd:string"/>
|
<!-- legends element -->
|
<xsd:element name="legends" type="PlotLegendsType"/>
|
<!-- windows-metafile element -->
|
<xsd:element name="windows-metafile" type="BitmapType"/>
|
<!-- newsmartplot2d element -->
|
<xsd:element name="newsmartplot2d" type="SmartplotType"/>
|
<!-- newsmartplot3d element -->
|
<xsd:element name="newsmartplot3d" type="SmartplotType"/>
|
<!-- smartplot2d element -->
|
<xsd:element name="smartplot2d" type="SmartplotType"/>
|
<!-- smartplot3d element -->
|
<xsd:element name="smartplot3d" type="SmartplotType"/>
|
<!-- plotdata element -->
|
<xsd:element name="plotdata" type="PlotDataType"/>
|
</xsd:schema>
|