plotnine figure of ipynb with vscode is displayed too much larger than jupyter
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.8k
- Forks
- 254
- Avg merge
- 10h 35m
- Merged PRs (30d)
- 9
Description
I'm R and Python user and really grateful to your work (I LOVE plotnine, thanks very much !!!!)
Recently I noticed when I opneed the ipynb file at vscode, plotnine figure displayed too much larger.
(note: seaborn (matplotlib) figure doesn't.)
I use plotnine v0.12.1, VScode v1.74.3 with python extension v2023.1.10062310 AND Jupyer extention v2022.11.1003412109.
(Excuse me, It is very hard to update because of workplace security)
First image is jupyter and 2nd is vscode.
Any help would be greatly appreciated.
import pandas as pd
import plotnine
from plotnine import *
import matplotlib.pyplot as plt
import seaborn as sns
print("plt_settings:", plt.rcParams["figure.figsize"], plt.rcParams["figure.dpi"])
print("plotnine*settings:", plotnine.options.figure_size, plotnine.options.dpi)
data = pd.DataFrame({"x": range(10), "y": range(10, 20)})
sns.scatterplot(data, x = "x", y = "y")
ggplot(data, aes("x", "y")) + geom_point()
jupyter
vscode
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the notebook display with the reported plotnine, VS Code, Python extension, and Jupyter extension versions, then compare the plotnine and seaborn outputs in Jupyter and VS Code. Done means the plotnine figure is displayed at a consistent size in both environments without changing the seaborn result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100