File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -887,25 +887,26 @@ def basemap(self, **kwargs):
887
887
@use_alias (
888
888
R = "region" ,
889
889
J = "projection" ,
890
- U = "timestamp" ,
891
890
D = "position" ,
892
891
F = "box" ,
892
+ S = "style" ,
893
+ U = "timestamp" ,
894
+ V = "verbose" ,
893
895
X = "xshift" ,
894
896
Y = "yshift" ,
895
- p = "perspective" ,
896
897
t = "transparency" ,
897
898
)
898
899
@kwargs_to_strings (R = "sequence" , p = "sequence" )
899
900
def logo (self , ** kwargs ):
900
901
"""
901
- Place the GMT graphics logo on a map .
902
+ Plot the GMT logo.
902
903
903
904
By default, the GMT logo is 2 inches wide and 1 inch high and
904
905
will be positioned relative to the current plot origin.
905
906
Use various options to change this and to place a transparent or
906
907
opaque rectangular map panel behind the GMT logo.
907
908
908
- Full option list at :gmt-docs:`logo .html`
909
+ Full option list at :gmt-docs:`gmtlogo .html`.
909
910
910
911
{aliases}
911
912
@@ -919,15 +920,21 @@ def logo(self, **kwargs):
919
920
box : bool or str
920
921
Without further options, draws a rectangular border around the
921
922
GMT logo.
923
+ style : str
924
+ ``l|n|u``.
925
+ Control what is written beneath the map portion of the logo.
926
+
927
+ - **l** to plot the text label "The Generic Mapping Tools"
928
+ [Default]
929
+ - **n** to skip the label placement
930
+ - **u** to place the URL to the GMT site
922
931
{U}
932
+ {V}
923
933
{XY}
924
- {p}
925
934
{t}
926
935
927
936
"""
928
937
kwargs = self ._preprocess (** kwargs )
929
- if "D" not in kwargs :
930
- raise GMTInvalidInput ("Option D must be specified." )
931
938
with Session () as lib :
932
939
lib .call_module ("logo" , build_arg_string (kwargs ))
933
940
Original file line number Diff line number Diff line change 1
1
"""
2
2
Tests for fig.logo
3
3
"""
4
- import pytest
5
-
6
4
from .. import Figure
7
- from ..exceptions import GMTInvalidInput
8
5
from ..helpers .testing import check_figures_equal
9
6
10
7
@@ -31,11 +28,3 @@ def test_logo_on_a_map():
31
28
)
32
29
fig_test .logo (position = "jTR+o0.1i/0.1i+w3i" , box = True )
33
30
return fig_ref , fig_test
34
-
35
-
36
- def test_logo_fails ():
37
- "Make sure logo raises an exception when D is not given"
38
- fig = Figure ()
39
- with pytest .raises (GMTInvalidInput ):
40
- fig .logo ()
41
- return fig
You can’t perform that action at this time.
0 commit comments