8000 allow fillstyle 'none' option by cragm · Pull Request #447 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

allow fillstyle 'none' option #447

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

Merged
merged 10 commits into from
Dec 31, 2011
Prev Previous commit
Next Next commit
auto markeredgecolor returns default color if fillstyle==none
  • Loading branch information
Craig M committed Aug 31, 2011
commit 785e66fb94a0a2dcb5c8c8577ed7f980d8cd4dd3
10 changes: 4 additions & 6 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,17 +566,15 @@ def get_linewidth(self): return self._linewidth
def get_marker(self): return self._marker

def get_markeredgecolor(self):
if (is_string_like(self._markeredgecolor) and
self._markeredgecolor == 'auto'):
if self._marker.is_filled():
mec = self._markeredgecolor
if (is_string_like(mec) and mec == 'auto'):
if self._marker.is_filled() and self.get_fillstyle() != 'none':
return 'k'
else:
return self._color
else:
return self._markeredgecolor
return mec


return self._markeredgecolor
def get_markeredgewidth(self): return self._markeredgewidth

def _get_markerfacecolor(self, alt=False):
Expand Down
0