FypML Version 7
Post date: Nov 15, 2011 5:06:25 PM
Applicable to: Phyplot versions 2.0.0 (18 Jul 2007) through 2.1.3 (29 Jan 2008 -- the last release of Phyplot).
This schema version corresponds with a major re-design of the entire Phyplot application. There were extensive changes to the FypML schema, although no changes in the element namespace:
The graph element now requires a legend child as the fifth child node. During migration, the legend node is added to any graph that lacks it, with its hide attribute set to true.
The axis element no longer admits any label or line elements as children. If any are encountered during migration, they are simply removed. This should not be an issue, since such usage was extremely rare. (As of v2.0.2) During migration, if the axis has an empty title attribute and at least one label child with a non-empty title attribute, that title becomes the title attribute value for the axis. (As of v2.1.0) Any number of ticks elements are admitted as children of an axis, instead of a maximum of 4.
The legend node no longer has strokeWidth or strokeColor attributes; they were never used.
Eliminated the notion of "document-level default" attribute values. In the prior schema version, the attributes cap, capSize, mid, spacer, labelOffset, perLogIntv, dir, len, fmt, and gap had default values specified on the figure node; they were required attributes for the figure. During migration, the old document-level defaults are explicitly set on the relevant nodes as Phyplot traverses the node tree.
The font attribute only specifies a single font family instead of two.
The fontSize attribute is no longer a Measure attribute type (e.g., "12pt" or "0.2in"), but an integer in [1..99] specifying the font size in typographical points. The old font size is converted to points, rounded to nearest integer, and range-restricted.
The substfont attribute is now called altFont, and it is defined on any element that has font-related properties. Like all graphic styles, it is inheritable. Also, the altFont choice sans-serif is replaced by sanserif.
The psfont attribute is now psFont (note the capital 'F').
The strokePat attribute replaces lineType, with some important differences. Each dash-gap length is now restricted to [1..99] and is measured in 0.1 line-widths instead of milli-inches. In addition, the hidden line style on longer exists. Finally, strokePat is treated as inheritable property just as strokeWidth is; it is defined on the container classes figure and graph even though a Phyplot author will always set strokePat=solid for such elements.
New attribute legend replaces the hide attribute on function and trace nodes. During migration, if hide=false, then legend=true (meaning, include an entry for the data presentation element in the parent graph's legend).
The type attribute on a trace node is now mode; its usage is unchanged.
The horiz attribute on a calib node is now primary; its usage is unchanged.
The value none is no longer recognized as a valid adornment type for the cap attribute of calib and ebar nodes, or the type attribute on shape and symbol nodes. To achieve the same effect, the attribute specifying adornment size (capSize or size) is set to 0in. All other adornment type names are unchanged, EXCEPT that any capital letters in the name are now lowercase.
The synonyms all, even and none for the perLogIntv attribute have been dropped.
Most of the allowed values for the fmt attribute of a set element have changed in spelling: pointSet is now ptset, multiSet is now mset, and multiSeries is now mseries.