geovar.GeoVarPlot¶
- class geovar.GeoVarPlot[source]¶
Class for a GeoVar plot.
Methods
__init__()Initialize plotting object with default fields.
add_cmap([base_cmap, str_labels, lbl_colors])Create a colormap object to use.
add_data_geovar(geovar_obj)Add in data directly from a GeoVar object.
add_data_jsfs(jsfs)Add data from a joint SFS via numpy.
add_poplabels(popfile)Add population labels from a file for GeoVar plot.
add_poplabels_manual(poplist)Add list of population labels manually.
add_text_data(inputfile[, filt_unobserved])Add/replace data for a GeoDistPlot object.
filter_data([max_freq, rare])Filter geovar data for easier plotting by removing some lower-frequency categories.
plot_geovar(ax[, pixel_thresh, freq_thresh, ...])Make a geovar plot on a particular axis.
plot_percentages(ax[, pixel_thresh, ...])Generate a plot with the percentages.
reorder_pops(new_poplist)Reordering populations within a GeoVar instance.
set_colors(colors)Add custom hex colors for GeoVar plot.
sort_geodist()Sort the geovar codes according to abundance.