Title: Edit figure parameters: TypeError: argument 1 has unexpected type 'list' · Issue #1690 · matplotlib/matplotlib · GitHub
Open Graph Title: Edit figure parameters: TypeError: argument 1 has unexpected type 'list' · Issue #1690 · matplotlib/matplotlib
X Title: Edit figure parameters: TypeError: argument 1 has unexpected type 'list' · Issue #1690 · matplotlib/matplotlib
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): F...
Open Graph 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 TypeErr...
X 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 th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/1690
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Edit figure parameters: TypeError: argument 1 has unexpected type 'list'","articleBody":"Using a tuple to designate a single colour in a plot command, like this:\n\n```\nplot(range(10), c=(0.5, 0.5, 0.5))\n```\n\nand then clicking on the \"Edit curves line and axes parameter\" button raises this TypeError:\n\n```\nTraceback (most recent call last):\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/backend_qt4.py\", line 577, in edit_parameters\n figureoptions.figure_edit(axes, self)\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/figureoptions.py\", line 134, in figure_edit\n icon=get_icon('qt4_editor_options.svg'), apply=apply_callback)\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py\", line 514, in fedit\n dialog = FormDialog(data, title, comment, icon, parent, apply)\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py\", line 431, in __init__\n self.formwidget.setup()\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py\", line 403, in setup\n widget.setup()\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py\", line 378, in setup\n widget.setup()\n File \"/home/mspacek/src/matplotlib/lib/matplotlib/backends/qt4_editor/formlayout.py\", line 285, in setup\n field.addItems(value)\nTypeError: QComboBox.addItems(QStringList): argument 1 has unexpected type 'list'\n```\n\nThis is very related to #917.\n","author":{"url":"https://github.com/mspacek","@type":"Person","name":"mspacek"},"datePublished":"2013-01-20T23:39:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1690/matplotlib/issues/1690"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2daddad3-4d74-4d75-27ca-f57651c55964 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B70A:1393E7:1B23AD7:25034DD:6A524AF1 |
| html-safe-nonce | f99f46b0a2993733d9d5172c4876adee433e40684b7a22abb1659c93aafd7a3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzBBOjEzOTNFNzoxQjIzQUQ3OjI1MDM0REQ6NkE1MjRBRjEiLCJ2aXNpdG9yX2lkIjoiNzc3NTEwNTI1MjQ5NjM5NDk5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 597f6dc9f172a0a3e9f1323e847b1c626f467180f05f7ff5561b6c447b9000e9 |
| hovercard-subject-tag | issue:10142866 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/1690/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8f34c090158ccd1770e724a4b3307e68bd07467df3fb4ae2d35b7cc504cf505/matplotlib/matplotlib/issues/1690 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8f34c090158ccd1770e724a4b3307e68bd07467df3fb4ae2d35b7cc504cf505/matplotlib/matplotlib/issues/1690 |
| og:image:alt | 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 TypeErr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mspacek |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width