{VERSION 4 0 "IBM INTEL NT" "4.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 2 0 1 0 0 0 0 0 0 1 }{CSTYLE "" 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 }{CSTYLE " Help Heading" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{PSTYLE "Norm al" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 } 1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Heading 1" -1 3 1 {CSTYLE "" -1 -1 "Times" 1 18 0 0 0 1 2 1 2 2 2 2 1 1 1 1 }1 1 0 0 8 4 1 0 1 0 2 2 0 1 }{PSTYLE "Bullet Item" -1 15 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 3 3 1 0 1 0 2 2 15 2 }{PSTYLE "Normal " -1 256 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 } 3 1 0 0 0 0 1 0 1 0 2 2 0 1 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "Function:" }{TEXT -1 41 " \+ PieChart - produce a pie chart from data" }}{PARA 0 "" 0 "" {TEXT 26 17 "Calling sequence:" }{TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 21 "P ieChart(L, options);" }}{PARA 0 "" 0 "" {TEXT 26 11 "Parameters:" }} {PARA 0 "" 0 "" {TEXT -1 2 " " }{MPLTEXT 0 21 1 "L" }{TEXT -1 65 " - \+ a list, or one-dimensional array or Array, of positive numbers" }} {PARA 0 "" 0 "" {TEXT -1 2 " " }{MPLTEXT 0 21 7 "options" }{TEXT -1 56 " - many of the usual two-dimensional plot options, plus " } {MPLTEXT 0 21 11 "explode = E" }{TEXT -1 8 ", where " }{MPLTEXT 0 21 1 "E" }{TEXT -1 46 " is an integer or a list of positive integers." }} }{SECT 0 {PARA 3 "" 0 "" {TEXT 26 12 "Description:" }}{PARA 15 "" 0 " " {TEXT -1 53 "This procedure produces a pie chart. Each member of " }{MPLTEXT 0 21 1 "L" }{TEXT -1 118 " corresponds to a slice of the cir cular pie, subtending an angle corresponding to that member's fraction of the total." }}{PARA 15 "" 0 "" {TEXT -1 60 "The slices go clockwis e around the pie, starting at the top." }}{PARA 15 "" 0 "" {TEXT -1 14 "If the option " }{MPLTEXT 0 21 9 "explode=E" }{TEXT -1 39 " is use d, each slice whose position in " }{MPLTEXT 0 21 1 "L" }{TEXT -1 25 " \+ is a member of the list " }{MPLTEXT 0 21 1 "E" }{TEXT -1 82 " will be \+ exploded, i.e. moved some distance out from the centre of the pie. Th us " }{MPLTEXT 0 21 13 "explode=[2,4]" }{TEXT -1 69 " causes the secon d and fourth slices to be exploded. Any members of " }{MPLTEXT 0 21 1 "E" }{TEXT -1 27 " that are not positions in " }{MPLTEXT 0 21 1 "L" }{TEXT -1 17 " have no effect. " }}{PARA 15 "" 0 "" {TEXT -1 14 "If th e option " }{MPLTEXT 0 21 10 "labels = B" }{TEXT -1 95 " is used, each slice is labelled (outside the circumference) by one of the entries o f the list " }{MPLTEXT 0 21 1 "B" }{TEXT -1 135 ". An error results i f there are too few labels for the items. If there are more labels th an items, the extra labels have no effect. " }}{PARA 15 "" 0 "" {TEXT -1 14 "If the option " }{MPLTEXT 0 21 10 "colour = L" }{TEXT -1 16 " is used, where " }{MPLTEXT 0 21 1 "L" }{TEXT -1 68 " is a list, t hen each slice is coloured with a colour from the list " }{MPLTEXT 0 21 1 "L" }{TEXT -1 54 ". Colours may be specified by predefined names (e.g. " }{MPLTEXT 0 21 3 "red" }{TEXT -1 4 " or " }{MPLTEXT 0 21 3 "t an" }{TEXT -1 217 "), RGB, HSV or HUE values (e.g. COLOUR(RGB,0,1,0.5) or COLOUR(HUE,0.4). An error results if there are more items than co lours. If there are more colours than items, the extra colours have n o effect. If there is no " }{MPLTEXT 0 21 6 "colour" }{TEXT -1 72 " o ption, colours are evenly spaced in HUE between 0 and 1. You may use \+ " }{MPLTEXT 0 21 5 "color" }{TEXT -1 2 ", " }{MPLTEXT 0 21 7 "colours " }{TEXT -1 4 " or " }{MPLTEXT 0 21 6 "colors" }{TEXT -1 12 " instead \+ of " }{MPLTEXT 0 21 6 "colour" }{TEXT -1 1 "." }}{PARA 15 "" 0 "" {TEXT -1 53 "This procedure is part of the Maple Advisor Database." }} }{SECT 0 {PARA 3 "" 0 "" {TEXT 26 9 "Examples:" }}{PARA 0 "" 0 "" {TEXT -1 19 "A simple pie chart." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 23 "PieChart([3,1,4,1,5]); " }}}{PARA 0 "" 0 "" {TEXT -1 79 "The s ame data, with specified colours and labels and the first slice explod ed.." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 103 "PieChart([3,1,4,1,5 ],colour=[red,yellow,green,blue,magenta],labels=[\"A\",\"B\",\"C\",\"D \",\"E\"],explode=[1]); " }}}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "See \+ also:" }{TEXT -1 1 " " }{HYPERLNK 17 "plot[options]" 2 "plot,options" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "BarChart" 2 "BarChart" "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 24 "Maple Advisor Database " }{TEXT -1 15 "R. Israel, 2000" }}}}{MARK "5" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 } {PAGENUMBERS 0 1 2 33 1 1 }