{ "matplotlib__matplotlib-14623": { "model_name_or_path": "fireworks_ai/accounts/fireworks/models/deepseek-v4-pro-0813", "instance_id": "matplotlib__matplotlib-14623", "model_patch": "diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py\nindex 209a3f92c..adb34338d 100644\n--- a/lib/matplotlib/ticker.py\n+++ b/lib/matplotlib/ticker.py\n@@ -2379,8 +2379,10 @@ class LogLocator(Locator):\n if not np.isfinite(vmin) or not np.isfinite(vmax):\n return 1, 10 # initial range, no data plotted yet\n \n+ swapped = False\n if vmin > vmax:\n vmin, vmax = vmax, vmin\n+ swapped = True\n if vmax <= 0:\n cbook._warn_external(\n \"Data has no positive values, and therefore cannot be \"\n@@ -2395,6 +2397,8 @@ class LogLocator(Locator):\n if vmin == vmax:\n vmin = _decade_less(vmin, self._base)\n vmax = _decade_greater(vmax, self._base)\n+ if swapped:\n+ vmin, vmax = vmax, vmin\n return vmin, vmax\n \n \n" } }