Skip to content

Commit f28c658

Browse files
committed
Don't expose private styles in style.available
They remain in `style.library`, because that's how we look them up, but this prevents them being exposed as something someone might use. Fixes itprojects/MasVisGtk#13
1 parent 413ea8f commit f28c658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/style/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def reload_library():
246246
"""Reload the style library."""
247247
library.clear()
248248
library.update(_update_user_library(_base_library))
249-
available[:] = sorted(library.keys())
249+
available[:] = sorted(name for name in library if not name.startswith('_'))
250250

251251

252252
reload_library()

0 commit comments

Comments
 (0)