From fd686497d07bf51d63d4043932c9b207993a6dfe Mon Sep 17 00:00:00 2001 From: alioacar Date: Thu, 28 May 2026 14:03:45 +0300 Subject: [PATCH 1/2] fix bokeh line color for grid --- docs/user-guide/healpix.ipynb | 25 ++++--------------------- uxarray/plot/accessor.py | 2 ++ 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/docs/user-guide/healpix.ipynb b/docs/user-guide/healpix.ipynb index c96f6c9b1..3c654e7e2 100644 --- a/docs/user-guide/healpix.ipynb +++ b/docs/user-guide/healpix.ipynb @@ -149,20 +149,17 @@ " ux.Grid.from_healpix(zoom=2).plot(\n", " periodic_elements=\"split\",\n", " projection=ccrs.Orthographic(),\n", - " title=\"zoom=2\",\n", - " backend=\"matplotlib\",\n", + " title=\"zoom=2\"\n", " )\n", " + ux.Grid.from_healpix(zoom=3).plot(\n", " periodic_elements=\"split\",\n", " projection=ccrs.Orthographic(),\n", - " title=\"zoom=3\",\n", - " backend=\"matplotlib\",\n", + " title=\"zoom=3\"\n", " )\n", " + ux.Grid.from_healpix(zoom=4).plot(\n", " periodic_elements=\"split\",\n", " projection=ccrs.Orthographic(),\n", - " title=\"zoom=4\",\n", - " backend=\"matplotlib\",\n", + " title=\"zoom=4\"\n", " )\n", ").cols(1)" ] @@ -448,22 +445,8 @@ } ], "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.14.4" + "name": "python" } }, "nbformat": 4, diff --git a/uxarray/plot/accessor.py b/uxarray/plot/accessor.py index 2085b6095..6b4047825 100644 --- a/uxarray/plot/accessor.py +++ b/uxarray/plot/accessor.py @@ -222,6 +222,8 @@ def edges( kwargs["projection"] = ccrs.PlateCarree() if "clabel" not in kwargs: kwargs["clabel"] = "edges" + if "color" not in kwargs and "line_color" not in kwargs: + kwargs["color"] = "black" if "crs" not in kwargs: if "projection" in kwargs: central_longitude = kwargs["projection"].proj4_params["lon_0"] From 9fecc70a9879892eee30bac441d208703e92fcf3 Mon Sep 17 00:00:00 2001 From: alioacar Date: Thu, 28 May 2026 14:45:11 +0300 Subject: [PATCH 2/2] ruff format --- docs/user-guide/healpix.ipynb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/user-guide/healpix.ipynb b/docs/user-guide/healpix.ipynb index 3c654e7e2..2be3459dd 100644 --- a/docs/user-guide/healpix.ipynb +++ b/docs/user-guide/healpix.ipynb @@ -147,19 +147,13 @@ "source": [ "(\n", " ux.Grid.from_healpix(zoom=2).plot(\n", - " periodic_elements=\"split\",\n", - " projection=ccrs.Orthographic(),\n", - " title=\"zoom=2\"\n", + " periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=2\"\n", " )\n", " + ux.Grid.from_healpix(zoom=3).plot(\n", - " periodic_elements=\"split\",\n", - " projection=ccrs.Orthographic(),\n", - " title=\"zoom=3\"\n", + " periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=3\"\n", " )\n", " + ux.Grid.from_healpix(zoom=4).plot(\n", - " periodic_elements=\"split\",\n", - " projection=ccrs.Orthographic(),\n", - " title=\"zoom=4\"\n", + " periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=4\"\n", " )\n", ").cols(1)" ]