geoprior.scripts.plot_litho_parity#
Plot lithology parity across cities.
Left: normalized composition bars (Nansha vs Zhongshan). Right: difference bars (Zhongshan - Nansha).
- param -
--src: - type -
--src: dataset directory- param -
--col: - type -
--col: column name, defaultlithology_class- param -
--year: - type -
--year: allora year integer- param -
--out: - type -
--out: output stem/path,saved into ``scripts/figs/``- param -
-ns/-zh: - type -
-ns/-zh: city codes; the default uses both
Functions
|
|
|
|
|
|
|
|
|
|
|
- geoprior.scripts.plot_litho_parity.load_city_df(src, filename, *, year='all', sample_frac=None, sample_n=None, seed=42)[source]#
- geoprior.scripts.plot_litho_parity.compute_proportions(ns, zh, *, col, top_n, group_others)[source]#
- geoprior.scripts.plot_litho_parity.draw_lithology_parity(dfp, counts_mat, *, col, outpath, sharey)[source]#