Skip to content

Colour by another column of data within a data array (pandas or numpy) #109

@timrifts

Description

@timrifts

Hi,

Great tool for making ternary plots! It'd be great for visualisation of any trends if the points within a given tax.scatter(...) line could be given more than one colour to allow for datasets to be coloured by something else (another variable in the dataset for example). E.G after a Pandas import of...:
Name Depth V1 V2 V3
0 Unit1 14 10 20 70
1 Unit2 15 50 50 0
2 Unit3 16 25 20 5
3 Unit4 18 50 25 25

Could be plotted according to V1,V2,V3 proportions and coloured by either Name (i.e grouping into identical groups) or according some other parameter (e.g Depth).

To do this at the moment would require lots of individual tax.scatters which is great if you want the flexibility of changing shape etc but can be cumbersome with larger datasets. Apologies if this is already there or a other simple solution - only a couple of weeks into my Python life!

Cheers,
Tim

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions