{"record":{"id":"edbf7fb8c2ba98dd","repo":"matplotlib/matplotlib","slug":"axis-already-has-an-explicit-converter-set","errorCode":null,"errorMessage":"Axis already has an explicit converter set","messagePattern":"Axis already has an explicit converter set","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/matplotlib/axis.py","lineNumber":2070,"sourceCode":"        \"\"\"\n        return self._converter\n\n    def set_converter(self, converter):\n        \"\"\"\n        Set the unit converter for axis.\n\n        Parameters\n        ----------\n        converter : `~matplotlib.units.ConversionInterface`\n        \"\"\"\n        self._set_converter(converter)\n        self._converter_is_explicit = True\n\n    def _set_converter(self, converter):\n        if self._converter is converter or self._converter == converter:\n            return\n        if self._converter_is_explicit:\n            raise RuntimeError(\"Axis already has an explicit converter set\")\n        elif (\n            self._converter is not None and\n            not isinstance(converter, type(self._converter)) and\n            not isinstance(self._converter, type(converter))\n        ):\n            _api.warn_external(\n                \"This axis already has a converter set and \"\n                \"is updating to a potentially incompatible converter\"\n            )\n        self._converter = converter\n\n    def set_units(self, u):\n        \"\"\"\n        Set the units for axis.\n\n        Parameters\n        ----------\n        u : units tag","sourceCodeStart":2052,"sourceCodeEnd":2088,"githubUrl":"https://github.com/matplotlib/matplotlib/blob/b379c1b69e012b142c0f496a52bcb30513802d72/lib/matplotlib/axis.py#L2052-L2088","documentation":"Error \"Axis already has an explicit converter set\" thrown in matplotlib/matplotlib.","triggerScenarios":"Thrown at lib/matplotlib/axis.py:2070 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b379c1b69e012b142c0f496a52bcb30513802d72","analyzedAt":"2026-08-21T23:31:55.468Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}