Title: Set orientation to horizontal for indicate_error · Issue #229 · proplot-dev/proplot · GitHub
Open Graph Title: Set orientation to horizontal for indicate_error · Issue #229 · proplot-dev/proplot
X Title: Set orientation to horizontal for indicate_error · Issue #229 · proplot-dev/proplot
Description: Description The indicate_error use fill_between as default. How to use fill_betweenx? Although I found the source of fill_betweenx in the source code, I tried to add orientation='horizontal' and got this error: 'Line2D' object has no pro...
Open Graph Description: Description The indicate_error use fill_between as default. How to use fill_betweenx? Although I found the source of fill_betweenx in the source code, I tried to add orientation='horizontal' and go...
X Description: Description The indicate_error use fill_between as default. How to use fill_betweenx? Although I found the source of fill_betweenx in the source code, I tried to add orientation='horizontal'...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/229
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set orientation to horizontal for indicate_error","articleBody":"### Description\r\n\r\nThe `indicate_error` use `fill_between` as default. How to use `fill_betweenx`?\r\nAlthough I found the source of `fill_betweenx` in the source code, I tried to add `orientation='horizontal'` and got this error:\r\n```\r\n'Line2D' object has no property 'orientation'\r\n```\r\n\r\n\r\n### Steps to reproduce\r\n\r\n```python\r\nimport numpy as np\r\nimport xarray as xr\r\nimport pandas as pd\r\nimport proplot as plot\r\n\r\nda = xr.DataArray(\r\n np.random.rand(5, 4, 3, 2),\r\n [\r\n (\"time\", pd.date_range(\"2000-01-01\", periods=5)),\r\n (\"z\", [0, 1, 2, 3]),\r\n (\"y\", [4, 5, 6]),\r\n (\"x\", [12, 13]),\r\n ],\r\n)\r\n\r\n\r\nf, axs = plot.subplots()\r\nmedians = da.median(['time', 'y', 'x'])\r\n\r\n\r\nshadedata = da.quantile([0.25, 0.75], dim=['time', 'y', 'x'])\r\nfadedata = da.quantile([0.05, 0.95], dim=['time', 'y', 'x'])\r\n\r\naxs.plot(\r\n medians,\r\n shadedata=shadedata, fadedata=fadedata,\r\n shadelabel='50% CI', fadelabel='90% CI',\r\n color='ocean blue', barzorder=0, boxmarker=False, legend='ll',\r\n)\r\n```\r\n\r\n**Expected behavior**:\r\n\r\nShades area is two x-axis values for one y-axis value (`fill_betweenx`).\r\n\r\n**Actual behavior**:\r\n`z` is the x-axis label instead of the values.\r\n\r\n### Proplot version\r\n\r\n0.6.4\r\n","author":{"url":"https://github.com/zxdawn","@type":"Person","name":"zxdawn"},"datePublished":"2020-10-04T07:13:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/229/proplot/issues/229"}
| 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:8af8bd66-eb53-82be-5280-9ac349dacf88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3EC:151EEE:A9D974:E51B5D:697D0164 |
| html-safe-nonce | 067eeec22d08d1710217993dbf2a8fe98433a5994b67b6d351f48133cc7ce731 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0VDOjE1MUVFRTpBOUQ5NzQ6RTUxQjVEOjY5N0QwMTY0IiwidmlzaXRvcl9pZCI6Ijg4OTQ2NzUzMTgxMjg1NzQ4MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3cfd73d28bfefc00c0a718820443775fc5ec112a91668b191d06f38727dadafc |
| hovercard-subject-tag | issue:714252530 |
| 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/229/issue_layout |
| twitter:image | https://opengraph.githubassets.com/816963915427ec069d6f3c4755a2a4c1f4f679146354fcc8273b39c680ebf314/proplot-dev/proplot/issues/229 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/816963915427ec069d6f3c4755a2a4c1f4f679146354fcc8273b39c680ebf314/proplot-dev/proplot/issues/229 |
| og:image:alt | Description The indicate_error use fill_between as default. How to use fill_betweenx? Although I found the source of fill_betweenx in the source code, I tried to add orientation='horizontal' and go... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zxdawn |
| hostname | github.com |
| expected-hostname | github.com |
| None | ad99f81708f3facbf5c2037d0e25afdae6b8d0dfe9f443e686a8775a4380fc67 |
| 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 | 50943bad29d7eb3508166e3853b0f7db2e6ca285 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width