GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Rename scale_at to scale_loc · GenericMappingTools/pygmt@0561ba4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pygmt
    • src
      • scalebar.py
    • tests
      • test_scalebar.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pygmt/src/scalebar.py‎

Copy file name to clipboardExpand all lines: pygmt/src/scalebar.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def scalebar( # noqa: PLR0913
2121
length: float | str,
2222
height: float | str | None = None,
2323
position: Position | Sequence[float | str] | AnchorCode | None = None,
24-
scale_at: float | Sequence[float] | bool = False,
24+
scale_loc: float | Sequence[float] | bool = False,
2525
label: str | bool = False,
2626
label_alignment: Literal["left", "right", "top", "bottom"] | None = None,
2727
unit: bool = False,
@@ -57,7 +57,7 @@ def scalebar( # noqa: PLR0913
5757
5858
If not specified, defaults to the Bottom Left corner of the plot with a 0.2-cm
5959
and 0.4-cm offset in the x- and y-directions, respectively.
60-
scale_at
60+
scale_loc
6161
Specify the location where the map scale is calculated. It can be:
6262
6363
- *slat*: Map scale is calculated for latitude *slat*.
@@ -122,7 +122,7 @@ def scalebar( # noqa: PLR0913
122122
prefix="+a",
123123
mapping={"left": "l", "right": "r", "top": "t", "bottom": "b"},
124124
),
125-
Alias(scale_at, name="scale_at", prefix="+c", sep="/", size=2),
125+
Alias(scale_loc, name="scale_loc", prefix="+c", sep="/", size=2),
126126
Alias(fancy, name="fancy", prefix="+f"),
127127
Alias(label, name="label", prefix="+l"),
128128
Alias(unit, name="unit", prefix="+u"),
Collapse file

‎pygmt/tests/test_scalebar.py‎

Copy file name to clipboardExpand all lines: pygmt/tests/test_scalebar.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_scalebar_complete():
3232
fancy=True,
3333
label="Scale",
3434
label_alignment="left",
35-
scale_at=(110, 25),
35+
scale_loc=(110, 25),
3636
unit=True,
3737
box=True,
3838
)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.