I am thinking to do a “heatmap” of the muscles of the human body using #matplotlib. The idea is to have strength workouts point at different muscles and show that dynamically using matplotlib (see image). Maybe nuts not sure yet…

I was thinking to convert the #png to #svg and then with svgpath2mpl parse it to a matplotlib path (not sure yet if I can do more than one path) :

https://petercbsmith.github.io/marker-tutorial.html

Now, is there a better/easier way?

#python #svg #data #dataviz

@ruthpozuelo a hacky not vector graphics way that comes to mind. first colour in each muscle in photoshop in a different grey that you know the value of. Read that "template" in as an array. Stack the array 3x for rgb, then replace the known values for that muscle with the new colour codes for the heatmap value.

Does that make any sense?

@tlohde I think i kind of know what you mean and it is brilliant!

Thank you, i will try it tomorrow (midnight here and I will need some more brain power for this).

Brilliant :)

@tlohde I finally had time to test and it works! So easy also! Thank you very much 👏👏
@ruthpozuelo ah, cool. Glad to hear it and happy to help.