Package Vision :: Module matplotlibNodes :: Class PieNE
[hide private]
[frames] | no frames]

Class PieNE

source code

                             object --+                        
                                      |                        
NetworkEditor.itemBase.NetworkItemsBase --+                    
                                          |                    
        NetworkEditor.itemBase.NetworkItems --+                
                                              |                
            NetworkEditor.items.NetworkNodeBase --+            
                                                  |            
                    NetworkEditor.items.NetworkNode --+        
                                                      |        
                                              MPLBaseNE --+    
                                                          |    
                                            MPLPlottingNode --+
                                                              |
                                                             PieNE

plots a pie diagram for a list of numbers.  The size of each wedge
will be the fraction x/sumnumbers).

Input:
    fractions - sequence of values
    labels    - None; sequence of labels (has to match length of factions
    explode   - None; float or sequence of values which specifies the
                fraction of the radius to offset that wedge.
                if a single float is given the list is generated automatically
    shadow    - True; if True, will draw a shadow beneath the pie.
    format    - None; fromat string used to label the wedges with their
                numeric value
Output:
    plot      - Matplotlib Axes object
    patches   - sequence of matplotlib.patches.Wedge
    texts     - list of the label Text instances
    autotextsline - list of text instances for the numeric labels (only if
                    format is not None



Instance Methods [hide private]
  __init__(self, name='Pie', **kw)

Inherited from MPLPlottingNode: afterAddingToNetwork, setDrawAreaDef

Inherited from MPLBaseNE: beforeRemovingFromNetwork, onlyDataChanged, setDrawArea

Inherited from NetworkEditor.items.NetworkNode: addInputPort, addOutputPort, addSpecialPorts, buildNodeIcon, buildSmallIcon, deletePort, deletePortByName, deleteSmallIcon, deselect, editorVisible, getColor, getFont, hideSpecialPorts, isExpanded, refreshInputPortData, resizeIcon, select, setColor, setFont, setModifiedTag, setProgressBar, showSpecialPorts, updatePosXPosY

Inherited from NetworkEditor.items.NetworkNodeBase: addSaveNodeMenuEntries, autoResize, autoResizeX, autoResizeY, buildIcons, checkIfNodeForSavingIsDefined, compareToOrigNodeDescr, computeFunction, configure, cut_cb, delete_cb, edit, editComputeFunction_cb, evalString, getAfterConnectionsSourceCode, getComputeFunctionSourceCode, getConnections, getDescr, getHeaderBlock, getInConnections, getInitBlock, getInputPortByName, getNodeDefinitionSourceCode, getNodeSourceCode, getNodeSourceCodeForDoit, getNodeSourceCodeForInstanciation, getNodeSourceCodeForModifications, getNodeSourceCodeForNode, getNodeSourceCodeForPorts, getNodeSourceCodeForWidgetValue, getNodeSourceCodeForWidgets, getOutConnections, getOutputPortByName, getOutputPortByType, getPortsCreationSourceCode, getSize, getSourceCode, getSpecialInputPortByName, getSpecialOutputPortByName, getStateDefinitionCode, getUniqueNodeName, getWidgetByName, getWidgetsCreationSourceCode, getWidgetsForMaster, getWidthForLabel, getWidthForNodeWidgets, getWidthForPorts, growDown, growRight, hideInNodeWidgets, isMacro, isModified, ischild, move, moveSelectedNodeEnd, outputData, rename, resetModifiedTag, resetTags, safeName, saveSource, saveSource_cb, schedule, scheduleChildren, schedule_cb, setFunction, showInNodeWidgets, startMoveOneNode, toggleNodeExpand_cb, toggleParamPanel_cb, updateCode

Inherited from NetworkEditor.itemBase.NetworkItems: __repr__, afterRemovingFromNetwork, beforeAddingToNetwork, deleteIcon, editNodeMenu, freeze, gettags, hideParamPanel, highlight, introspect, postItemMenu, run, toggleAutoRun_cb, toggleFrozen_cb, unfreeze, unhighlight

Inherited from NetworkEditor.itemBase.NetworkItems (private): _introspectCB

Inherited from NetworkEditor.itemBase.NetworkItemsBase: delEditor, getEditor, setEditor

Inherited from NetworkEditor.itemBase.NetworkItemsBase (private): _setModified, _setOriginal

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]

Inherited from MPLPlottingNode: codeBeforeDisconnect


Properties [hide private]

Inherited from NetworkEditor.itemBase.NetworkItemsBase: editor

Inherited from object: __class__


Method Details [hide private]

__init__(self, name='Pie', **kw)
(Constructor)

source code 
None
Overrides: MPLBaseNE.__init__