Displaying 20 results from an estimated 20000 matches similar to: "Loop Delaying"
2005 Oct 04
6
Animation of Mandelbrot Set
Hi,
I was playing with Mandelbrot sets and come up with the following code, I
thought I would share:
library(fields) # for tim.colors
library(caTools) # for write.gif
m = 400 # grid size
C = complex( real=rep(seq(-1.8,0.6, length.out=m), each=m ),
imag=rep(seq(-1.2,1.2, length.out=m), m ) )
C = matrix(C,m,m)
Z = 0
X = array(0, c(m,m,20))
for (k in 1:20) {
Z =
2005 Oct 16
2
Animated lissajous
Here's some code to make lissajous dance. I've attached a small sample
GIF.
Cheers,
Rob Steele
robsteele at yahoo dot com
plot.lissajous = function(omega.x, omega.y, delta = 0, num.thetas = 200)
{
thetas = seq(0, 2 * pi, length = num.thetas)
xs = sin(omega.x * thetas + delta)
ys = cos(omega.y * thetas)
plot(xs, ys, type = 'l', lwd = 3, ann = FALSE, axes = FALSE)
}
2005 Jul 27
5
HOW to Create Movies with R with repeated plot()?
Dear R-helpers,
Is it possible to create a type of 'movie' in R based on the output of
several figures (e.g., jpegs) via the plot() function. I obtained dynamic
results with the plotting function and would like to save these as a movie
(e.g., avi or other formats)?
Regards,
Jan
_________________________________________________________________
Ir. Jan Verbesselt
Research
2001 Mar 20
5
animation?
I was wondering if anyone out there has created a series of images (e.g.
jpegs) using R, then animated them on a web page. I have looked around a
bit and it seems fairly complicated. One approach that seems sensible is
to use a java script that displays the list of images. I have only used
html on web pages before so I don't know how to use java...
Ideally the final result is easily ported to
2006 Apr 07
4
file_column and animated gifs
hi,
is it possible to resize animated gifs with file_column?
if i upload an animated gif file with file_column than the animation no
longer exists...
--
Posted via http://www.ruby-forum.com/.
2005 Oct 06
3
playing with R: make a animated GIF file...
Hello all
I am playing with R for to make a animated GIF.
any suggestions, improvements are welcome :-)
case somebody could help me, i thanks!
Cleber N. Borges ( klebyn )
my objective:
(steps TODO)
-------------------
1) to save PNG files;
-----> i don't know the best way to make this;
2) transform the PNG files into GIF files (easy! no problem! ... i
think ...)
3)
2008 Dec 04
2
Does animated gif will work properly using RMagick?
Dear all,
I have used RMagic to read and write a image while uploading. An
animated gif was read from my local machine and was written in my images
folder using RMagick. But the animated gif which i read was witten in my
folder without animation. What should i do to write the gif image with
animation.
Here is my code to read and write image while uploading.
image = params[:image][:blob]
2004 Feb 27
2
a loop question
I want to get three .gif image files test.1.gif,
test.2.gif, & test.3.gif by using a loop. The code I
tried is like this:
x=c(0, 1, 2, 3, 4)
y=c(1, 2, 3, 4)
for(i in 1:3)
{
x11()
jpeg("test.i.gif")
plot(x, y)
dev.off()
}
but I only could get one image file, test.i.gif. How
can I get three image files?
Thanks.
2010 Sep 08
2
subbing a string vector for another string vector
I have a data frame with two columns:
image pattern
1 http://$IMAGE_ID$ www.url.com/image.jpg
2 $IMAGE_ID$ http://www.blah.com/image.gif
...
I want to replace "$IMAGE_ID$" with the corresponding entry in the pattern
column such that the result would appear as follows:
url
http://www.url.com/image.jpg
2011 Jul 28
2
Animated gif or something similar in R?
I'm have a (minor) problem and a question.
Problem: The following code creates 5 clusters of dots of different
colors. However, I need the second call outside the data.frame call to
get the colors to change for some reason. I assume there's an error in
the data.frame() call, but I don't know what.
Question: Is there is a way to cause the resulting graphic to rotate on
it's
2011 Jun 15
1
animation error
Hello,
While running the following code I encountered a bit of a funny error.
First the code:
library(animation)
ani.options(convert = shQuote('C:/Program
Files/ImageMagick-6.7.0-Q16/convert.exe'))
plot.ani<-function() {
for (ts in 1:730){
dat<-read.table(paste("c:/temp/ConcProfile_",ts,".txt",sep=""),
2006 Jan 11
8
[scriptaculous] Intermitently Disabling Clicks
I have button that slides down a menu using Effect.BlindDown, but the
function that slides it down also makes it so that the opening link
now slides the menu back in.
If the user double clicks the link (thuse opening & closing
immediatley) the slide animation breaks, then will not extend
correctly (but no JS errors). How would you go about stopping this
happening?
Also, is it just me or is
2009 Jul 11
6
conditional link_to_remote not re-rendering
I have an int, ''floorfrozen,'' in my table, ''channels'' that can take a
value of 0 or 1.
When I render a page, an image in a link_to_remote is called
differently depending what the value of channel.floorfrozen is, in a
partial, as follows:
<% if @channel.floorfrozen %>
<%= link_to_remote image_tag("/images/icecube.gif"), {:url =>
2001 Oct 20
1
Animating a persp plot: non-constant scaling?
Hi all,
I'm making an animation of a rotating persp plot of some data. It's easy,
really: I just plot the persp in a loop over the theta parameter, saving
each plot, and then chain them together with ImageMagick (as suggested on
Paul Johnson's R-tips page).
But... when you run the animation, because each graph is individually
re-scaled, the image is not the same size in each
2011 Mar 18
1
points() rendering points outside of input
As a followup to pi-day, I attempted to make a .gif of a simulation
based estimation of pi by plotting points inside a single quadrant of
a circle (a la?http://www.drewconway.com/zia/?p=2667 ). ?When
rendering the individual x,y pairs with points() I intermittently see
points crop up around (2,0.5) but the input values for x and y are
bounded between 0 and 1.
square<-structure(c(0, 0, 1, 1, 0,
2014 May 13
2
[PATCH] isohybrid: fix overflow on 32 bit system
On 2014?05?12? 22:38, H. Peter Anvin wrote:
> That is because it needs to use fseeko() and use off_t.
Do you mean it does need a patch for isohybrid.c. And the patch looks like:
#if _FILE_OFFSET_BITS == 64
fseeko(...)
#else
fseek(...)
Regards,
Kai
>
> On May 11, 2014 11:53:17 PM PDT, Kang Kai <Kai.Kang at windriver.com> wrote:
>> On 2014?05?12? 10:49, H. Peter
2006 Jan 30
5
url for image in css
Hi,
I''d like to call a background image for every item in a list. Something like
div#nav li.submenu {background: url(dropmenu.gif) 95% 50% no-repeat;}
the image is in public/images/dropmenu.gif
Thanks,
Peter
2009 Jul 21
2
animated grid graphics
I need to make a fairly complex animated graphic and decided to use grid for it.
A very simple example of what I need:
##==============================================================================
library(grid)
grid.newpage()
pushViewport(plotViewport())
pushViewport(viewport(xscale = extendrange(c(0, 100)),
yscale = extendrange(c(0, 100))))
grid.xaxis()
grid.yaxis()
2014 May 12
2
[PATCH] isohybrid: fix overflow on 32 bit system
On 2014?05?12? 10:49, H. Peter Anvin wrote:
> On 05/11/2014 06:56 PM, Kai Kang wrote:
>> When call isohybrid with option '-u', it overflows on a 32 bits host. It
>> seeks to 512 bytes before the end of the image to install gpt header. If
>> the size of image is larger than LONG_MAX, it overflows fseek() and
>> cause error:
>>
>> isohybrid:
2015 Feb 23
2
[LLVMdev] LLVM IR in DAG form
I don't want to get into the debate w.r.t. which IR style is better -
ask me over beer if you care about my opinions - but as an FYI, there
are serious proposals being worked on to introduce some notion of memory
def-use edges to help in analysing memory operations. I don't think
we've settled on a concrete proposal yet, but I wouldn't be surprised to
see something in the