Displaying 2 results from an estimated 2 matches for "gwidth".
Did you mean:
width
2007 Sep 09
1
Sweave figure aspect ratio
Hello,
using Sweave, is there any option to preserve the
original aspect ratio of plots generated from R code?
Consider this Sweave chunk:
<<test,echo=F,fig=T,width=2,height=2>>=
x <- 1:10
y <- sin(x)
par(mar=c(4,4,0,4))
plot(x,y,
xlab="x label",
ylab="y label"
)
@
In Latex, I want to produce a plot of width 2 but
don't care about the
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...rn ds->surface->pf.bytes_per_pixel;
}
typedef unsigned long console_ch_t;
diff --git a/curses.c b/curses.c
--- a/curses.c
+++ b/curses.c
@@ -97,13 +97,13 @@
}
}
-static void curses_resize(DisplayState *ds, int w, int h)
+static void curses_resize(DisplayState *ds)
{
- if (w == gwidth && h == gheight)
+ if (ds_get_width(ds) == gwidth && ds_get_height(ds) == gheight)
return;
- gwidth = w;
- gheight = h;
+ gwidth = ds_get_width(ds);
+ gheight = ds_get_height(ds);
curses_calc_pad();
}
@@ -169,8 +169,8 @@
clear();
r...