Giter VIP home page Giter VIP logo

Comments (7)

teunbrand avatar teunbrand commented on June 2, 2024

Thanks for the report! I'm not too familiar with how VSCode displays plots; do you have any idea what graphics device is used to display plots interactively?

from ggplot2.

strengejacke avatar strengejacke commented on June 2, 2024

I'm not very familiar with the technical background, either. I know that you can use the httpgd-package to display plots in R (see also https://nx10.github.io/httpgd/articles/b01_vscode.html), and that's what I have installed, too.

from ggplot2.

thomasp85 avatar thomasp85 commented on June 2, 2024

This remains a grid bug, not a ggplot2 bug. Sadly it has proven quite elusive to figure out why it happens but it has to do with some invalidation of the plot state in interactive devices

from ggplot2.

strengejacke avatar strengejacke commented on June 2, 2024

Ok. I was just curious because I realized this error just recently, after the ggplot 3.5.0 release. This could be a coincidence, but my guess was some kind of interaction between grid and the latest ggplot might lead to this issue.

from ggplot2.

strengejacke avatar strengejacke commented on June 2, 2024

It only seems to occur when the plot-window is not yet created. Once we have the plot-pane open, this error doesn't seem to re-appear.

from ggplot2.

strengejacke avatar strengejacke commented on June 2, 2024

Here's a short video, not sure if this helps. But maybe this issue should be closed/transferred anyway?

grid_issue.mp4

from ggplot2.

thomasp85 avatar thomasp85 commented on June 2, 2024

Thanks - I am going to close it since it is not something on the ggplot2 side. I know @pmur002 is aware of the issue so maybe this will eventually get fixed.

There can be many reasons why it started appearing with the latest release of ggplot2. I think the output from ggplot is by far the most complex grobs that gets rendered in R so it is a great stress-test of grid. Small changes may stress grid in new ways, even if ggplot2 is not doing anything wrong

from ggplot2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.