Title: Error bars on bar traces should adhere to 'tozero' findExtreme option · Issue #3029 · plotly/plotly.js · GitHub
Open Graph Title: Error bars on bar traces should adhere to 'tozero' findExtreme option · Issue #3029 · plotly/plotly.js
X Title: Error bars on bar traces should adhere to 'tozero' findExtreme option · Issue #3029 · plotly/plotly.js
Description: Hi all, I've been greatly enjoying using plotly but I've run into the following problem which I've been told may be a bug. When i have a couple of small bars on a bar chart, adding error bars (which do not extend to the negative region) ...
Open Graph Description: Hi all, I've been greatly enjoying using plotly but I've run into the following problem which I've been told may be a bug. When i have a couple of small bars on a bar chart, adding error bars (whic...
X Description: Hi all, I've been greatly enjoying using plotly but I've run into the following problem which I've been told may be a bug. When i have a couple of small bars on a bar chart, adding erro...
Opengraph URL: https://github.com/plotly/plotly.js/issues/3029
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error bars on bar traces should adhere to 'tozero' findExtreme option","articleBody":"Hi all,\r\n\r\nI've been greatly enjoying using plotly but I've run into the following problem which I've been told may be a bug. When i have a couple of small bars on a bar chart, adding error bars (which do not extend to the negative region) causes a large whitespace between the xaxis and the xticks - as shown below with the accompanying script:\r\n\r\n A = [10, 8, 12, 5, 8]\r\n B = [0.5, 0.4, 10, 0.1, 0.4]\r\n A_error = [1, 2, 1, 1, 2]\r\n B_error = [0.2, 0.2, 2, 0.05, 0.2]\r\n x_data = ['alpha', 'beta', 'gamma', 'delta', 'epsilon']\r\n\r\n\r\n trace1 = (py.graph_objs.Bar(x = x_data, y = A,\r\n error_y = dict(type = 'data', array = A_error, visible = True), \r\n hoverinfo = 'x + y', name = 'A', opacity = 0.8, hoverlabel = dict(font = dict(size = 20)))) \r\n\r\n trace2 = (py.graph_objs.Bar(x = x_data, y = B,\r\n error_y = dict(type = 'data', array = B_error, visible = True), \r\n hoverinfo = 'x + y', name = 'B', opacity = 0.8, hoverlabel = dict(font = dict(size = 20)))) \r\n\r\n data = [trace1, trace2]\r\n\r\n\r\n layout = py.graph_objs.Layout(\r\n\r\n autosize = False,\r\n width = 1700,\r\n height = 1000,\r\n margin = dict(b = 100),\r\n showlegend = True,\r\n legend=dict(x=1, y=0.85, font = dict(size = 20), bgcolor = 'rgba(0,0,0,0)', bordercolor = 'black', borderwidth = 1),\r\n title = ('tick test'),\r\n titlefont = dict(size = 40),\r\n xaxis=dict(\r\n title = 'x_variable',\r\n ticks = 'outside',\r\n tickwidth = 2, \r\n titlefont = dict(\r\n size = 25), \r\n tickfont=dict(\r\n size=15,\r\n ),\r\n tickangle = 270,\r\n automargin = True,\r\n ),\r\n\r\n yaxis=dict(\r\n title = ('y_data'),\r\n ticks = 'outside',\r\n tickwidth = 2,\r\n titlefont = dict(\r\n size = 25),\r\n tickfont=dict(\r\n size=15,\r\n\r\n ),\r\n hoverformat = '.2f',\r\n automargin = True,\r\n\r\n\r\n ), \r\n\r\n )\r\n\r\n\r\n fig = py.graph_objs.Figure(data=data, layout=layout)\r\n py.offline.iplot(fig) \r\n\r\n\r\n\r\nThe whitespace dissappears when I remove orange bars. There are more details in the link I first made below \r\n\r\nhttps://community.plot.ly/t/large-white-space-between-xaxis-and-xticks/13739/3\r\n\r\nThanks,\r\n\r\nHarry T","author":{"url":"https://github.com/henrykeithturner","@type":"Person","name":"henrykeithturner"},"datePublished":"2018-09-20T13:18:19Z","url":"https://github.com/plotly/plotly.js/issues/3029"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c0889329-d06d-858d-758a-fa2f9abe31f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4D0:A99C2:3215C87:3FB3B1C:6B01BD3E |
| html-safe-nonce | f193e31e0f996189e4087ee83645115ef2fad6f9a5f7d01f814ad329d048c1d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEQwOkE5OUMyOjMyMTVDODc6M0ZCM0IxQzo2QjAxQkQzRSIsInZpc2l0b3JfaWQiOiIxMDk4NDA1Njk2OTY3MzkyNTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 191dae91ec3394a21056e90a5828d99f5b4aeb26b9be94a7a3e5925385d71abd |
| hovercard-subject-tag | issue:362183597 |
| 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/plotly/plotly.js/3029/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4d6389db41aca71f10f3c623136585fd4bcd481ac6147d695684c87e4f47100/plotly/plotly.js/issues/3029 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4d6389db41aca71f10f3c623136585fd4bcd481ac6147d695684c87e4f47100/plotly/plotly.js/issues/3029 |
| og:image:alt | Hi all, I've been greatly enjoying using plotly but I've run into the following problem which I've been told may be a bug. When i have a couple of small bars on a bar chart, adding error bars (whic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henrykeithturner |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width