Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Eventplot edgecases #7602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Document what happens when zero length arrays are passed to eventplot
  • Loading branch information
dstansby committed Dec 10, 2016
commit 775c6f09dbe0e442dfb88ca6e502a9a1b7b6573b
8 changes: 5 additions & 3 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,10 +1110,12 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
"vertical' : lines will be horizontal and arranged in columns

*lineoffsets* :
A float or array-like containing floats.
A float or array-like containing floats. If a zero length array,
defaults to 0.

*linelengths* :
A float or array-like containing floats.
A float or array-like containing floats. If a zero length array,
defaults to 1.

*linewidths* :
A float or array-like containing floats.
Expand All @@ -1124,7 +1126,7 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,

*linestyles* :
[ 'solid' | 'dashed' | 'dashdot' | 'dotted' ] or an array of these
values
values. If a zero length array, defaults to 'solid'.

For linelengths, linewidths, colors, and linestyles, if only a single
value is given, that value is applied to all lines. If an array-like
Expand Down