Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
POC: make scaling optional in Collection.get_linestyle#29304
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -626,6 +626,11 @@ def set_linestyle(self, ls): | ||
':', '', (offset, on-off-seq)}. See `.Line2D.set_linestyle` for a | ||
complete description. | ||
""" | ||
if isinstance(ls, (str, tuple)): | ||
self._original_linestyle = [ls] | ||
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I got a lot more failures if I did not make sure this is a list. I note that | ||
else: | ||
self._original_linestyle = ls | ||
try: | ||
dashes = [mlines._get_dash_pattern(ls)] | ||
except ValueError: | ||
@@ -866,8 +871,11 @@ def set_alpha(self, alpha): | ||
def get_linewidth(self): | ||
return self._linewidths | ||
def get_linestyle(self, scaled=False): | ||
if scaled: | ||
return self._linestyles | ||
return self._original_linestyle | ||
def _set_mappable_flags(self): | ||
""" | ||
Uh oh!
There was an error while loading.Please reload this page.