Title: FigureCanvas Designer by teddyrendahl · Pull Request #11423 · matplotlib/matplotlib · GitHub
Open Graph Title: FigureCanvas Designer by teddyrendahl · Pull Request #11423 · matplotlib/matplotlib
X Title: FigureCanvas Designer by teddyrendahl · Pull Request #11423 · matplotlib/matplotlib
Description: PR Summary This adds a QtDesignerPlugin for FigureCanvasQt. Usage Point the PYQTDESIGNERPATH environment variable to the file system directory where the new figure_plugin.py file lives export PYQTDESIGNERPATH=/my/path/matplotlib/lib/matplotlib/backends/qt_editor:$PYQTDESIGNERPATH Open designer, drag and drop the FigureCanvasQt into your widget and save the file Load the file in Python using pyuic and access the FigureCanvasQT. class MatplotlibWidget(QWidget): def __init__(self, ui_file): # Load saved UI file self.ui = uic.loadUi(ui_file, self) # Access to matplotlib Figure figure = self.ui.FigureCanvasQt.figure .... Notes Qt Versions: I could not find any support for theQtDesigner module in either version of PySide. This works in PyQt4 installed from source but it looks like the version hosted on conda-forge is built with the --no-designer-plugin option. Happy to document this more formally somewhere just wasn't sure where The plugin has the option to display a little icon next to the widget. Is there any matplotlib logo that ships with the repository? I could add it? Closes #758 PR Checklist Has Pytest style unit tests Code is PEP 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary This adds a QtDesignerPlugin for FigureCanvasQt. Usage Point the PYQTDESIGNERPATH environment variable to the file system directory where the new figure_plugin.py file lives export PY...
X Description: PR Summary This adds a QtDesignerPlugin for FigureCanvasQt. Usage Point the PYQTDESIGNERPATH environment variable to the file system directory where the new figure_plugin.py file lives export PY...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/11423
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5195e92a-69f0-2941-150c-552080b8cf96 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A426:4AC5:BF4D3A:100A2AA:6A556E28 |
| html-safe-nonce | cdc29f10bfb37edf87b14036da62f1fe2a129869fcbee1400bd70f8361e61026 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDI2OjRBQzU6QkY0RDNBOjEwMEEyQUE6NkE1NTZFMjgiLCJ2aXNpdG9yX2lkIjoiNzAwMTcxNTEzNDM2NTUyNzU5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5a99a5f3efc312761f2acceaf3e27004e80e52068c909b844e1bc9d60821dc4e |
| hovercard-subject-tag | pull_request:194341812 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/11423/files |
| twitter:image | https://avatars.githubusercontent.com/u/25753048?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25753048?s=400&v=4 |
| og:image:alt | PR Summary This adds a QtDesignerPlugin for FigureCanvasQt. Usage Point the PYQTDESIGNERPATH environment variable to the file system directory where the new figure_plugin.py file lives export PY... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a90bd2a4a25feb75544d06b89350dcf95d9c46e0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width