1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. currentmodule:: wx.lib.floatcanvas.FCObjects
.. highlight:: python
.. _wx.lib.floatcanvas.FCObjects.PieChart:
==========================================================================================================================================
|phoenix_title| **wx.lib.floatcanvas.FCObjects.PieChart**
==========================================================================================================================================
This is DrawObject for a pie chart
You can pass in a bunch of values, and it will draw a pie chart for
you, and it will make the chart, scaling the size of each "slice" to
match your values.
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for class <strong>PieChart</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/wx.lib.floatcanvas.FCObjects.PieChart_inheritance.png" alt="Inheritance diagram of PieChart" usemap="#dummy" class="inheritance"/></center>
</div>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
<map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.floatcanvas.FCObjects.PieChart.html" title="wx.lib.floatcanvas.FCObjects.PieChart" alt="" coords="337,83,595,112"/> <area shape="rect" id="node2" href="wx.lib.floatcanvas.FCObjects.XYObjectMixin.html" title="wx.lib.floatcanvas.FCObjects.XYObjectMixin" alt="" coords="5,5,296,35"/> <area shape="rect" id="node3" href="wx.lib.floatcanvas.FCObjects.LineOnlyMixin.html" title="wx.lib.floatcanvas.FCObjects.LineOnlyMixin" alt="" coords="321,5,612,35"/> <area shape="rect" id="node4" href="wx.lib.floatcanvas.FCObjects.DrawObject.html" title="wx.lib.floatcanvas.FCObjects.DrawObject" alt="" coords="637,5,915,35"/> </map>
</p>
|
|super_classes| Known Superclasses
==================================
:class:`wx.lib.floatcanvas.FCObjects.DrawObject`, :class:`wx.lib.floatcanvas.FCObjects.LineOnlyMixin`, :class:`wx.lib.floatcanvas.FCObjects.XYObjectMixin`
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.__init__` Default class constructor.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.CalcBoundingBox` Calculate the bounding box.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.CalculatePoints` Calculate the points.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.SetBrushes` Set the Brushes.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.SetFillColors` Set the FillColors and update the Brushes.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.SetFillStyles` Set te FillStyles and update the Brushes.
:meth:`~wx.lib.floatcanvas.FCObjects.PieChart.SetValues` Set the values and calculate the points.
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: PieChart(XYObjectMixin, LineOnlyMixin, DrawObject)
This is DrawObject for a pie chart
You can pass in a bunch of values, and it will draw a pie chart for
you, and it will make the chart, scaling the size of each "slice" to
match your values.
.. method:: __init__(self, XY, Diameter, Values, FillColors=None, FillStyles=None, LineColor = None, LineStyle = "Solid", LineWidth = 1, Scaled = True, InForeground = False)
Default class constructor.
:param `XY`: The (x,y) coords of the center of the chart
:param `Diameter`: The diamter of the chart in worls coords, unless you
set "Scaled" to False, in which case it's in pixel coords.
:param `Values`: sequence of values you want to make the chart of.
:param `FillColors`: sequence of colors you want the slices. If
None, it will choose (no guarantee you'll like them!)
:param `FillStyles`: Fill style you want ("Solid", "Hash", etc)
:param `LineColor`: Color of lines separating the slices
:param `LineStyle`: style of lines separating the slices
:param `LineWidth`: With of lines separating the slices
:param `Scaled`: Do you want the pie to scale when zooming?
or stay the same size in pixels?
:param `InForeground`: Should it be on the foreground?
.. method:: CalcBoundingBox(self)
Calculate the bounding box.
.. method:: CalculatePoints(self)
Calculate the points.
.. method:: SetBrushes(self)
Set the Brushes.
.. method:: SetFillColors(self, FillColors)
Set the FillColors and update the Brushes.
:param `FillColors`: sequence of colors
.. method:: SetFillStyles(self, FillStyles)
Set te FillStyles and update the Brushes.
:param `FillStyles`: Fill style you want ("Solid", "Hash", etc)
.. method:: SetValues(self, Values)
Set the values and calculate the points.
:param `Values`: sequence of values you want to use for the chart
|