Skip to content

Commit ee09c54

Browse files
authored
Merge pull request #1515 from alioacar/fix-line-color
Fix line color with Bokeh Orthographic plots
2 parents 735a1dd + 9fecc70 commit ee09c54

2 files changed

Lines changed: 6 additions & 27 deletions

File tree

docs/user-guide/healpix.ipynb

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -147,22 +147,13 @@
147147
"source": [
148148
"(\n",
149149
" ux.Grid.from_healpix(zoom=2).plot(\n",
150-
" periodic_elements=\"split\",\n",
151-
" projection=ccrs.Orthographic(),\n",
152-
" title=\"zoom=2\",\n",
153-
" backend=\"matplotlib\",\n",
150+
" periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=2\"\n",
154151
" )\n",
155152
" + ux.Grid.from_healpix(zoom=3).plot(\n",
156-
" periodic_elements=\"split\",\n",
157-
" projection=ccrs.Orthographic(),\n",
158-
" title=\"zoom=3\",\n",
159-
" backend=\"matplotlib\",\n",
153+
" periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=3\"\n",
160154
" )\n",
161155
" + ux.Grid.from_healpix(zoom=4).plot(\n",
162-
" periodic_elements=\"split\",\n",
163-
" projection=ccrs.Orthographic(),\n",
164-
" title=\"zoom=4\",\n",
165-
" backend=\"matplotlib\",\n",
156+
" periodic_elements=\"split\", projection=ccrs.Orthographic(), title=\"zoom=4\"\n",
166157
" )\n",
167158
").cols(1)"
168159
]
@@ -448,22 +439,8 @@
448439
}
449440
],
450441
"metadata": {
451-
"kernelspec": {
452-
"display_name": "Python 3",
453-
"language": "python",
454-
"name": "python3"
455-
},
456442
"language_info": {
457-
"codemirror_mode": {
458-
"name": "ipython",
459-
"version": 3
460-
},
461-
"file_extension": ".py",
462-
"mimetype": "text/x-python",
463-
"name": "python",
464-
"nbconvert_exporter": "python",
465-
"pygments_lexer": "ipython3",
466-
"version": "3.14.4"
443+
"name": "python"
467444
}
468445
},
469446
"nbformat": 4,

uxarray/plot/accessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def edges(
222222
kwargs["projection"] = ccrs.PlateCarree()
223223
if "clabel" not in kwargs:
224224
kwargs["clabel"] = "edges"
225+
if "color" not in kwargs and "line_color" not in kwargs:
226+
kwargs["color"] = "black"
225227
if "crs" not in kwargs:
226228
if "projection" in kwargs:
227229
central_longitude = kwargs["projection"].proj4_params["lon_0"]

0 commit comments

Comments
 (0)