Comments (5)
Please let me know if it doesn't work.
from qtpaint.
Thanks. qlayer(qscene())
works, but the cranvas example still does not work for me.
from qtpaint.
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.
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.
Thanks. It works now.
from qtpaint.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtpaint.