@@ -432,13 +432,17 @@ def grdview(self, grid, **kwargs):
432
432
@use_alias (
433
433
R = "region" ,
434
434
J = "projection" ,
435
+ A = "straight_lines" ,
435
436
B = "frame" ,
436
- S = "style" ,
437
+ C = "cmap" ,
438
+ D = "position" ,
439
+ E = "error_bars" ,
437
440
G = "color" ,
441
+ L = "close" ,
442
+ S = "style" ,
438
443
W = "pen" ,
439
444
i = "columns" ,
440
445
l = "label" ,
441
- C = "cmap" ,
442
446
)
443
447
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" )
444
448
def plot (self , x = None , y = None , data = None , sizes = None , direction = None , ** kwargs ):
@@ -452,26 +456,26 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
452
456
453
457
Must provide either *data* or *x* and *y*.
454
458
455
- If providing data through *x* and *y*, *color* (G) can be a 1d array
456
- that will be mapped to a colormap.
459
+ If providing data through *x* and *y*, *color* can be a 1d array that
460
+ will be mapped to a colormap.
457
461
458
- If a symbol is selected and no symbol size given, then psxy will
462
+ If a symbol is selected and no symbol size given, then plot will
459
463
interpret the third column of the input data as symbol size. Symbols
460
464
whose size is <= 0 are skipped. If no symbols are specified then the
461
- symbol code (see *S * below) must be present as last column in the
462
- input. If *S * is not used, a line connecting the data points will be
463
- drawn instead. To explicitly close polygons, use *L *. Select a fill
464
- with *G *. If *G * is set, *W * will control whether the polygon outline
465
- is drawn or not. If a symbol is selected, *G * and *W* determines the
466
- fill and outline/no outline, respectively.
465
+ symbol code (see *symbol * below) must be present as last column in the
466
+ input. If *symbol * is not used, a line connecting the data points will
467
+ be drawn instead. To explicitly close polygons, use *close *. Select a
468
+ fill with *color *. If *color * is set, *pen * will control whether the
469
+ polygon outline is drawn or not. If a symbol is selected, *color * and
470
+ *pen* determines the fill and outline/no outline, respectively.
467
471
468
472
Full option list at :gmt-docs:`plot.html`
469
473
470
474
{aliases}
471
475
472
476
Parameters
473
477
----------
474
- x, y : float or 1d arrays
478
+ x/ y : float or 1d arrays
475
479
The x and y coordinates, or arrays of x and y coordinates of the
476
480
data points
477
481
data : str or 2d array
@@ -488,25 +492,29 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
488
492
depending on the style options chosen.
489
493
{J}
490
494
{R}
491
- A : bool or str
495
+ straight_lines : bool or str
492
496
``'[m|p|x|y]'``
493
497
By default, geographic line segments are drawn as great circle
494
- arcs. To draw them as straight lines, use *A *.
498
+ arcs. To draw them as straight lines, use *straight_lines *.
495
499
{B}
496
500
{CPT}
497
- D : str
501
+ position : str
498
502
``'dx/dy'``: Offset the plot symbol or line locations by the given
499
503
amounts dx/dy.
500
- E : bool or str
504
+ error_bars : bool or str
501
505
``'[x|y|X|Y][+a][+cl|f][+n][+wcap][+ppen]'``.
502
506
Draw symmetrical error bars.
503
507
{G}
504
- S : str
508
+ style : str
505
509
Plot symbols (including vectors, pie slices, fronts, decorated or
506
510
quoted lines).
507
511
{W}
508
512
{U}
509
- l : str
513
+ columns : list or str
514
+ ``cols[+l][+sscale][+ooffset][,…][,t[word]]``
515
+ Select input columns and transformations (0 is first column, t is
516
+ trailing text, append word to read one word only).
517
+ label : str
510
518
Add a legend entry for the symbol or line being plotted.
511
519
"""
512
520
kwargs = self ._preprocess (** kwargs )
@@ -551,13 +559,17 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
551
559
J = "projection" ,
552
560
Jz = "zscale" ,
553
561
JZ = "zsize" ,
562
+ A = "straight_lines" ,
554
563
B = "frame" ,
555
- S = "style" ,
564
+ C = "cmap" ,
565
+ D = "position" ,
566
+ E = "error_bars" ,
556
567
G = "color" ,
568
+ L = "close" ,
569
+ S = "style" ,
557
570
W = "pen" ,
558
571
i = "columns" ,
559
572
l = "label" ,
560
- C = "cmap" ,
561
573
p = "perspective" ,
562
574
)
563
575
@kwargs_to_strings (R = "sequence" , i = "sequence_comma" , p = "sequence" )
@@ -567,23 +579,24 @@ def plot3d(
567
579
"""
568
580
Plot lines, polygons, and symbols in 3-D
569
581
570
- Takes a matrix, (x,y,z) triplets, or a file name as input and plots lines,
571
- polygons, or symbols at those locations in 3-D.
582
+ Takes a matrix, (x,y,z) triplets, or a file name as input and plots
583
+ lines, polygons, or symbols at those locations in 3-D.
572
584
573
585
Must provide either *data* or *x*, *y* and *z*.
574
586
575
- # If providing data through *x* and *y *, *color* (G) can be a 1d array
576
- # that will be mapped to a colormap.
587
+ If providing data through *x*, *y* and *z *, *color* can be a 1d array
588
+ that will be mapped to a colormap.
577
589
578
590
If a symbol is selected and no symbol size given, then plot3d will
579
591
interpret the fourth column of the input data as symbol size. Symbols
580
592
whose size is <= 0 are skipped. If no symbols are specified then the
581
- symbol code (see *S* below) must be present as last column in the
582
- input. If *S* is not used, a line connecting the data points will be
583
- drawn instead. To explicitly close polygons, use *L*. Select a fill
584
- with *G*. If *G* is set, *W* will control whether the polygon outline
585
- is drawn or not. If a symbol is selected, *G* and *W* determines the
586
- fill and outline/no outline, respectively.
593
+ symbol code (see *style* below) must be present as last column in the
594
+ input. If *style* is not used, a line connecting the data points will
595
+ be drawn instead. To explicitly close polygons, use *close*. Select a
596
+ fill
597
+ with *color*. If *color* is set, *pen* will control whether the polygon
598
+ outline is drawn or not. If a symbol is selected, *color* and *pen*
599
+ determines the fill and outline/no outline, respectively.
587
600
588
601
Full option list at :gmt-docs:`plot3d.html`
589
602
@@ -610,25 +623,29 @@ def plot3d(
610
623
zscale/zsize : float or str
611
624
Set z-axis scaling or z-axis size.
612
625
{R}
613
- A : bool or str
626
+ straight_lines : bool or str
614
627
``'[m|p|x|y]'``
615
628
By default, geographic line segments are drawn as great circle
616
629
arcs. To draw them as straight lines, use *A*.
617
630
{B}
618
631
{CPT}
619
- D : str
632
+ position : str
620
633
``'dx/dy'``: Offset the plot symbol or line locations by the given
621
634
amounts dx/dy.
622
- E : bool or str
635
+ error_bars : bool or str
623
636
``'[x|y|X|Y][+a][+cl|f][+n][+wcap][+ppen]'``.
624
637
Draw symmetrical error bars.
625
638
{G}
626
- S : str
639
+ style : str
627
640
Plot symbols (including vectors, pie slices, fronts, decorated or
628
641
quoted lines).
629
642
{W}
630
643
{U}
631
- l : str
644
+ columns : list or str
645
+ ``cols[+l][+sscale][+ooffset][,…][,t[word]]``
646
+ Select input columns and transformations (0 is first column, t is
647
+ trailing text, append word to read one word only).
648
+ label : str
632
649
Add a legend entry for the symbol or line being plotted.
633
650
perspective : list or str
634
651
``'[x|y|z]azim[/elev[/zlevel]][+wlon0/lat0[/z0]][+vx0/y0]'``.
0 commit comments