Giter VIP home page Giter VIP logo

Comments (5)

lawremi avatar lawremi commented on August 12, 2024

Please let me know if it doesn't work.

from qtpaint.

tsieger avatar tsieger commented on August 12, 2024

Thanks. qlayer(qscene()) works, but the cranvas example still does not work for me.

from qtpaint.

lawremi avatar lawremi commented on August 12, 2024

Same error or something else?

On Mon, Aug 18, 2014 at 2:46 PM, Tomas Sieger [email protected]
wrote:

qlayer(qscene()) results in

Error in viewGeometry(scene) : object 'scene' not found

It seems to be related to commit 0573db6
0573db6
.

A more realistic example would be:

library(cranvas)
qtennis <- qdata(tennis)
qscatter(first.serve.pct, second.serve.pts, data=qtennis,
xlab="First Serve %", ylab="Second Serve Points")

resulting in

Error in viewGeometry(scene) : object 'scene' not found

traceback()
3: viewGeometry(scene) at layer.R#145
2: qlayer(scene)
1: qscatter(first.serve.pct, second.serve.pts, data = qtennis, xlab = "First Serve %",
ylab = "Second Serve Points")


Reply to this email directly or view it on GitHub
#4.

from qtpaint.

tsieger avatar tsieger commented on August 12, 2024

The same error. The problem is that parent is NULL in the call to layer from qscatter. See e.g. the layer.main at cranvas/R/qscatter.R:259+:

  layer.main = qlayer(
    paintFun = main_draw,
    mousePressFun = brush_mouse_press, mouseReleaseFun = brush_mouse_release,
    mouseMoveFun = brush_mouse_move, hoverMoveFun = identify_hover,
    keyPressFun = key_press, keyReleaseFun = key_release,
    wheelFun = mouse_wheel,
    focusInFun = function(layer, event) {
      common_focus_in(layer, event, data, meta)
    }, focusOutFun = function(layer, event) {
      common_focus_out(layer, event, data, meta)
    },
    limits = qrect(meta$limits), clip = TRUE, cache = TRUE)

from qtpaint.

tsieger avatar tsieger commented on August 12, 2024

Thanks. It works now.

from qtpaint.

Related Issues (4)

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.