Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e477b3 commit c8fae15Copy full SHA for c8fae15
1 file changed
lib/matplotlib/__init__.py
@@ -752,6 +752,22 @@ def values(self):
752
"""
753
return [self[k] for k in self.iterkeys()]
754
755
+ def find_all(self, key_contains):
756
+ """
757
+ Return the subset of this RcParams dictionary for which the given
758
+ ``key_contains`` string is found somewhere in the key.
759
+
760
+ .. note::
761
762
+ Changes to the returned dictionary are *not* propagated to
763
+ the parent RcParams dictionary.
764
765
766
+ return RcParams((key, value)
767
+ for key, value in self.items()
768
+ if key_contains in key)
769
770
771
def rc_params(fail_on_error=False):
772
'Return the default params updated from the values in the rc file'
773
0 commit comments