Comparison Charts
Parallel Coordinates
Coming soon!
Scatter
src.dx.plotting.dex.basic_charts.scatter(df, x, y, size=None, trend_line=None, marginal_graphics=None, formula_display=None, return_view=False, **kwargs)
Generates a DEX scatterplot from the given DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
DataFrame
|
The DataFrame to plot. |
required |
x |
str
|
The column to use for the x-axis. |
required |
y |
str
|
The column to use for the y-axis. |
required |
size |
Optional[str]
|
The column to use for sizing scatterplot points. |
None
|
trend_line |
Optional[DEXTrendlineType]
|
The type of trendline to use. One of |
None
|
marginal_graphics |
Optional[DEXSummaryType]
|
The marginal graphics to use:
- |
None
|
formula_display |
Optional[DEXFormulaDisplay]
|
The formula display to use:
- |
None
|
return_view |
bool
|
Whether to return a |
False
|
**kwargs |
Additional keyword arguments to pass to the view metadata. |
{}
|
Source code in src/dx/plotting/dex/basic_charts.py
Connected Scatterplot
Coming soon!
Scatterplot Matrix
Coming soon!
Correlation Matrix
Coming soon!
Bar
src.dx.plotting.dex.basic_charts.bar(df, x, y, y2=None, y2_style='bar', horizontal=False, bar_width=None, group_other=False, column_sort_order='asc', column_sort_type='string', pro_bar_mode='combined', combination_mode='avg', show_bar_labels=False, return_view=False, **kwargs)
Generates a DEX bar plot from the given DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
The DataFrame to plot. |
required | |
x |
str
|
The column to use for the x-axis. |
required |
y |
str
|
The column(s) to use for the primary y-axis. |
required |
y2 |
Optional[str]
|
The column to use for the secondary y-axis. |
None
|
y2_style |
DEXSecondMetricstyle
|
The style to use for the secondary y-axis. ( |
'bar'
|
horizontal |
bool
|
Whether to plot the bars horizontally. |
False
|
bar_width |
Optional[str]
|
The column to use for the bar width. |
None
|
group_other |
bool
|
Whether to group the remaining columns into an "Other" category. |
False
|
column_sort_order |
DEXSortColumnsByOrder
|
The order to sort the columns by ( |
'asc'
|
column_sort_type |
DEXSortColumnsByType
|
The type of sorting to use. ( |
'string'
|
pro_bar_mode |
DEXProBarModeType
|
The bar mode to use ( |
'combined'
|
combination_mode |
DEXCombinationMode
|
The combination mode to use ( |
'avg'
|
show_bar_labels |
bool
|
Whether to show the bar values as labels. |
False
|
return_view |
bool
|
Whether to return a |
False
|
**kwargs |
Additional keyword arguments to pass to the view metadata. |
{}
|
Source code in src/dx/plotting/dex/basic_charts.py
Dot Plot
Coming soon!
Radar Plot
Coming soon!
Diverging Bar
Coming soon!