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

Skip to content

Legend kwarg scatteroffsets vs. scatteryoffsets #1904

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 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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