lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

`facet_wrap`: make the axes on all facets the same in polar coordinates

Open ASmirnov-HORIS opened this issue 1 year ago • 0 comments

Example:

data = {
    'v': ['A', 'A', 'B', 'C', 'A', 'B', 'B', 'C'],
    'g': ['t', 't', 't', 't', 's', 's', 's', 's'],
}

ggplot(data, aes('v')) + geom_bar() + coord_polar() + facet_wrap(facets='g', ncol=1)

Output:

However, in a polar coordinate system, the axes should be consistent across all facets. Unlike the Cartesian coordinate system, where everything is supposed to stay as it is.

ASmirnov-HORIS avatar May 07 '24 12:05 ASmirnov-HORIS