Returns figure for facet grid; **this function is deprecated**, since plotly.express functions should be used instead, for example >>> import plotly.express as px >>> tips = px.data.tips() >>> fig = px.scatter(tips, ... x='total_bill', ... y='tip', ... f
(
df,
x=None,
y=None,
facet_row=None,
facet_col=None,
color_name=None,
colormap=None,
color_is_cat=False,
facet_row_labels=None,
facet_col_labels=None,
height=None,
width=None,
trace_type="scatter",
scales="fixed",
dtick_x=None,
dtick_y=None,
show_boxes=True,
ggplot2=False,
binsize=1,
**kwargs,
)
| 646 | |
| 647 | |
| 648 | def create_facet_grid( |
| 649 | df, |
| 650 | x=None, |
| 651 | y=None, |
| 652 | facet_row=None, |
| 653 | facet_col=None, |
| 654 | color_name=None, |
| 655 | colormap=None, |
| 656 | color_is_cat=False, |
| 657 | facet_row_labels=None, |
| 658 | facet_col_labels=None, |
| 659 | height=None, |
| 660 | width=None, |
| 661 | trace_type="scatter", |
| 662 | scales="fixed", |
| 663 | dtick_x=None, |
| 664 | dtick_y=None, |
| 665 | show_boxes=True, |
| 666 | ggplot2=False, |
| 667 | binsize=1, |
| 668 | **kwargs, |
| 669 | ): |
| 670 | """ |
| 671 | Returns figure for facet grid; **this function is deprecated**, since |
| 672 | plotly.express functions should be used instead, for example |
| 673 | |
| 674 | >>> import plotly.express as px |
| 675 | >>> tips = px.data.tips() |
| 676 | >>> fig = px.scatter(tips, |
| 677 | ... x='total_bill', |
| 678 | ... y='tip', |
| 679 | ... facet_row='sex', |
| 680 | ... facet_col='smoker', |
| 681 | ... color='size') |
| 682 | |
| 683 | |
| 684 | :param (pd.DataFrame) df: the dataframe of columns for the facet grid. |
| 685 | :param (str) x: the name of the dataframe column for the x axis data. |
| 686 | :param (str) y: the name of the dataframe column for the y axis data. |
| 687 | :param (str) facet_row: the name of the dataframe column that is used to |
| 688 | facet the grid into row panels. |
| 689 | :param (str) facet_col: the name of the dataframe column that is used to |
| 690 | facet the grid into column panels. |
| 691 | :param (str) color_name: the name of your dataframe column that will |
| 692 | function as the colormap variable. |
| 693 | :param (str|list|dict) colormap: the param that determines how the |
| 694 | color_name column colors the data. If the dataframe contains numeric |
| 695 | data, then a dictionary of colors will group the data categorically |
| 696 | while a Plotly Colorscale name or a custom colorscale will treat it |
| 697 | numerically. To learn more about colors and types of colormap, run |
| 698 | `help(plotly.colors)`. |
| 699 | :param (bool) color_is_cat: determines whether a numerical column for the |
| 700 | colormap will be treated as categorical (True) or sequential (False). |
| 701 | Default = False. |
| 702 | :param (str|dict) facet_row_labels: set to either 'name' or a dictionary |
| 703 | of all the unique values in the faceting row mapped to some text to |
| 704 | show up in the label annotations. If None, labeling works like usual. |
| 705 | :param (str|dict) facet_col_labels: set to either 'name' or a dictionary |
no test coverage detected