8000 Edit figure parameters: TypeError: argument 1 has unexpected type 'list' · Issue #1690 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Edit figure parameters: TypeError: argument 1 has unexpected type 'list' #1690
Closed
@mspacek

Description

@mspacek

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0