Title: bug: unexpected behavior of inset colorbar · Issue #336 · proplot-dev/proplot · GitHub
Open Graph Title: bug: unexpected behavior of inset colorbar · Issue #336 · proplot-dev/proplot
X Title: bug: unexpected behavior of inset colorbar · Issue #336 · proplot-dev/proplot
Description: Description Unexpected behavior of inset colorbar with keywords tickloc and labelloc. Steps to reproduce The code below import proplot as pplt import numpy as np fig, axes = pplt.subplots(None, 1, 2) cm = axes[0].scatter(*np.random.rand(...
Open Graph Description: Description Unexpected behavior of inset colorbar with keywords tickloc and labelloc. Steps to reproduce The code below import proplot as pplt import numpy as np fig, axes = pplt.subplots(None, 1, ...
X Description: Description Unexpected behavior of inset colorbar with keywords tickloc and labelloc. Steps to reproduce The code below import proplot as pplt import numpy as np fig, axes = pplt.subplots(None, 1, ...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/336
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: unexpected behavior of inset colorbar","articleBody":"\u003c!-- Thanks for helping us make proplot a better package! If this is a bug report, please use the template provided below. If this is a feature request, you can delete the template text (just try to be descriptive with your request). --\u003e\r\n\r\n### Description\r\n\r\nUnexpected behavior of inset colorbar with keywords `tickloc` and `labelloc`.\r\n\r\n### Steps to reproduce\r\n\r\nThe code below\r\n\r\n```python\r\nimport proplot as pplt\r\nimport numpy as np\r\n\r\nfig, axes = pplt.subplots(None, 1, 2)\r\ncm = axes[0].scatter(*np.random.rand(4, 10), vmin=0, vmax=1)\r\n\r\naxes[0].colorbar(cm, loc='ll', length=10, width=0.8, label='abc', tickloc='top')\r\naxes[1].colorbar(cm, loc='ll', length=10, width=0.8, label='abc', labelloc='top')\r\n```\r\n\r\ngives this\r\n\r\n\r\n\r\nIf I understand correctly,\r\nleft panel: we would expect the ticks shown at the top when `tickloc='top'` is set.\r\nright panel: strange padding when placing the label on the top.\r\n\r\nI tried to fix the padding in the right panel, it turns out not easy for me ...\r\n\r\n### Proplot version\r\n\r\nPaste the results of `import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)`here.\r\n```\r\n3.4.3\r\n0.9.5.post284\r\n```","author":{"url":"https://github.com/syrte","@type":"Person","name":"syrte"},"datePublished":"2022-02-08T21:38:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/336/proplot/issues/336"}
| 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:8a0f9e4e-8823-1811-5ffa-f35844bd32ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4E2:2D309B:F0D3E5:14FDC5B:697B5F61 |
| html-safe-nonce | 44040586b2578b05b035b68cb4f43592a65815aadf9749a78c3107eb090648d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEUyOjJEMzA5QjpGMEQzRTU6MTRGREM1Qjo2OTdCNUY2MSIsInZpc2l0b3JfaWQiOiI3MjIyMzc1ODk5NTkxMzAzMDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a2a1f08c2f6405816f3f91bea8ea5786133c004a3048fdae665546b8f744f708 |
| hovercard-subject-tag | issue:1127784773 |
| 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/336/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97124d7349d986a4fc63007e5cb12789a3fbe8c8759bb5eb946855e990d5cea1/proplot-dev/proplot/issues/336 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97124d7349d986a4fc63007e5cb12789a3fbe8c8759bb5eb946855e990d5cea1/proplot-dev/proplot/issues/336 |
| og:image:alt | Description Unexpected behavior of inset colorbar with keywords tickloc and labelloc. Steps to reproduce The code below import proplot as pplt import numpy as np fig, axes = pplt.subplots(None, 1, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | syrte |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7eed3e20c41f6c464df945b1f353a52c450ca1653f4697d4ebcc58c2adc5868a |
| 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 | d72d3188f34dc5c9b58eb1a406c45898c7a25009 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width