JetBrains / JetBrains/lets-plot

More flexible ggsize()

Open
#300 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Sometimes I only need to restrict the width of my plot. But I can only specify either both parameters or none, but cannot just change one of them. Here is one case example:

```python
import pandas as pd

from lets_plot import *
LetsPlot.setup_html()

df = pd.read_csv('https://raw.githubusercontent.com/HIL-HK/lets-plot-examples/master/data/mpg.csv')

ggplot(df.sort_values(by=['cyl', 'year'])) + \
geom_point(aes(x='cty', y='hwy')) + \
facet_grid(x='year', y='cyl') + \
ggsize(600, 800) # Better: ggsize(width=600)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.