gt-extras
  • Intro
  • Examples
  • API Reference

Examples

Car mfr year hp hp_rpm trq trq_rpm mpg_c mpg_h
LaFerrari Ferrari 2015
NSX Acura 2017
GT-R Nissan 2016
Aventador Lamborghini 2015
Huracan Lamborghini 2015
Gallardo Lamborghini 2014
Continental GT Bentley 2016
Granturismo Maserati 2016
Quattroporte Maserati 2016

gt_plt_bar

x autoscale_on autoscale_off
10
25%
10%
20
50%
20%
30
75%
30%
40
100%
40%

gt_plt_bar_pct

x Group 1 | Group 2 | Group 3
Example A
10
40
50
Example B
30
30
40
Example C
50
20
30

gt_plt_bar_stack

Daily Temp vs Monthly Average
Temp plot Temp
5/1
67
5/2
72
6/1
78
6/2
74
7/1
84
7/2
85
8/1
81
8/2
81
9/1
91
9/2
92
Target line shows monthly average temperature

gt_plt_bullet

group mean ci_lower ci_upper ci
A 5.2 3.1 7.3
3.1
7.3
B 7.8 6.1 9.7
6.1
9.7
C 3.4 1.8 5.0
1.8
5

gt_plt_conf_int

Car mfr hp
F12Berlinetta
Ferrari
731.0
LaFerrari
Ferrari
949.0
NSX
Acura
573.0
GT-R
Nissan
545.0
Aventador
Lamborghini
700.0
Huracan
Lamborghini
610.0
Gallardo
Lamborghini
550.0
Continental GT
Bentley
500.0
Granturismo
Maserati
454.0
Quattroporte
Maserati
404.0
Ghibli
Maserati
345.0
6-Series
BMW
315.0
i8
BMW
357.0

gt_plt_dot

date Open to Close ($)
2008-12-03
844
871
2008-12-04
870
845
2008-12-05
844
876
2008-12-08
883
910
2008-12-09
906
889
2008-12-10
892
899
2008-12-11
898
874
2008-12-12
872
880
2008-12-15
881
869
Purple: Open
Green: Close

gt_plt_dumbbell

Team 10 Games
Liverpool
Chelsea
Man City

gt_plt_winloss

Island size
Asia
16988
Africa
11506
North America
9390
South America
6795
Antarctica
5500
Europe
3745
Australia
2968
Greenland
840
New Guinea
306
Borneo
280

gt_color_box

Color by Group Color All
grp_a
row_1 0.1111 0.1111
row_2 2.222 2.222
row_3 33.33 33.33
row_4 444.4 444.4
grp_b
row_5 5550.0 5550.0
row_6
row_7 777000.0 777000.0
row_8 8880000.0 8880000.0
Left: gt_data_color_by_group, Right: data_color

gt_data_color_by_group

Car year hp trq mpg_h
GT 2017 647.0 550.0 18.0
458 Speciale 2015 597.0 398.0 17.0
458 Spider 2015 562.0 398.0 17.0
458 Italia 2014 562.0 398.0 17.0
488 GTB 2016 661.0 561.0 22.0
California 2015 553.0 557.0 23.0
GTC4Lusso 2017 680.0 514.0 17.0
FF 2015 652.0 504.0 16.0

gt_highlight_cols

Car year hp trq
GT 2017 647.0 550.0
458 Speciale 2015 597.0 398.0
458 Spider 2015 562.0 398.0
458 Italia 2014 562.0 398.0
488 GTB 2016 661.0 561.0
California 2015 553.0 557.0
GTC4Lusso 2017 680.0 514.0
FF 2015 652.0 504.0

gt_highlight_rows

Car mfr year hp trq mpg_h
GT Ford 2017 647.0 550.0 18.0
458 Speciale Ferrari 2015 597.0 398.0 17.0
458 Spider Ferrari 2015 562.0 398.0 17.0
458 Italia Ferrari 2014 562.0 398.0 17.0
488 GTB Ferrari 2016 661.0 561.0 22.0
California Ferrari 2015 553.0 557.0 23.0
GTC4Lusso Ferrari 2017 680.0 514.0 17.0
FF Ferrari 2015 652.0 504.0 16.0
F12Berlinetta Ferrari 2015 731.0 509.0 16.0

gt_hulk_col_numeric

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_538

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_espn

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_guardian

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_nytimes

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_excel

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_dot_matrix

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_dark

New York Air Quality Measurements
Daily measurements in New York City (May 1-10, 1973)
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_pff

Points Assists
Josh Hart
1051 453
Jalen Brunson
1690 475
Images and data courtesy of ESPN

add_text_img

World Population in 2020
Each person icon represents ~10 million people
Country Population People
United States 331,511,512
Brazil 213,196,304
Mexico 125,998,302
France 67,571,107
Colombia 50,930,662
Poland 37,899,070
Ecuador 17,588,595
Haiti 11,306,801
Switzerland 8,638,167

fa_icon_repeat

name 1996_2001 2001_2006 2006_2011
Addington Highlands
Angles down
-0.0111
Angles up
0.0458
Equals
0.002
Adelaide Metcalfe
Equals
0.0067
Equals
-0.0044
Angles down
-0.0341
Adjala-Tosorontio
Angles up
0.0773
Angles up
0.0608
Equals
-0.0086
Admaston/Bromley
Equals
-0.0046
Angles down
-0.0382
Angles up
0.0471
Ajax
Angles up
0.1447
Angles up
0.2226
Angles up
0.2155
Alberton
Angles down
-0.0691
Equals
0.0021
Angles down
-0.0981
Alfred and Plantagenet
Angles up
0.0334
Equals
0.0071
Angles up
0.0626
Algonquin Highlands
Angles up
0.083
Angles up
0.0816
Angles up
0.1063
Alnwick/Haldimand
Angles up
0.0575
Angles up
0.1008
Angles up
0.0283
Amaranth
Angles up
0.0928
Angles up
0.0199
Angles up
0.0307

gt_fa_rank_change

Car mfr hp trq mpg_c rating
F12Berlinetta Ferrari 731.0 509.0 11.0
1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5
LaFerrari Ferrari 949.0 664.0 12.0
2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5
NSX Acura 573.0 476.0 21.0
5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5
GT-R Nissan 545.0 436.0 16.0
3.0 out of 5 3.0 out of 5 3.0 out of 5 3.0 out of 5 3.0 out of 5
Aventador Lamborghini 700.0 507.0 11.0
5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5
Huracan Lamborghini 610.0 413.0 16.0
1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5
Gallardo Lamborghini 550.0 398.0 12.0
5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5
Continental GT Bentley 500.0 487.0 15.0
1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5

gt_fa_rating

Josh Hart
Jalen Brunson
Mikal Bridges
Points 1051 1690 1444
Rebounds 737 187 259
Assists 453 475 306
Blocks 27 8 43
Steals 119 60 75
Images and data courtesy of ESPN

img_header

name Population Change
'96-'01 '01-'06 '06-'11
Whitchurch-Stouffville 11.6% 6.7% 54.3%
White River <5% -15.3% -27.8%
Whitestone 6.4% 20.8% -10.9%
Whitewater <5% <5% <5%
Wilmot 7.5% 15.0% 12.4%
Windsor 5.4% <5% <5%
Wollaston -5.6% 7.5% <5%
Woodstock <5% 8.3% 5.4%
Woolwich 5.1% 8.0% 17.7%
Zorra <5% <5% <5%

fmt_pct_extra

name_given Location phone_number Body Measurements
address city height_cm weight_kg
Ruth 4299 Bobcat Drive Baileys Crossroads 240-783-7630 153 76.4
Peter 3705 Hidden Pond Road Red Boiling Springs 615-699-3517 175 74.9
Fanette 4200 Swick Hill Street New Orleans 985-205-2970 167 61.6
Judyta 2287 Cherry Ridge Drive Oakfield 585-948-7790 156 54.5
Leonard 1496 Hillhaven Drive Los Angeles 323-857-6576 177 113.2
Maymun 4088 Barnes Avenue Hamilton 513-738-1936 172 88.4

gt_add_divider

mfr model year hp_dupe hp
Ford GT 2017 647.0 647.0
Ferrari 458 Speciale 2015 597.0 597.0
Ferrari 458 Spider 2015 562.0 562.0
Ferrari 458 Italia 2014 562.0 562.0
Ferrari 488 GTB 2016 661.0 661.0

gt_duplicate_column

team_abbr team_wordmark
NFC
Cardinals
NFC West
ARI
Falcons
NFC South
ATL
Panthers
NFC South
CAR
Bears
NFC North
CHI
AFC
Ravens
AFC North
BAL
Bills
AFC East
BUF
Bengals
AFC North
CIN
Browns
AFC North
CLE

gt_merge_stack

Joined Table
name_given address
Ruth 4299 Bobcat Drive
Peter 3705 Hidden Pond Road
Fanette 4200 Swick Hill Street
Judyta 2287 Cherry Ridge Drive
Leonard 1496 Hillhaven Drive
Maymun 4088 Barnes Avenue
name_given address
Alma 4897 Duffy Street
Mariana 2016 Kovar Road
Ning 3892 Bel Meadow Drive
Martin 1850 Valley Lane
Cendrillon Rue de Liège 466
Adélaïde Orchideeenlaan 470

gt_two_column_layout

Click the Links!
Package Github Stars
Great Tables 2334
Plotnine 4256
Quarto 4628

with_hyperlink

Hover for Tooltip
Package Designed for
Great Tables Tabling
Plotnine Plotting
Quarto Notebooking

with_tooltip