1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
|
# --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Geo(_BaseLayoutHierarchyType):
_parent_path_str = "layout"
_path_str = "layout.geo"
_valid_props = {
"bgcolor",
"center",
"coastlinecolor",
"coastlinewidth",
"countrycolor",
"countrywidth",
"domain",
"fitbounds",
"framecolor",
"framewidth",
"lakecolor",
"landcolor",
"lataxis",
"lonaxis",
"oceancolor",
"projection",
"resolution",
"rivercolor",
"riverwidth",
"scope",
"showcoastlines",
"showcountries",
"showframe",
"showlakes",
"showland",
"showocean",
"showrivers",
"showsubunits",
"subunitcolor",
"subunitwidth",
"uirevision",
"visible",
}
@property
def bgcolor(self):
"""
Set the background color of the map
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["bgcolor"]
@bgcolor.setter
def bgcolor(self, val):
self["bgcolor"] = val
@property
def center(self):
"""
The 'center' property is an instance of Center
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.geo.Center`
- A dict of string/value properties that will be passed
to the Center constructor
Returns
-------
plotly.graph_objs.layout.geo.Center
"""
return self["center"]
@center.setter
def center(self, val):
self["center"] = val
@property
def coastlinecolor(self):
"""
Sets the coastline color.
The 'coastlinecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["coastlinecolor"]
@coastlinecolor.setter
def coastlinecolor(self, val):
self["coastlinecolor"] = val
@property
def coastlinewidth(self):
"""
Sets the coastline stroke width (in px).
The 'coastlinewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["coastlinewidth"]
@coastlinewidth.setter
def coastlinewidth(self, val):
self["coastlinewidth"] = val
@property
def countrycolor(self):
"""
Sets line color of the country boundaries.
The 'countrycolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["countrycolor"]
@countrycolor.setter
def countrycolor(self, val):
self["countrycolor"] = val
@property
def countrywidth(self):
"""
Sets line width (in px) of the country boundaries.
The 'countrywidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["countrywidth"]
@countrywidth.setter
def countrywidth(self, val):
self["countrywidth"] = val
@property
def domain(self):
"""
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.geo.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Returns
-------
plotly.graph_objs.layout.geo.Domain
"""
return self["domain"]
@domain.setter
def domain(self, val):
self["domain"] = val
@property
def fitbounds(self):
"""
Determines if this subplot's view settings are auto-computed to
fit trace data. On scoped maps, setting `fitbounds` leads to
`center.lon` and `center.lat` getting auto-filled. On maps with
a non-clipped projection, setting `fitbounds` leads to
`center.lon`, `center.lat`, and `projection.rotation.lon`
getting auto-filled. On maps with a clipped projection, setting
`fitbounds` leads to `center.lon`, `center.lat`,
`projection.rotation.lon`, `projection.rotation.lat`,
`lonaxis.range` and `lataxis.range` getting auto-filled. If
"locations", only the trace's visible locations are considered
in the `fitbounds` computations. If "geojson", the entire trace
input `geojson` (if provided) is considered in the `fitbounds`
computations, Defaults to False.
The 'fitbounds' property is an enumeration that may be specified as:
- One of the following enumeration values:
[False, 'locations', 'geojson']
Returns
-------
Any
"""
return self["fitbounds"]
@fitbounds.setter
def fitbounds(self, val):
self["fitbounds"] = val
@property
def framecolor(self):
"""
Sets the color the frame.
The 'framecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["framecolor"]
@framecolor.setter
def framecolor(self, val):
self["framecolor"] = val
@property
def framewidth(self):
"""
Sets the stroke width (in px) of the frame.
The 'framewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["framewidth"]
@framewidth.setter
def framewidth(self, val):
self["framewidth"] = val
@property
def lakecolor(self):
"""
Sets the color of the lakes.
The 'lakecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["lakecolor"]
@lakecolor.setter
def lakecolor(self, val):
self["lakecolor"] = val
@property
def landcolor(self):
"""
Sets the land mass color.
The 'landcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["landcolor"]
@landcolor.setter
def landcolor(self, val):
self["landcolor"] = val
@property
def lataxis(self):
"""
The 'lataxis' property is an instance of Lataxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.geo.Lataxis`
- A dict of string/value properties that will be passed
to the Lataxis constructor
Returns
-------
plotly.graph_objs.layout.geo.Lataxis
"""
return self["lataxis"]
@lataxis.setter
def lataxis(self, val):
self["lataxis"] = val
@property
def lonaxis(self):
"""
The 'lonaxis' property is an instance of Lonaxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.geo.Lonaxis`
- A dict of string/value properties that will be passed
to the Lonaxis constructor
Returns
-------
plotly.graph_objs.layout.geo.Lonaxis
"""
return self["lonaxis"]
@lonaxis.setter
def lonaxis(self, val):
self["lonaxis"] = val
@property
def oceancolor(self):
"""
Sets the ocean color
The 'oceancolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["oceancolor"]
@oceancolor.setter
def oceancolor(self, val):
self["oceancolor"] = val
@property
def projection(self):
"""
The 'projection' property is an instance of Projection
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.geo.Projection`
- A dict of string/value properties that will be passed
to the Projection constructor
Returns
-------
plotly.graph_objs.layout.geo.Projection
"""
return self["projection"]
@projection.setter
def projection(self, val):
self["projection"] = val
@property
def resolution(self):
"""
Sets the resolution of the base layers. The values have units
of km/mm e.g. 110 corresponds to a scale ratio of
1:110,000,000.
The 'resolution' property is an enumeration that may be specified as:
- One of the following enumeration values:
[110, 50]
Returns
-------
Any
"""
return self["resolution"]
@resolution.setter
def resolution(self, val):
self["resolution"] = val
@property
def rivercolor(self):
"""
Sets color of the rivers.
The 'rivercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["rivercolor"]
@rivercolor.setter
def rivercolor(self, val):
self["rivercolor"] = val
@property
def riverwidth(self):
"""
Sets the stroke width (in px) of the rivers.
The 'riverwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["riverwidth"]
@riverwidth.setter
def riverwidth(self, val):
self["riverwidth"] = val
@property
def scope(self):
"""
Set the scope of the map.
The 'scope' property is an enumeration that may be specified as:
- One of the following enumeration values:
['africa', 'asia', 'europe', 'north america', 'south
america', 'usa', 'world']
Returns
-------
Any
"""
return self["scope"]
@scope.setter
def scope(self, val):
self["scope"] = val
@property
def showcoastlines(self):
"""
Sets whether or not the coastlines are drawn.
The 'showcoastlines' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showcoastlines"]
@showcoastlines.setter
def showcoastlines(self, val):
self["showcoastlines"] = val
@property
def showcountries(self):
"""
Sets whether or not country boundaries are drawn.
The 'showcountries' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showcountries"]
@showcountries.setter
def showcountries(self, val):
self["showcountries"] = val
@property
def showframe(self):
"""
Sets whether or not a frame is drawn around the map.
The 'showframe' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showframe"]
@showframe.setter
def showframe(self, val):
self["showframe"] = val
@property
def showlakes(self):
"""
Sets whether or not lakes are drawn.
The 'showlakes' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showlakes"]
@showlakes.setter
def showlakes(self, val):
self["showlakes"] = val
@property
def showland(self):
"""
Sets whether or not land masses are filled in color.
The 'showland' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showland"]
@showland.setter
def showland(self, val):
self["showland"] = val
@property
def showocean(self):
"""
Sets whether or not oceans are filled in color.
The 'showocean' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showocean"]
@showocean.setter
def showocean(self, val):
self["showocean"] = val
@property
def showrivers(self):
"""
Sets whether or not rivers are drawn.
The 'showrivers' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showrivers"]
@showrivers.setter
def showrivers(self, val):
self["showrivers"] = val
@property
def showsubunits(self):
"""
Sets whether or not boundaries of subunits within countries
(e.g. states, provinces) are drawn.
The 'showsubunits' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showsubunits"]
@showsubunits.setter
def showsubunits(self, val):
self["showsubunits"] = val
@property
def subunitcolor(self):
"""
Sets the color of the subunits boundaries.
The 'subunitcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
Returns
-------
str
"""
return self["subunitcolor"]
@subunitcolor.setter
def subunitcolor(self, val):
self["subunitcolor"] = val
@property
def subunitwidth(self):
"""
Sets the stroke width (in px) of the subunits boundaries.
The 'subunitwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["subunitwidth"]
@subunitwidth.setter
def subunitwidth(self, val):
self["subunitwidth"] = val
@property
def uirevision(self):
"""
Controls persistence of user-driven changes in the view
(projection and center). Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
-------
Any
"""
return self["uirevision"]
@uirevision.setter
def uirevision(self, val):
self["uirevision"] = val
@property
def visible(self):
"""
Sets the default visibility of the base layers.
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["visible"]
@visible.setter
def visible(self, val):
self["visible"] = val
@property
def _prop_descriptions(self):
return """\
bgcolor
Set the background color of the map
center
:class:`plotly.graph_objects.layout.geo.Center`
instance or dict with compatible properties
coastlinecolor
Sets the coastline color.
coastlinewidth
Sets the coastline stroke width (in px).
countrycolor
Sets line color of the country boundaries.
countrywidth
Sets line width (in px) of the country boundaries.
domain
:class:`plotly.graph_objects.layout.geo.Domain`
instance or dict with compatible properties
fitbounds
Determines if this subplot's view settings are auto-
computed to fit trace data. On scoped maps, setting
`fitbounds` leads to `center.lon` and `center.lat`
getting auto-filled. On maps with a non-clipped
projection, setting `fitbounds` leads to `center.lon`,
`center.lat`, and `projection.rotation.lon` getting
auto-filled. On maps with a clipped projection, setting
`fitbounds` leads to `center.lon`, `center.lat`,
`projection.rotation.lon`, `projection.rotation.lat`,
`lonaxis.range` and `lataxis.range` getting auto-
filled. If "locations", only the trace's visible
locations are considered in the `fitbounds`
computations. If "geojson", the entire trace input
`geojson` (if provided) is considered in the
`fitbounds` computations, Defaults to False.
framecolor
Sets the color the frame.
framewidth
Sets the stroke width (in px) of the frame.
lakecolor
Sets the color of the lakes.
landcolor
Sets the land mass color.
lataxis
:class:`plotly.graph_objects.layout.geo.Lataxis`
instance or dict with compatible properties
lonaxis
:class:`plotly.graph_objects.layout.geo.Lonaxis`
instance or dict with compatible properties
oceancolor
Sets the ocean color
projection
:class:`plotly.graph_objects.layout.geo.Projection`
instance or dict with compatible properties
resolution
Sets the resolution of the base layers. The values have
units of km/mm e.g. 110 corresponds to a scale ratio of
1:110,000,000.
rivercolor
Sets color of the rivers.
riverwidth
Sets the stroke width (in px) of the rivers.
scope
Set the scope of the map.
showcoastlines
Sets whether or not the coastlines are drawn.
showcountries
Sets whether or not country boundaries are drawn.
showframe
Sets whether or not a frame is drawn around the map.
showlakes
Sets whether or not lakes are drawn.
showland
Sets whether or not land masses are filled in color.
showocean
Sets whether or not oceans are filled in color.
showrivers
Sets whether or not rivers are drawn.
showsubunits
Sets whether or not boundaries of subunits within
countries (e.g. states, provinces) are drawn.
subunitcolor
Sets the color of the subunits boundaries.
subunitwidth
Sets the stroke width (in px) of the subunits
boundaries.
uirevision
Controls persistence of user-driven changes in the view
(projection and center). Defaults to
`layout.uirevision`.
visible
Sets the default visibility of the base layers.
"""
def __init__(
self,
arg=None,
bgcolor=None,
center=None,
coastlinecolor=None,
coastlinewidth=None,
countrycolor=None,
countrywidth=None,
domain=None,
fitbounds=None,
framecolor=None,
framewidth=None,
lakecolor=None,
landcolor=None,
lataxis=None,
lonaxis=None,
oceancolor=None,
projection=None,
resolution=None,
rivercolor=None,
riverwidth=None,
scope=None,
showcoastlines=None,
showcountries=None,
showframe=None,
showlakes=None,
showland=None,
showocean=None,
showrivers=None,
showsubunits=None,
subunitcolor=None,
subunitwidth=None,
uirevision=None,
visible=None,
**kwargs,
):
"""
Construct a new Geo object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Geo`
bgcolor
Set the background color of the map
center
:class:`plotly.graph_objects.layout.geo.Center`
instance or dict with compatible properties
coastlinecolor
Sets the coastline color.
coastlinewidth
Sets the coastline stroke width (in px).
countrycolor
Sets line color of the country boundaries.
countrywidth
Sets line width (in px) of the country boundaries.
domain
:class:`plotly.graph_objects.layout.geo.Domain`
instance or dict with compatible properties
fitbounds
Determines if this subplot's view settings are auto-
computed to fit trace data. On scoped maps, setting
`fitbounds` leads to `center.lon` and `center.lat`
getting auto-filled. On maps with a non-clipped
projection, setting `fitbounds` leads to `center.lon`,
`center.lat`, and `projection.rotation.lon` getting
auto-filled. On maps with a clipped projection, setting
`fitbounds` leads to `center.lon`, `center.lat`,
`projection.rotation.lon`, `projection.rotation.lat`,
`lonaxis.range` and `lataxis.range` getting auto-
filled. If "locations", only the trace's visible
locations are considered in the `fitbounds`
computations. If "geojson", the entire trace input
`geojson` (if provided) is considered in the
`fitbounds` computations, Defaults to False.
framecolor
Sets the color the frame.
framewidth
Sets the stroke width (in px) of the frame.
lakecolor
Sets the color of the lakes.
landcolor
Sets the land mass color.
lataxis
:class:`plotly.graph_objects.layout.geo.Lataxis`
instance or dict with compatible properties
lonaxis
:class:`plotly.graph_objects.layout.geo.Lonaxis`
instance or dict with compatible properties
oceancolor
Sets the ocean color
projection
:class:`plotly.graph_objects.layout.geo.Projection`
instance or dict with compatible properties
resolution
Sets the resolution of the base layers. The values have
units of km/mm e.g. 110 corresponds to a scale ratio of
1:110,000,000.
rivercolor
Sets color of the rivers.
riverwidth
Sets the stroke width (in px) of the rivers.
scope
Set the scope of the map.
showcoastlines
Sets whether or not the coastlines are drawn.
showcountries
Sets whether or not country boundaries are drawn.
showframe
Sets whether or not a frame is drawn around the map.
showlakes
Sets whether or not lakes are drawn.
showland
Sets whether or not land masses are filled in color.
showocean
Sets whether or not oceans are filled in color.
showrivers
Sets whether or not rivers are drawn.
showsubunits
Sets whether or not boundaries of subunits within
countries (e.g. states, provinces) are drawn.
subunitcolor
Sets the color of the subunits boundaries.
subunitwidth
Sets the stroke width (in px) of the subunits
boundaries.
uirevision
Controls persistence of user-driven changes in the view
(projection and center). Defaults to
`layout.uirevision`.
visible
Sets the default visibility of the base layers.
Returns
-------
Geo
"""
super().__init__("geo")
if "_parent" in kwargs:
self._parent = kwargs["_parent"]
return
if arg is None:
arg = {}
elif isinstance(arg, self.__class__):
arg = arg.to_plotly_json()
elif isinstance(arg, dict):
arg = _copy.copy(arg)
else:
raise ValueError("""\
The first argument to the plotly.graph_objs.layout.Geo
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Geo`""")
self._skip_invalid = kwargs.pop("skip_invalid", False)
self._validate = kwargs.pop("_validate", True)
self._set_property("bgcolor", arg, bgcolor)
self._set_property("center", arg, center)
self._set_property("coastlinecolor", arg, coastlinecolor)
self._set_property("coastlinewidth", arg, coastlinewidth)
self._set_property("countrycolor", arg, countrycolor)
self._set_property("countrywidth", arg, countrywidth)
self._set_property("domain", arg, domain)
self._set_property("fitbounds", arg, fitbounds)
self._set_property("framecolor", arg, framecolor)
self._set_property("framewidth", arg, framewidth)
self._set_property("lakecolor", arg, lakecolor)
self._set_property("landcolor", arg, landcolor)
self._set_property("lataxis", arg, lataxis)
self._set_property("lonaxis", arg, lonaxis)
self._set_property("oceancolor", arg, oceancolor)
self._set_property("projection", arg, projection)
self._set_property("resolution", arg, resolution)
self._set_property("rivercolor", arg, rivercolor)
self._set_property("riverwidth", arg, riverwidth)
self._set_property("scope", arg, scope)
self._set_property("showcoastlines", arg, showcoastlines)
self._set_property("showcountries", arg, showcountries)
self._set_property("showframe", arg, showframe)
self._set_property("showlakes", arg, showlakes)
self._set_property("showland", arg, showland)
self._set_property("showocean", arg, showocean)
self._set_property("showrivers", arg, showrivers)
self._set_property("showsubunits", arg, showsubunits)
self._set_property("subunitcolor", arg, subunitcolor)
self._set_property("subunitwidth", arg, subunitwidth)
self._set_property("uirevision", arg, uirevision)
self._set_property("visible", arg, visible)
self._process_kwargs(**dict(arg, **kwargs))
self._skip_invalid = False
|