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: github.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:68508d4c-9a4c-8e6a-963e-89e09644faae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E14:2FBAF8:D7A19D:1305ACA:697B80C6 |
| html-safe-nonce | f7e2172397040aa359d3df25995bf9ee9cc15409e59fa624d708aadf7308ec56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE0OjJGQkFGODpEN0ExOUQ6MTMwNUFDQTo2OTdCODBDNiIsInZpc2l0b3JfaWQiOiI0MDA0MTg5MzMxNzAxNTk2MzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f963b2e25cfea1ab0d451fe85b18ae47a8e0d6f1f66f19c1ebc17cee2fdb910e |
| 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 | 26ef504c9f5eb2ac26b53c0437f934bbe4c0464979d7386917bd32d9fe70fc7a |
| 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 | cea9b2b812b4d84ebc94c8a8bd97e2e99a2c0b48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width