Closed
Description
Using a tuple to designate a single colour in a plot command, like this:
plot(range(10), c=(0.5, 0.5, 0.5))
and then clicking on the "Edit curves line and axes parameter" button raises this TypeError:
Traceback (most recent call last):
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/backend_qt4.py", line 577, in edit_parameters
figureoptions.figure_edit(axes, self)
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/figureoptions.py", line 134, in figure_edit
icon=get_icon('qt4_editor_options.svg'), apply=apply_callback)
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py", line 514, in fedit
dialog = FormDialog(data, title, comment, icon, parent, apply)
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py", line 431, in __init__
self.formwidget.setup()
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py", line 403, in setup
widget.setup()
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py", line 378, in setup
widget.setup()
File "/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py", line 285, in setup
field.addItems(value)
TypeError: QComboBox.addItems(QStringList): argument 1 has unexpected type 'list'
This is very related to #917.
Metadata
Metadata
Assignees
Labels
No labels