Skip to content

Commit 584c3d0

Browse files
committed
Support angle/prefix/unit
1 parent 16fcce4 commit 584c3d0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pygmt/src/colorbar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def _build_frame(
3434
>>> list(_build_frame(annot=1, tick=0.5, label="Distance", unit="Depth"))
3535
['xa1f0.5+lDistance', 'y+lDepth']
3636
"""
37+
# Using the old 'frame' parameter.
3738
if frame is not None and frame is not False:
3839
return frame
3940

@@ -53,9 +54,9 @@ def _build_frame(
5354
annot=annot,
5455
tick=tick,
5556
grid=grid,
56-
# angle=annot_angel,
57-
# prefix=annot_prefix,
58-
# unit=annot_unit,
57+
angle=annot_angel,
58+
prefix=annot_prefix,
59+
unit=annot_unit,
5960
label=label,
6061
)
6162
if _yaxis_is_set:

0 commit comments

Comments
 (0)