Title: Oldest compatible matplotlib version? · Issue #114 · proplot-dev/proplot · GitHub
Open Graph Title: Oldest compatible matplotlib version? · Issue #114 · proplot-dev/proplot
X Title: Oldest compatible matplotlib version? · Issue #114 · proplot-dev/proplot
Description: I tried to upgrade ProPlot and install it with conda install -c conda-forge proplot recently and I'm facing to errors every time I'm trying to put a colorbar. Here is the example of the documentation (https://proplot.readthedocs.io/en/la...
Open Graph Description: I tried to upgrade ProPlot and install it with conda install -c conda-forge proplot recently and I'm facing to errors every time I'm trying to put a colorbar. Here is the example of the documentati...
X Description: I tried to upgrade ProPlot and install it with conda install -c conda-forge proplot recently and I'm facing to errors every time I'm trying to put a colorbar. Here is the example of the doc...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/114
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Oldest compatible matplotlib version?","articleBody":"I tried to upgrade ProPlot and install it with `conda install -c conda-forge proplot` recently and I'm facing to errors every time I'm trying to put a colorbar. Here is the example of the documentation (https://proplot.readthedocs.io/en/latest/colorbars_legends.html#Axes-colorbars-and-legends):\r\n\r\n```python\r\nimport proplot as plot\r\nimport numpy as np\r\nwith plot.rc.context(abc=True):\r\n f, axs = plot.subplots(ncols=2, share=0)\r\n\r\n# Colorbars\r\nax = axs[0]\r\nstate = np.random.RandomState(51423)\r\nm = ax.heatmap(state.rand(10, 10), colorbar='t', cmap='dusk')\r\nax.colorbar(m, loc='r')\r\nax.colorbar(m, loc='ll', label='colorbar label')\r\nax.format(title='Axes colorbars', suptitle='Axes colorbars and legends demo')\r\n\r\n# Legends\r\nax = axs[1]\r\nax.format(title='Axes legends', titlepad='0em')\r\nhs = ax.plot(\r\n (state.rand(10, 5) - 0.5).cumsum(axis=0), linewidth=3,\r\n cycle='sharp', legend='t',\r\n labels=list('abcde'), legend_kw={'ncols': 5, 'frame': False}\r\n)\r\nax.legend(hs, loc='r', ncols=1, frame=False)\r\nax.legend(hs, loc='ll', label='legend label')\r\naxs.format(xlabel='xlabel', ylabel='ylabel')\r\n```\r\n\r\nHere is the error:\r\n```python\r\n---------------------------------------------------------------------------\r\nAttributeError Traceback (most recent call last)\r\n\u003cipython-input-19-837a2de5d36a\u003e in \u003cmodule\u003e\r\n 7 ax = axs[0]\r\n 8 state = np.random.RandomState(51423)\r\n----\u003e 9 m = ax.heatmap(state.rand(10, 10), colorbar='t', cmap='dusk')\r\n 10 ax.colorbar(m, loc='r')\r\n 11 ax.colorbar(m, loc='ll', label='colorbar label')\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/axes.py in heatmap(self, *args, **kwargs)\r\n 1208 that is suitable for heatmaps: no gridlines, no minor ticks, and major\r\n 1209 ticks at the center of each grid box.\"\"\"\r\n-\u003e 1210 obj = self.pcolormesh(*args, **kwargs)\r\n 1211 xlocator, ylocator = None, None\r\n 1212 if hasattr(obj, '_coordinates'):\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n 2960 @functools.wraps(func)\r\n 2961 def _wrapper(self, *args, **kwargs):\r\n-\u003e 2962 return driver(self, func, *args, **kwargs)\r\n 2963 name = func.__name__\r\n 2964 if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in standardize_2d(self, func, order, globe, *args, **kwargs)\r\n 650 colorbar_kw = kwargs.pop('colorbar_kw', None) or {}\r\n 651 colorbar_kw.setdefault('label', colorbar_label)\r\n--\u003e 652 return func(self, x, y, *Zs, colorbar_kw=colorbar_kw, **kwargs)\r\n 653 \r\n 654 \r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in _wrapper(self, *args, **kwargs)\r\n 2960 @functools.wraps(func)\r\n 2961 def _wrapper(self, *args, **kwargs):\r\n-\u003e 2962 return driver(self, func, *args, **kwargs)\r\n 2963 name = func.__name__\r\n 2964 if name not in proplot_methods:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/wrappers.py in cmap_changer(self, func, cmap, cmap_kw, extend, norm, norm_kw, N, levels, values, centers, vmin, vmax, locator, symmetric, locator_kw, edgefix, labels, labels_kw, fmt, precision, colorbar, colorbar_kw, panel_kw, lw, linewidth, linewidths, ls, linestyle, linestyles, color, colors, edgecolor, edgecolors, *args, **kwargs)\r\n 2128 if loc != 'fill':\r\n 2129 colorbar_kw.setdefault('loc', loc)\r\n-\u003e 2130 self.colorbar(obj, **colorbar_kw)\r\n 2131 return obj\r\n 2132 \r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/axes.py in colorbar(self, loc, pad, length, width, space, frame, frameon, alpha, linewidth, edgecolor, facecolor, *args, **kwargs)\r\n 944 # Generate panel\r\n 945 if loc in ('left', 'right', 'top', 'bottom'):\r\n--\u003e 946 ax = self.panel_axes(loc, width=width, space=space, filled=True)\r\n 947 return ax.colorbar(loc='_fill', *args, length=length, **kwargs)\r\n 948 \r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/axes.py in panel_axes(self, side, **kwargs)\r\n 1370 The panel axes.\r\n 1371 \"\"\"\r\n-\u003e 1372 return self.figure._add_axes_panel(self, side, **kwargs)\r\n 1373 \r\n 1374 @_standardize_1d\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/utils.py in decorator(*args, **kwargs)\r\n 61 if BENCHMARK:\r\n 62 t = time.perf_counter()\r\n---\u003e 63 res = func(*args, **kwargs)\r\n 64 if BENCHMARK:\r\n 65 decorator.time += (time.perf_counter() - t)\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/subplots.py in _add_axes_panel(self, ax, side, filled, **kwargs)\r\n 858 gridspec_prev = self._gridspec_main\r\n 859 gridspec = self._insert_row_column(\r\n--\u003e 860 side, iratio, width, space, space_orig, figure=False)\r\n 861 if gridspec is not gridspec_prev:\r\n 862 if s == 't':\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/subplots.py in _insert_row_column(self, side, idx, ratio, space, space_orig, figure)\r\n 1339 # May seem inefficient but it literally just assigns a hidden,\r\n 1340 # attribute, and the creation time for subpltospecs is tiny\r\n-\u003e 1341 axs = [iax for ax in self._iter_axes()\r\n 1342 for iax in (ax, *ax.child_axes)]\r\n 1343 for ax in axs:\r\n\r\n~/anaconda3/lib/python3.7/site-packages/proplot/subplots.py in \u003clistcomp\u003e(.0)\r\n 1340 # attribute, and the creation time for subpltospecs is tiny\r\n 1341 axs = [iax for ax in self._iter_axes()\r\n-\u003e 1342 for iax in (ax, *ax.child_axes)]\r\n 1343 for ax in axs:\r\n 1344 # Get old index\r\n\r\nAttributeError: 'XYAxesSubplot' object has no attribute 'child_axes'\r\n```\r\n\r\nHere is the version of ProPlot:\r\n```\r\n# Name Version Build Channel\r\nproplot 0.3.1 py_1 conda-forge\r\n```\r\nThere were no problems in previous versions... This error is the same for any other plots I'm trying to do.\r\n","author":{"url":"https://github.com/mickaellalande","@type":"Person","name":"mickaellalande"},"datePublished":"2020-01-21T09:11:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/114/proplot/issues/114"}
| 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:f27459f2-f681-aa09-4c4a-cb1b2e710b62 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E68:191A63:3B6C85D:4F5CDB7:697B09AC |
| html-safe-nonce | 9e4666f25649b2ae1c6f37fe3fde7b39a41965f78e4b76a3ce5c97dd8e15c16a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTY4OjE5MUE2MzozQjZDODVEOjRGNUNEQjc6Njk3QjA5QUMiLCJ2aXNpdG9yX2lkIjoiNTU1NzAwODQxMjI0MDk3MjIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 96ea0015edc04292e03ca25803a4f3fe94d70b23ffc25cde55d8fb37d09e0938 |
| hovercard-subject-tag | issue:552717527 |
| 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/proplot-dev/proplot/114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae6d12e86e98f393b498228da0d99264809cff9f50207934dc756e9586681e1d/proplot-dev/proplot/issues/114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae6d12e86e98f393b498228da0d99264809cff9f50207934dc756e9586681e1d/proplot-dev/proplot/issues/114 |
| og:image:alt | I tried to upgrade ProPlot and install it with conda install -c conda-forge proplot recently and I'm facing to errors every time I'm trying to put a colorbar. Here is the example of the documentati... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mickaellalande |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ce8ed0a54c4730aeca4e6abacfc6490365fc42e25480b86883054df3f9181c8 |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| 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 | d7bfc78137af9a4828305e52ab993fce981d7085 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width