Skip to content

facet-and-trellis documentation color_is_cat=True Depreicated #1244

@Chippasaur

Description

@Chippasaur

Hi,

I was following the tutorial for face and trellis, and I noticed color_is_cat = True, I was wondering whether it was just me or whether this has been depreicated and not updated in the documentation.

import plotly.plotly as py
import plotly.figure_factory as ff

import pandas as pd
mtcars = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/mtcars.csv')

fig = ff.create_facet_grid(
    mtcars,
    x='mpg',
    y='wt',
    facet_col='cyl',
    color_name='cyl',
    color_is_cat=True,   ## This line
)
py.iplot(fig, filename='facet - color by categorical variable')```

[here](https://github.com/plotly/documentation/blob/source-design-merge/_posts/python/statistical/facet-trellis/facet-and-trellis-plots.ipynb)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions