Skip to content

Commit

Permalink
Improve docstring and Readme (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silmathoron authored Nov 29, 2020
1 parent 84d5610 commit 721e14c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ def chord_diagram(mat, names=None, width=0.1, pad=2., gap=0., chordwidth=0.7,
use_gradient : bool, optional (default: False)
Whether a gradient should be use so that chord extremities have the
same color as the arc they belong to.
show : bool, optional (default: False)
Whether the plot should be displayed immediately via an automatic call
to `plt.show()`.
**kwargs : keyword arguments
Available kwargs are "fontsize" and "sort" (either "size" or
"distance").
"distance"), "zero_entry_size" (in degrees, default: 0.5),
"rotate_names" (a bool or list of bools) to rotate (some of) the
names by 90°.
"""
```

Expand Down Expand Up @@ -98,11 +103,14 @@ up and down are sorted respectively by domain size and distance):
[#5](https://github.com/Silmathoron/mpl_chord_diagram/pull/5) &
[#7](https://github.com/Silmathoron/mpl_chord_diagram/pull/7) for
gradients)
* Improved arcs:
* Improved arcs and chords:
- [@cy1110](https://github.com/cy1110) (PR
[#2](https://github.com/Silmathoron/mpl_chord_diagram/pull/2))
- Tanguy Fardet (PRs
[#6](https://github.com/Silmathoron/mpl_chord_diagram/pull/6) for
gap addition and
[#7](https://github.com/Silmathoron/mpl_chord_diagram/pull/7) for
adaptive curvature and sorting)
* Do not plot chords that have zero in and out weights
[gph82](https://github.com/gph82)
(PR [#14/17](https://github.com/Silmathoron/mpl_chord_diagram/pull/14))
3 changes: 3 additions & 0 deletions chord_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def chord_diagram(mat, names=None, order=None, width=0.1, pad=2., gap=0.03,
use_gradient : bool, optional (default: False)
Whether a gradient should be use so that chord extremities have the
same color as the arc they belong to.
show : bool, optional (default: False)
Whether the plot should be displayed immediately via an automatic call
to `plt.show()`.
**kwargs : keyword arguments
Available kwargs are "fontsize" and "sort" (either "size" or
"distance"), "zero_entry_size" (in degrees, default: 0.5),
Expand Down

0 comments on commit 721e14c

Please sign in to comment.