Chart for Electronic Gears Data (SRAM AXS or Shimano Di2 etc.) (Requires Python)

433 views
Skip to first unread message

A Evans

unread,
May 12, 2021, 9:24:31 AM5/12/21
to golden-cheetah-users
I was inspired by di2stats.com to display the used gears along a ride. I am a complete newby to python so the code is probably not optimised to any degree, but creates a pretty looking chart of the gears data.

I think I have written it in a fairly generic way, so should work for Shimano or SRAM etc., but I'm not really sure and my coding skills are not good enough to debug, so if it works, then it works!

This is the chart it created:
gears.JPG
The bottom chart shows the Front gears as size of the marker, Big marker=big ring, The colour of the marker is the Rear gear (same colours as the rear chart above it). The colour of the mountain is the slope with a red-yel-green colourscale.

A Evans

unread,
May 12, 2021, 9:26:36 AM5/12/21
to golden-cheetah-users
Couldn't attach the chart file the first time.

Here it is. In a zip file.

Gears.zip

A Evans

unread,
May 22, 2021, 9:27:15 AM5/22/21
to golden-cheetah-users
Quick question about python in GC.

I can search for all activities with say power data with:
activities = GC.activities(filter='Data contains "P"')

Is there a filter I can use to find all activities with XDATA such as:
GC.activities(filter='XDATA contains "GEARS"')
?

Thanks

A

Ale Martinez

unread,
May 22, 2021, 9:50:41 AM5/22/21
to golden-cheetah-users
El sábado, 22 de mayo de 2021 a la(s) 10:27:15 UTC-3, amlyn...@gmail.com escribió:
Quick question about python in GC.

I can search for all activities with say power data with:
activities = GC.activities(filter='Data contains "P"')

Is there a filter I can use to find all activities with XDATA such as:
GC.activities(filter='XDATA contains "GEARS"')
?

marcen

unread,
Aug 5, 2025, 5:35:09 PMAug 5
to golden-cheetah-users

This might be helpful for some.

It's a diagram that shows the front and rear derailleur shifts. The diagram is a user chart, so no Python is needed. The shifts are displayed over time, along with the slope and altitude profile. This was tested with Shimano Di2, and I believe it should also work with SRAM.

Bildschirmfoto_20250805_232949.png
DI2 Chart.gchart

Pat Voi

unread,
Aug 7, 2025, 7:39:52 AMAug 7
to golden-cheetah-users
Hello, thank you for this Shimano Di2 diagram.

pepe

unread,
Aug 7, 2025, 1:57:01 PMAug 7
to golden-cheetah-users
Awesome chart, thank you.
Message has been deleted

Fe

unread,
Aug 8, 2025, 8:14:58 AMAug 8
to golden-cheetah-users
Hi, 
     here attached another python chart for gears.
Show activities or intervals. (compare two activities)
Select options for:
bar colors(random or custom), layout base colors( black or white), hysteresis setting, chart on the right (pie, map or mirbar). 
(edit the script in python console)

Py GEARS-SC-06-.jpg

    ## options  
   
    ## metric/imperial
    units = 'metric'  ## metric/imperial (CHK,Y)

    ## front & rear gears (random list)
    gfl = np.arange(20,60+1)  ## front gears   (CHK,N)
    grl = np.arange(9,50+1)   ## rear gears   (CHK,N)
 
   ## bar colors
    random_colors = True  ## True (random) , False (customized)   (CHK,N)
    bar_f_colors =  ['white','greenyellow']     #(CHK,N)
  
  ## x axis type
    xaxis_tp = 'd'  ## ' type :  't' = Time , 'd' = Distance  #(CHK,Y)
  
  ## pie - map - mirbar
    mirbar_pie_map_sel = 'map'   # # 'mirbar' ,  'pie',  'map'  #(CHK,Y)    
 
   ## min front chainring
    min_f_chr = 39  #(CHK,Y) (wip...)
 
   ## layout colors
    layout_colors = 'b'  ##  'w' = white  ,  'b' = black  #(CHK,Y)
  
  ## hysteresis
    yst = 3  #(CHK,Y)
 
   ## compare activities
    GCheetah Menu - > View -> Show Compare Pane


Fe
Py GEARS-SC-07.gchart

marcen

unread,
Aug 9, 2025, 9:38:24 AMAug 9
to golden-cheetah-users
I'm happy the diagram helps.
Fe, that's also a helpful diagram.
Reply all
Reply to author
Forward
0 new messages