Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
296855b0
Commit
296855b0
authored
Dec 28, 2012
by
Tiago Peixoto
Browse files
Include documentation for the "pie" vertex shape in graph_draw()
parent
9ecface6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/graph_tool/draw/cairo_draw.py
View file @
296855b0
...
...
@@ -551,7 +551,7 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
| | "double_circle", "double_triangle", | | |
| | "double_square", "double_pentagon", | | |
| | "double_hexagon", "double_heptagon", | | |
| | "double_octagon"
.
| | |
| | "double_octagon"
, "pie".
| | |
| | Optionally, this might take a numeric value | | |
| | corresponding to position in the list above. | | |
+---------------+---------------------------------------------------+------------------------+----------------------------------+
...
...
@@ -604,6 +604,12 @@ def graph_draw(g, pos=None, vprops=None, eprops=None, vorder=None, eorder=None,
| | the value passed is a string, it is interpreted | or ``str`` | |
| | as an image file name to be loaded. | | |
+---------------+---------------------------------------------------+------------------------+----------------------------------+
| pie_fractions | Fractions of the pie sections for the vertices if | list of ``int`` or | ``[0.75, 0.25]`` |
| | ``shape=="pie"``. | ``float`` | |
+---------------+---------------------------------------------------+------------------------+----------------------------------+
| pie_colors | Colors used in the pie sections if | list of strings or | ``('b','g','r','c','m','y','k')``|
| | ``shape=="pie"``. | ``float``. | |
+---------------+---------------------------------------------------+------------------------+----------------------------------+
.. table:: **List of edge properties**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment