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.
2 parents ac28fee + 0dc4e43 commit 2639ad3Copy full SHA for 2639ad3
1 file changed
lib/matplotlib/backends/qt_editor/figureoptions.py
@@ -93,6 +93,8 @@ def prepare_data(d, init):
93
FormLayout combobox, namely `[initial_name, (shorthand,
94
style_name), (shorthand, style_name), ...]`.
95
"""
96
+ if init not in d:
97
+ d = {**d, init: str(init)}
98
# Drop duplicate shorthands from dict (by overwriting them during
99
# the dict comprehension).
100
name2short = {name: short for short, name in d.items()}
0 commit comments