Title: AttributeError: 'PsyplotCanvasManager' object has no attribute '_get_toolbar' · Issue #32 · psyplot/psyplot-gui · GitHub
Open Graph Title: AttributeError: 'PsyplotCanvasManager' object has no attribute '_get_toolbar' · Issue #32 · psyplot/psyplot-gui
X Title: AttributeError: 'PsyplotCanvasManager' object has no attribute '_get_toolbar' · Issue #32 · psyplot/psyplot-gui
Description: Problem description I tried to open ERA5 single level netcdf data to visualize on GUI; however, I had an error when I tried to plot a figure for a variable (e.g. u10). Expected Output When selecting a variable, psyplot should show the fi...
Open Graph Description: Problem description I tried to open ERA5 single level netcdf data to visualize on GUI; however, I had an error when I tried to plot a figure for a variable (e.g. u10). Expected Output When selectin...
X Description: Problem description I tried to open ERA5 single level netcdf data to visualize on GUI; however, I had an error when I tried to plot a figure for a variable (e.g. u10). Expected Output When selectin...
Opengraph URL: https://github.com/psyplot/psyplot-gui/issues/32
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'PsyplotCanvasManager' object has no attribute '_get_toolbar'","articleBody":"\r\n#### Problem description\r\n\r\nI tried to open ERA5 single level netcdf data to visualize on GUI; however, I had an error when I tried to plot a figure for a variable (e.g. u10).\r\n\r\n\r\n\r\n#### Expected Output\r\nWhen selecting a variable, psyplot should show the figure of the variable.\r\n\r\n\u003cdetails\u003e\r\n'PsyplotCanvasManager' object has no attribute '_get_toolbar' \r\nTraceback (most recent call last):\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psy_view\\ds_widget.py\", line 1055, in func\r\nself.make_plot()\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psy_view\\ds_widget.py\", line 1311, in make_plot\r\nself.sp = sp = self.plot(name=self.variable, **self.plot_options)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 2180, in __call__\r\nreturn super(DatasetPlotterInterface, self).__call__(*args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 1983, in __call__\r\nreturn self._project_plotter._add_data(\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 2222, in _add_data\r\nreturn super(DatasetPlotter, self)._add_data(plotter_cls, self._ds,\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 1772, in _add_data\r\nreturn self.project._add_data(*args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 180, in wrapper\r\nreturn func(self, *args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\project.py\", line 801, in _add_data\r\nplotter_cls(arr, make_plot=(not bool(share) and make_plot),\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 1260, in __init__\r\nself.initialize_plot(data, ax=ax, draw=draw, clear=clear,\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 1418, in initialize_plot\r\nself._plot_by_priority(fmto_priority, grouper,\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 1622, in _plot_by_priority\r\nupdate(fmto)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 1602, in update\r\nfmto.initialize_plot(fmto.value)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 659, in initialize_plot\r\nself.update(value, *args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psy_maps\\plotters.py\", line 1085, in update\r\nproj = self.ax.projection\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot\\plotter.py\", line 275, in ax\r\nreturn self.plotter.ax\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psy_maps\\plotters.py\", line 2099, in ax\r\nplt.figure()\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\matplotlib\\_api\\deprecation.py\", line 454, in wrapper\r\nreturn func(*args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\matplotlib\\pyplot.py\", line 840, in figure\r\nmanager = new_figure_manager(\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\matplotlib\\pyplot.py\", line 384, in new_figure_manager\r\nreturn _get_backend_mod().new_figure_manager(*args, **kwargs)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot_gui\\backend.py\", line 74, in new_figure_manager\r\nreturn new_figure_manager_given_figure(num, thisFig)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot_gui\\backend.py\", line 82, in new_figure_manager_given_figure\r\nreturn PsyplotCanvasManager(canvas, num)\r\nFile \"C:\\Users\\d.kobashi\\AppData\\Local\\miniconda3\\envs\\psyplot\\lib\\site-packages\\psyplot_gui\\backend.py\", line 109, in __init__\r\nself.toolbar = self._get_toolbar(canvas, parent_widget)\r\nAttributeError: 'PsyplotCanvasManager' object has no attribute '_get_toolbar'\r\n\u003c/details\u003e\r\n\r\n#### Output of ``psyplot -aV``\r\n\r\n\u003cdetails\u003e\r\n# Paste the output of the command ``psyplot -aV`` (ran from the command line)\r\npsy_maps.plugin:\r\n requirements:\r\n cartopy: 0.21.1\r\n version: 1.4.2\r\npsy_reg.plugin:\r\n requirements:\r\n scipy: 1.10.1\r\n statsmodels: 0.14.0\r\n version: 1.4.0\r\npsy_simple.plugin:\r\n version: 1.4.1\r\npsyplot:\r\n requirements:\r\n matplotlib: 3.7.1\r\n numpy: 1.24.3\r\n pandas: 2.0.2\r\n python: 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:28:38) [MSC\r\n v.1929 64 bit (AMD64)]\r\n xarray: 2023.5.0\r\n version: 1.4.3\r\npsyplot_gui:\r\n requirements:\r\n pyqt: 5.15.7\r\n qt: 5.15.6\r\n qtconsole: 5.4.3\r\n version: 1.4.0\r\n\u003c/details\u003e\r\n\r\n\r\n","author":{"url":"https://github.com/dkobashi","@type":"Person","name":"dkobashi"},"datePublished":"2023-06-16T02:54:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/32/psyplot-gui/issues/32"}
| 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:9dc3456c-bf59-6796-90e9-34ad0883cf34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85CA:8FB2E:41D3222:579C4EB:698C761D |
| html-safe-nonce | 3613a8c905f8776953ecb39e4e6987e0d55c8d048e7357584ed85a2b58d83e64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUNBOjhGQjJFOjQxRDMyMjI6NTc5QzRFQjo2OThDNzYxRCIsInZpc2l0b3JfaWQiOiI5MDUyNTI2NjcwNjExNTEwODEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b96b2947e30bec50995d570f11bd85b47b20ee827d48e64d0732ad5dc23238e7 |
| hovercard-subject-tag | issue:1760175963 |
| 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/psyplot/psyplot-gui/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54ae9f59bc17f00e0a5a7a03dd851183972884cdb91040dc158a0740961fc906/psyplot/psyplot-gui/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54ae9f59bc17f00e0a5a7a03dd851183972884cdb91040dc158a0740961fc906/psyplot/psyplot-gui/issues/32 |
| og:image:alt | Problem description I tried to open ERA5 single level netcdf data to visualize on GUI; however, I had an error when I tried to plot a figure for a variable (e.g. u10). Expected Output When selectin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dkobashi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/psyplot/psyplot-gui git https://github.com/psyplot/psyplot-gui.git |
| octolytics-dimension-user_id | 60222268 |
| octolytics-dimension-user_login | psyplot |
| octolytics-dimension-repository_id | 55793611 |
| octolytics-dimension-repository_nwo | psyplot/psyplot-gui |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 55793611 |
| octolytics-dimension-repository_network_root_nwo | psyplot/psyplot-gui |
| 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 | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width