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

Skip to content

Bug Fix For "matplotlib eventplot not shows all the binary data for big number of events" - Draft PR #30053

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
8 changes: 8 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,14 @@ def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
else:
positions = [np.asanyarray(positions)]

if 'snap' not in kwargs:
_log.warning(
"eventplot: Snapping has been turned off. Snapping may still "
"be turned on manually, but runs the risk of 'missing' data "
"in the outputted graph.")
kwargs['snap'] = False
kwargs['antialiaseds'] = True

poss = []
for position in positions:
poss += self._process_unit_info([("x", position)], kwargs)
Expand Down
Loading