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

Skip to content

Commit 8f3c3b2

Browse files
committed
Make namespaces variable compact
1 parent 2ced9a1 commit 8f3c3b2

File tree

1 file changed

+7
-46
lines changed

1 file changed

+7
-46
lines changed

lib/matplotlib/__init__.py

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -656,52 +656,13 @@ class RcParams(MutableMapping):
656656
:ref:`customizing-with-matplotlibrc-files`
657657
"""
658658
validate = rcsetup._validators
659-
namespaces = (
660-
"backends",
661-
"lines",
662-
"patches",
663-
"hatches",
664-
"boxplot",
665-
"font",
666-
"text",
667-
"latex",
668-
"axes",
669-
"date",
670-
"xtick",
671-
"ytick",
672-
"grid",
673-
"legend",
674-
"figure",
675-
"image",
676-
"contour",
677-
"errorbar",
678-
"hist",
679-
"scatter",
680-
"agg",
681-
"path",
682-
"savefig",
683-
"tk",
684-
"ps",
685-
"pdf",
686-
"svg",
687-
"pgf",
688-
"docstring",
689-
"keymap",
690-
"animation",
691-
"_internal",
692-
"webagg",
693-
"markers",
694-
"pcolor",
695-
"pcolormesh",
696-
"patch",
697-
"hatch",
698-
"mathtext",
699-
"polaraxes",
700-
"axes3d",
701-
"xaxis",
702-
"yaxis",
703-
"default"
704-
)
659+
namespaces = ("backends", "lines", "patches", "hatches", "boxplot", "font", "text",
660+
"latex", "axes", "date", "xtick", "ytick", "grid", "legend",
661+
"figure", "image", "contour", "errorbar", "hist", "scatter", "agg",
662+
"path", "savefig", "tk", "ps", "pdf", "svg", "pgf", "docstring",
663+
"keymap", "animation", "_internal", "webagg", "markers", "pcolor",
664+
"pcolormesh", "patch", "hatch", "mathtext", "polaraxes", "axes3d",
665+
"xaxis", "yaxis", "default")
705666

706667
single_key_set = {"backend", "toolbar", "interactive",
707668
"timezone", "backend_fallback"}

0 commit comments

Comments
 (0)