Skip to content

Commit

Permalink
docs: rerun docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 18, 2024
1 parent 959f6f4 commit fba71d7
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 57 deletions.
13 changes: 4 additions & 9 deletions docs/how_to/map_features.ipynb

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions docs/how_to/profiles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.13 ('antarctic_plots_dev')",
"display_name": "polartoolkit",
"language": "python",
"name": "python3"
},
Expand All @@ -1022,12 +1022,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
},
"vscode": {
"interpreter": {
"hash": "041a7f2299cd3625e6932f12614952187ebb3ec88bdd4b9d08714fa3a6e3ec20"
}
"version": "3.12.4"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
21 changes: 8 additions & 13 deletions docs/how_to/use_with_pygmt.ipynb

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions docs/quickstart.ipynb

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions docs/tutorial/04_map_features.ipynb

Large diffs are not rendered by default.

17 changes: 7 additions & 10 deletions src/polartoolkit/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,29 +1567,28 @@ def add_gridlines(
x_frames = ["xag", "xa"]
else:
x_frames = [
f"xa{x_spacing}g{x_spacing/2}",
f"xa{x_spacing}",
f"xa{x_spacing*2}g{x_spacing}",
f"xa{x_spacing*2}",
]

if y_spacing is None:
y_frames = ["yag", "ya"]
else:
y_frames = [
f"ya{y_spacing}g{y_spacing/2}",
f"ya{y_spacing}",
f"ya{y_spacing*2}g{y_spacing}",
f"ya{y_spacing*2}",
]

with pygmt.config(
MAP_ANNOT_OFFSET_PRIMARY=annotation_offset, # move annotations in/out
MAP_ANNOT_MIN_ANGLE=0,
MAP_ANNOT_MIN_SPACING="auto",
MAP_FRAME_TYPE="inside",
MAP_ANNOT_OBLIQUE=0, # rotate relative to lines
MAP_ANNOT_OBLIQUE="anywhere",
FONT_ANNOT_PRIMARY="8p,black,-=2p,white",
MAP_GRID_PEN_PRIMARY="auto,gray",
MAP_TICK_LENGTH_PRIMARY="-5p",
MAP_TICK_LENGTH_PRIMARY="auto",
MAP_TICK_PEN_PRIMARY="auto,gray",
# FORMAT_GEO_MAP="dddF",
# MAP_POLAR_CAP="90/90",
):
# plot semi-transparent lines and annotations with black font and white shadow
fig.basemap(
Expand All @@ -1601,7 +1600,6 @@ def add_gridlines(
y_frames[0],
],
transparency=50,
# verbose="q",
)
# re-plot annotations with no transparency
with pygmt.config(FONT_ANNOT_PRIMARY="8p,black"):
Expand All @@ -1613,7 +1611,6 @@ def add_gridlines(
x_frames[0],
y_frames[0],
],
# verbose="q",
)


Expand Down

0 comments on commit fba71d7

Please sign in to comment.