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.

7 <strong>piechartMP</strong> InternalsFranceFranceUSAUSA10.6 %11.1 %Great BritainItalyothersGreat BritainItaly8.4 %7.4 %6.2 % 5.1 %51.2 %othersNetherlandsAustriaFrance11.1 %USA10.6 %USANetherlandsAustriaFrance11.1 %10.6 %Great BritainItaly8.4 %7.4 %6.2 % 5.1 %51.2 %othersGreat BritainItaly8.4 %7.4 %6.2 % 5.1 %51.2 %othersNetherlandsAustriaNetherlandsAustriaFranceFranceUSA10.6 %11.1 %USA10.6 %11.1 %Great Britain8.4 %ItalyNetherlands7.4 %6.2 % 5.1 %51.2 %Austriaothers8.4 %51.2 %Great Britain7.4 %6.2 % 5.1 %ItalyNetherlandsAustriaothersFrance11.1 %USA10.6 %8.4 %Great Britain7.4 %Italy5.1 %6.2 %51.2 %othersGreat BritainUSAItaly10.6 %8.4 %NetherlandsFrance7.4 %6.2 %11.1 %5.1 %51.2 %othersNetherlandsAustriaAustria7 <strong>piechartMP</strong> InternalsThis section describes some internal variables and macros which can be useful when youneed some information about the chart for more advanced graphics.R is a numeric variable containing the radius of the pie-chart, that was specified in PieChart.Thus the variable is only valid after the PieChart command has been used.pc_Centre is a METAPOST variable of type pair which contains the centre of the pie-chart.Normally this is the origin of the METAPOST co-ordinate system, but you can modifythe value in order to place the chart somewhere. It is a matter of course that youshouldn’t change this value between PieChart and the label commands.pc_Count is a numeric variable containing the number of defined segments. For exampleits value can be used in own loops. But even you can set this value to 0 in orderto start a completely new set of segment data. <strong>piechartMP</strong> defines the macroResetSegments which does exactly this.SegmentPoint(s,sp) is a macro returning a METAPOST pair. The command Label hasa parameter SegmentPoint. If you use this specification as parameter sp and a valid34

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

Saved successfully!

Ooh no, something went wrong!