Title: error in construction of inverted log transforms · Issue #10202 · matplotlib/matplotlib · GitHub
Open Graph Title: error in construction of inverted log transforms · Issue #10202 · matplotlib/matplotlib
X Title: error in construction of inverted log transforms · Issue #10202 · matplotlib/matplotlib
Description: Bug report The __init__ method for scale.LogTransformBase takes a required positional argument nonpos, but it's derived classes are constructed without that required argument in the inverted method. Code for reproduction import matplotli...
Open Graph Description: Bug report The __init__ method for scale.LogTransformBase takes a required positional argument nonpos, but it's derived classes are constructed without that required argument in the inverted method...
X Description: Bug report The __init__ method for scale.LogTransformBase takes a required positional argument nonpos, but it's derived classes are constructed without that required argument in the inverted me...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error in construction of inverted log transforms","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nThe `__init__` method for scale.LogTransformBase takes a required positional argument `nonpos`, but it's derived classes are constructed without that required argument in the `inverted` method.\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib.scale as scale\r\ntform = scale.InvertedLog10Transform() #OK\r\ntform = tform.inverted() #not OK\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n```\r\nTypeError: __init__() missing 1 required positional argument: 'nonpos'\r\n```\r\n\r\n**Expected outcome**\r\n\r\nproper construction of transform object.\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: ubuntu 16.04\r\n * Matplotlib version: 2.0.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.6\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/fkloosterman","@type":"Person","name":"fkloosterman"},"datePublished":"2018-01-09T16:49:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/10202/matplotlib/issues/10202"}
| 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:ea3fb128-a148-6aea-50e7-6f61ebc81862 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99AC:D635E:475B43:66EA4C:6A55DFB7 |
| html-safe-nonce | 9149c301cd9971a111d3e35a977ffdd3c6e741a1c7153b1e0ac9091ef4fcdd1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUFDOkQ2MzVFOjQ3NUI0Mzo2NkVBNEM6NkE1NURGQjciLCJ2aXNpdG9yX2lkIjoiNzE2ODczMDA1NzI3MTUzMzQ5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2285220842ff591fb667574fa8e5042c08e72d0d396d79af82b2253496d65a10 |
| hovercard-subject-tag | issue:287156815 |
| 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/matplotlib/matplotlib/10202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18ebb43ad6d472baa3d169c609576ab282d1001c9709c8a223c33e406034732a/matplotlib/matplotlib/issues/10202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18ebb43ad6d472baa3d169c609576ab282d1001c9709c8a223c33e406034732a/matplotlib/matplotlib/issues/10202 |
| og:image:alt | Bug report The __init__ method for scale.LogTransformBase takes a required positional argument nonpos, but it's derived classes are constructed without that required argument in the inverted method... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fkloosterman |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width