09.07.2015 Views

piechartMP Manual

piechartMP Manual

piechartMP Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Basic Commands52234101111approx. 200002.2 Drawing Chart and LabelsThe commands which create real output are only two. The first mentioned PieChart hasto be the first drawing command in a beginfig-endfig-group, since it performs someimportant setup and calculations for the following label commands.2.2.1 Drawing the Pie-ChartPieChart(Radius,Height,Observation,Rotation,Offset)Radius [Type: numeric] That parameter specifies the radius of the pie-chart.2cmXdraws a pie-chart with radius 2 cmany other valid METAPOST numeric expressionHeight [Type: numeric] The height or thickness of the pie-chart can be specified with thisparameter. In contrast to Radius the parameter Height does not specify the heightdirectly but moreover the height is the result of the multiplication of Radius andHeight.Observation [Type: numeric] The observation angle in degrees can be specified usingthis parameter.0 minimum value; since the observation on the pie-chart isfrom above, this results in a simple 2D-chart1...89 draws the pie-chart in 3D-parallel-projection; 89 is maximumvalueRotation [Type: numeric] The angle of rotation around the center of the pie-chart.0...359 any numeric value in that rangeOffset [Type: numeric] The third parameter of the command SegmentState specifies theradial displacement for a single segment. Using Offset in the PieChart command anoffset is applied for all segments.0 no displacement1 full radial displacementX any other displacement factor9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!