spellbook.plotutils
Contents
spellbook.plotutils#
Helper functions used by the other plotting modules
- Functions:
|
|
|
Determine the datakind of a |
|
|
|
|
|
|
|
Print datakinds for all columns in the dataframe |
|
|
|
Create formatted text with two columns (labels, values) |
Functions#
categorybox#
- spellbook.plotutils.categorybox(ax, text, x=None, y=None, alignment='tl', text_args={})[source]#
- Parameters
ax –
text –
x –
y –
alignment –
text_args (dict) –
Dictionary of keyword arguments that are passed on to
matplotlib.axes.Axes.text().For example:
fontsizecan bexx-small,x-small,small,medium,large,x-largeorxx-large
get_data_kind#
- spellbook.plotutils.get_data_kind(var)[source]#
Determine the datakind of a
pandas.SeriesThe datakind can be
cat: categoricalord: ordinalcont: continuous
- Parameters
var (
pandas.Series) – The column of apandas.DataFrame- Return type
legend_bbox_to_anchor#
legend_loc#
not_yet_implemented#
print_data_kinds#
- spellbook.plotutils.print_data_kinds(data)[source]#
Print datakinds for all columns in the dataframe
The datakinds are determined in
get_data_kind().- Parameters
data (
pandas.DataFrame) – pandas DataFrame- Return type