labels
Line_Fill
Fill_Thick
NOTE: This keyword has no effect unless Line_Fill is set.
NOTE: This keyword has no effect unless Line_Fill is set.
NOTE: This keyword has no effect unless Line_Fill is set.
Index | X Windows Style | Windows Style |
---|---|---|
0 | Solid | Solid |
1 | Dotted | Short dashes |
2 | Dashed | Long dashes |
3 | Dash dot | Long-short dashes |
4 | Dash-dot-dot-dot | Long-short-short dashes |
5 | Long dashes | Long dashes |
NOTE: This keyword has no effect unless Line_Fill is set.
NOTE: This keyword has no effect unless Line_Fill is set.
Outline_Color
NoLegend_Box
Legend_Position
TIP: If you do not want a legend to appear, do not specify the labels input parameter.
Value_Label
Label_Colors
Explode
Offset_Explode
Shadow_Color
Offset_Shadow
Slice_Start_Ang
Slice_Reverse_Direction
Other PIE keywords are listed below. For a description of each keyword, see Chapter 3, Graphics and Plotting Keywords, in the PV-WAVE Reference.
Charsize | Noerase | Title |
Font | Subtitle | [XY]Margin |
A legend for the colored pie slices is displayed in one corner, and labels (percent or data value) may be displayed on the slices.
If the legend occupies a significant portion of the plot area, there may not be enough room for the pie chart. The pie may be drawn very small, or it may overlap the legend. Use a smaller character size or a larger window.
Some combinations of shadowing and explosion may cause the pie to be slightly smaller than you may consider optimal. Sometimes, the shadow may overlap the corner of the legend box. Try moving the legend to the left side (set the keyword Legend_Position to 0 or 2).
Negative values in data produce unwanted plotting results (some slices are plotted backwards); therefore, the absolute value of data is plotted. All labels, however, will display the correct negative values.
You can use !P.Multi, !P.Position, and !P.Region with PIE.
; Create data data = FLTARR(4) data(0) = 32 data(1) = 22 data(2) = 11 data(3) = 35 ; Create labels strg = STRARR(4) strg(0)='Renault' strg(1)='Peugeot' strg(2)='Citroen' strg(3)='Others' title = '!18French automobile market shares' ; Create pie chart PIE, data, strg, /Line_fill, Title=title, Fill_background=1, $ /Percent_label, Text_color=1
Figure 2-65 A pie chart with line-filled slices, a legend, and a title. Each slice is labeled with its percentage of the total pie.See Also