search for: glist

Displaying 20 results from an estimated 150 matches for "glist".

Did you mean: list
2011 Feb 15
1
gList and gTree methods of grid::grobX
Dear all, In an attempt to draw fill patterns in grid graphics, I have encountered a behavior of grobX that I cannot understand from the documentation. Consider this, library(grid) ## gTree g1 <- gTree(children=gList( rectGrob(0.5,0.5, width=unit(0.8,"npc"), height=unit(2,"cm")), circleGrob(r=0.3)), vp=viewport(0.5,0.5)) ## gList g1 <- gList(rectGrob(0.5,0.5, width=unit(0.8,"npc"), height=unit(2,"cm"...
2009 Jun 26
1
gradient fill of a grid.polygon
...My initial thought was to rotate the grob (triangle here), paint it with the gradient, and plot the result in a rotated viewport with opposite rotation angle. I'm still hopeful it might work, but see 3). 3) each stripe is directly plotted, as opposed to saved as a grob. I tried to use either a gList or a gTree to store the output of the for loop, but I didn't understand why the result wouldn't appear on screen with grid.draw. What's the best structure to hold together these different slices? It is presumably this object that I should be plotting eventually in the right orientation....
2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
...bloxorz.swf playable. diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index 9af9370..21a98c6 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -348,6 +348,22 @@ swfdec_movie_is_compatible (SwfdecMovie return TRUE; } +static GList * +my_g_list_split (GList *list, GList *split) +{ + GList *prev; + + if (split == NULL) + return list; + + prev = split->prev; + if (prev == NULL) + return NULL; + prev->next = NULL; + split->prev = NULL; + return list; +} + void swfdec_sprite_movie_goto (SwfdecSpriteMovie *...
2017 Jun 16
2
Varios gráficos en una vista en OpenAir
Hola Carlos, Me parece que timePlot genera los gráficos en un formato diferente. Al ejecutar grid.arrange genera el siguiente error: Error in gList(list(list(plot = list(formula = value ~ date | default, : only 'grobs' allowed in "gList" Gracias. Atte. Novvier Uscuchagua De: Carlos Ortega [mailto:cof en qualityexcellence.es] Enviado el: viernes, 16 de junio de 2017 12:38 Para: Novvier Marco Uscuchagua Cornelio <novvie...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...t; #include "swfdec_player_internal.h" #include "js/jsdbgapi.h" @@ -536,3 +537,42 @@ swfdec_debugger_get_stepping (SwfdecDebu return debugger->stepping; } +const char * +swfdec_debugger_run (SwfdecDebugger *debugger, const char *command) +{ + SwfdecPlayer *player; + GList *walk; + jsval rval; + const char *ret; + + g_return_val_if_fail (SWFDEC_IS_DEBUGGER (debugger), NULL); + g_return_val_if_fail (command != NULL, NULL); + + player = SWFDEC_PLAYER (debugger); + g_object_freeze_notify (G_OBJECT (debugger)); + + + if (swfdec_js_run (player, command, &rval...
2005 Oct 21
2
Finding the neighbors of the point
Dear all, I got point data of trees. I was wondering if anybody has experience in searching the neighbors within a specified distance efficiently. X Y Z 99 34 65 98 35 29 98 34 28 99 33 33 98 32 23 99 33 21 99 33 22 99 32 24 99 30 23 ... What I want to do is : searching for the neighbors with a distance R for each tree & the neighbor must have a bigger Z.
2013 Apr 25
10
[PATCH v4 0/3] Btrfs: quota rescan for 3.10
The kernel side for rescan, which is needed if you want to enable qgroup tracking on a non-empty volume. The first patch splits btrfs_qgroup_account_ref into readable ans reusable units. The second patch adds the rescan implementation (refer to its commit message for a description of the algorithm). The third patch starts an automatic rescan when qgroups are enabled. It is only separated to
2017 Jun 16
2
Varios gráficos en una vista en OpenAir
...es> El 16 de junio de 2017, 20:32, Novvier Marco Uscuchagua Cornelio <novvier en outlook.com.pe<mailto:novvier en outlook.com.pe>> escribió: Hola Carlos, Me parece que timePlot genera los gráficos en un formato diferente. Al ejecutar grid.arrange genera el siguiente error: Error in gList(list(list(plot = list(formula = value ~ date | default, : only 'grobs' allowed in "gList" Gracias. Atte. Novvier Uscuchagua De: Carlos Ortega [mailto:cof en qualityexcellence.es<mailto:cof en qualityexcellence.es>] Enviado el: viernes, 16 de junio de 2017 12:38 Para: No...
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...G_TYPE_STRING; default: @@ -72,63 +72,35 @@ static gboolean swfdec_debug_movies_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path) { SwfdecDebugMovies *movies = SWFDEC_DEBUG_MOVIES (tree_model); - guint depth; + GNode *node; + guint i, depth; int *indices; - GList *walk; - SwfdecMovie *movie; REPORT; depth = gtk_tree_path_get_depth (path); indices = gtk_tree_path_get_indices (path); if (indices == NULL) return FALSE; - walk = g_list_nth (movies->player->roots, *indices); - if (!walk) - return FALSE; - movie = walk->data; -...
2019 Jun 21
3
Group policy broken
...user5 ERROR(runtime): uncaught exception - Badly formed gPLink ' ' ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run ??? return self.run(*args, **kwargs) ? File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 519, in run ??? glist = parse_gplink(str(msg['gPLink'][0])) ? File "/usr/lib/python3/dist-packages/samba/netcmd/gpo.py", line 102, in parse_gplink ??? raise RuntimeError("Badly formed gPLink '%s'" % g) How to fix GPO ?
2011 Apr 26
2
grid stringHeight
Dear all, I'm puzzled by the behavior of stringHeight in the grid package. Consider the following test, library(grid) test <- function(lab="dog", ...){ g1 <- textGrob(lab) g2 <- rectGrob(height=grobHeight(g1), width=grobWidth(g1)) gg <- gTree(children=gList(g1,g2), ...) print(c("height:", convertUnit(stringHeight(lab), "mm", "y"))) grid.draw(gg) } grid.newpage() test() test(expression(dog), vp=viewport(x=0.6)) ## notice how the dog's tail is being cut off, where ## expression yields a snug cage grid.newpage() t...
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...stream + * and playing out through that. + * + * Allowing multiple access to /dev/dsp is not required by the OSS API spec, + * but FreeBSD's sound system lets you, which is what this file was written + * for. + */ + +/*** DEFINITIONS ***/ + +struct _SwfdecPlayback { + SwfdecPlayer * player; + GList * streams; /* all Stream objects */ + GMainContext * context; /* context we work in */ +}; + +typedef struct { + SwfdecPlayback * sound; /* reference to sound object */ + SwfdecAudio * audio; /* the audio we play back */ + int dsp_fd; + int fragsize; /* Audio fragment size */ + G...
2009 Apr 01
1
[Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
...256, gb = 0, ba = 256, bb = 0, aa = 256, ab = 0} group = 0 __PRETTY_FUNCTION__ = "swfdec_movie_render" #7 0xf35b8e3a in swfdec_movie_do_render (movie=0xa2a8ea8, cr=0xc3e2c60, ctrans=0xffc31b64) at swfdec_movie.c:1311 child = (SwfdecMovie *) 0xbb5a000 g = (GList *) 0xa37e280 walk = <value optimized out> clips = (GSList *) 0x0 clip = (ClipEntry *) 0x0 ident = {xx = 1, yx = 0, xy = 0, yy = 1, x0 = 0, y0 = 0} __PRETTY_FUNCTION__ = "swfdec_movie_do_render" matrix = {xx = 0.050000000000000003, yx =...
2005 Oct 03
2
grob questions
If I run the following example from: http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf > grid.newpage() > pushViewport(viewport(w = 0.5, h = 0.5)) > myplot <- gTree(name = "myplot", children = gList(rectGrob(name = "box", + gp = gpar(col = "grey")), xaxisGrob(name = "xaxis"))) > grid.draw(myplot) > grid.edit("myplot::xaxis", at = 1:10/11) > grid.edit("myplot::xaxis::labels", label = round(1:10/11, 2)) > grid.edit("myplot::xaxis...
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...ation parameters. All of this is - * naturally supported on 10 driver APIs depending on kernel. So if your - * sound card seems to do weird stuff, that is not my fault. - * Welcome to Linux sound in the 21st century. - */ - -/*** DEFINITIONS ***/ - -typedef struct { - SwfdecPlayer * player; - GList * streams; /* all Stream objects */ - GMainContext * context; /* context we work in */ -} Sound; - -typedef struct { - Sound * sound; /* reference to sound object */ - SwfdecAudio * audio; /* the audio we play back */ - snd_pcm_t * pcm; /* the pcm we play back to */ - GSource ** source...
2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
...fdec_playback.h" +#include "pulse/pulseaudio.h" +#include "pulse/glib-mainloop.h" + +/** @file Implements swfdec audio playback by dumping swfdec streams out + * using pulseaudio streams. + */ + +/*** DEFINITIONS ***/ + +struct _SwfdecPlayback { + SwfdecPlayer * player; + GList * streams; /* all Stream objects */ + GMainContext * context; /* glib context we work in */ + pa_glib_mainloop * pa_mainloop; /* PA to glib mainloop connection */ + pa_context * pa; /* PA context for sound rendering */ +}; + +typedef struct { + SwfdecPlayback * sound; /* reference to s...
2005 Dec 26
8
Add notes to a graph
Hi, I have done a search on this in vain. How can I add a note to the foot of a graph example below |-----------------------| | Title | | -------- | | | my | | | | graph | | | | | | | | ______| | |note: source | |-----------------------| Many thanks Ronnie
2013 Sep 10
1
[LLVMdev] Global Variable Recall
...name from the following code for(Function::iterator i=F->begin();i!=F->end();++i) { BasicBlock*Bb =&*i; GlobalVariable* GV = new GlobalVariable(type,false, F->getLinkage(),0, "F$"+Bb->getName()); GV->setInitializer(Constant::getNullValue (typ)); GList.push_back(GV); } Could I solve that by mapping the global variables in Stringmap? I need to identify the global variable with its name in the IR to be able to load and store its values. Thanks -- * Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computer...
2003 Aug 07
0
spdep error message
...has performed well up until now, but the following code resulted in an error: > load("Panel.90s.ok.R") > attach(Panel.90s.ok) > neighs<-dnearneigh(cbind(x,y),0,50000) > help(nbdists) > dists<-nbdists(neighs,cbind(x,y)) > Weights<-nb2listw(neighs,zero.policy=T,glist=dists) > error.model.rprice<-errorsarlm(log(wells+1)~log(year)+log(area)+log(lag.rprice )+log(marketable+1)+log(prov.rds+1)+log(ind.rds+1)+log(seismic+1)+log(pipeline s+1)+log(min.year)+log(max.year)+log(avg.year),listw=Weights,zero.policy=T) Error in eigen(w, only.values = TRUE) : error cod...
2005 Nov 02
0
Placing a grob in multiple viewports
Hi all, What's the best way of placing a grob into muliple viewports? I've been using code like: plot_grob_matrix <- function(gm, type=deparse(substitute(gm))) { grid <- expand.grid(x=1:nrow(gm), y=1:ncol(gm)) do.call(gList,mapply(function(x,y) editGrob(gm[[x,y]], vp=vp_path(x, y, type)), grid$x, grid$y, SIMPLIFY=FALSE)) } vp_path <- function(row, col, type) { vpPath("layout", paste(type, row, col, sep="_")) } to place a matrix of grobs into a similar looking matrix of viewports (constructed...