Skip to content
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

Legend kwarg scatteroffsets vs. scatteryoffsets #1904

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/axes.py
Expand Up @@ -4799,8 +4799,8 @@ def make_iterable(x):
if _bottom is None:
if self.get_yscale() == 'log':
adjust_ylim = True
else:
bottom = [0]
bottom = [0]

nbars = len(left)
if len(width) == 1:
width *= nbars
Expand All @@ -4814,8 +4814,8 @@ def make_iterable(x):
if _left is None:
if self.get_xscale() == 'log':
adjust_xlim = True
else:
left = [0]
left = [0]

nbars = len(bottom)
if len(left) == 1:
left *= nbars
Expand Down
7 changes: 2 additions & 5 deletions lib/matplotlib/backends/backend_ps.py
Expand Up @@ -1684,15 +1684,12 @@ def pstoeps(tmpfile, bbox=None, rotated=False):
# eps file is not modified.
line = tmph.readline()
while line:
if line.startswith(b'%%Trailer'):
write(b'%%Trailer\n')
if line.startswith(b'%%EOF'):
write(b'cleartomark\n')
write(b'countdictstack\n')
write(b'exch sub { end } repeat\n')
write(b'restore\n')
if rcParams['ps.usedistiller'] == 'xpdf':
# remove extraneous "end" operator:
line = tmph.readline()
write(b'%%EOF\n')
elif line.startswith(b'%%PageBoundingBox'):
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/nxutils.py
Expand Up @@ -23,7 +23,7 @@ def pnpoly(x, y, xyverts):
mplDeprecation)

p = path.Path(xyverts)
return p.contains_point(x, y)
return p.contains_point([x, y])

def points_inside_poly(xypoints, xyverts):
"""
Expand Down