Configuration#
rcParams#
Unified interface for publiplots parameters. |
|
Resolve a parameter value: return |
Pie charts#
Seven publiplots.rcParams keys set the defaults of
publiplots.pieplot() and of its labels,
pp.annotate(ax, "wedge_values"). Every length is in millimetres,
and each is overridden per call by the argument of the same name
(offset for pie.label_offset).
pie.gapfloat, default0.0Gap between every pair of neighbouring wedges: each wedge’s straight edges are inset by half of it, so two neighbours sit exactly this far apart along the whole edge they share.
0draws no gap.pie.leader{"radial","elbow",None}, default"radial"How an outside label is joined to its wedge: a straight line along the mid-ray, a line that bends into a horizontal tail, or no line (
Falseis accepted forNone).pie.label_offsetfloat, default2.0From the rim to the leader’s end – to its elbow, for
"elbow"– or, with no leader, to the nearest point of the label.pie.leader_gapfloat, default0.8From the leader’s end to the nearest point of the label. Unused with no leader.
pie.elbow_lengthfloat, default2.0Length of an
"elbow"leader’s horizontal tail. Unused by the other styles.pie.avoid_overlapbool, defaultTrueWhether outside labels that would overlap are moved apart. Elbow labels move up or down their column, and radial and unled labels round the circle – never further from their wedge’s mid-ray than a leader can lean without crossing the chart – each by as little as keeps every pair
pie.label_spacingapart; a label that crowds nothing does not move. Where that bounded solve does not clear every conflict – a crowded run of slivers or a full circle, and also some pies where a tight radial packing with leaders close to the rim’s tangent exists but is not reached for – every outside label of the axes is laid out as an"elbow"label instead – leader lines drawn even forpie.leader = None, with thepie.label_offset,pie.leader_gapandpie.elbow_lengthin effect – and spread up and down its column.Falseplaces every label on its own wedge’s mid-ray, in the style asked for, overlapping or not.pie.label_spacingfloat, default0.4The least gap kept between two outside labels’ boxes, and between a moved elbow label and the disc. Unused with
pie.avoid_overlapoff.
Sunburst colour derivation (reserved)#
Warning
These two keys are reserved and have no effect yet. Nothing
publiplots currently draws reads them: the only part-of-whole chart
is publiplots.pieplot(), which draws one ring and passes
0.0 for both, because a single ring has no descendant wedges to
shade. They are documented here so the names and their meaning are
settled ahead of a multi-ring chart; setting either changes nothing
today.
Two publiplots.rcParams keys are reserved for the colour shading a
multi-ring part-of-whole chart would derive for descendant wedges. Both
are expressed as a total span across the whole tree, not a per-ring
step, so the value would need no retuning when a level is added.
sunburst.depth_rangefloat, default0.45How far the outermost ring would blend toward white, interpolated across intermediate rings. Negative would blend toward black instead. No effect today.
sunburst.sibling_rangefloat, default0.14The spread across wedges sharing a parent, interpolated over however many siblings there are. No effect today.