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.

6 Tips for Presentationsendthe first segmenta green labelthe first segmenta green label38 %38 %10the third segmentthe first segmenta green labelthe first segmenta green label38 %38 %the second segment23 %1020the fifth segment1020the fifth segmentthe third segmentthe third segmentthe first segmenta green label38 %the second segment23 %the third segment102020the fifth segmentthe fourth segmenta red label(The figures are scaled by factor 0.5.)6.3 Presentations not segment by segmentNot all presentations need a segment-by-segment order. The following example presentsGermany’s most important trade partners. The first slide should only show the pie-chartand the names of the countries. The second chart adds the percent values. Then in thefollowing slides every country should be discussed. Therefore the segment of the countrywill be emphasize by a radial displacement.PiechartBBox := 1 ;input piechartmp ;SetupNumbers (1, this) ;SetupPercent( this, " %") ;Segment( 11.1, "France" , .6blue ) ;Segment( 10.6, "USA" , (.4, .5, 0) ) ;Segment( 8.4, "Great Britain", (.7, .7, 0) ) ;Segment( 7.4, "Italy" , (.6, .4, 0) ) ;Segment( 6.2, "Netherlands" , .7green ) ;Segment( 5.1, "Austria" , .6red ) ;Segment( 51.2, "others" , .5white ) ;FigCounter := 0 ;The first part declares the segments and defines the figure counter. Next the META-POST commands DoIf and ResetSegShift are defined. DoIf evaluates the expressione and performs a test whether the result is true or false. If the result is true thecommand executes the statement given in the second parameter c. The DoIf is not really32

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

Saved successfully!

Ooh no, something went wrong!