Skip to main content
40 votes
Accepted

Make a beautiful Moiré effect

I feel that once you start with Moire patterns, there's no ending. The way I would replicate these is by making a grid into a function (like @JasonB) but also parametrise the angle of rotation into it:...
gpap's user avatar
  • 9,787
29 votes
Accepted

How to plot a bicycle with square wheels

This question is too interesting to resist, so I'll talk about how to analyze the problem. Take a look at sketch above. It describes an arbitrary moment during the rolling. From the kinematics view, $...
Silvia's user avatar
  • 27.6k
25 votes

Make a beautiful Moiré effect

Something like this: ...
Jason B.'s user avatar
  • 68.9k
20 votes
Accepted

For a better animation of the solution from NDSolve

To prevent shaking, try to add ImagePadding and for the other issue, you can fix the vertical plot range. ...
Nasser's user avatar
  • 146k
20 votes
Accepted

Generate random walk on a graph

...
rhermans's user avatar
  • 36.7k
19 votes

Particles bouncing in a 3D box

You can use FoldList to generate evolution of your system. You need a function that propagates your particles in time. Every time you apply your function to state ...
BlacKow's user avatar
  • 6,438
17 votes
Accepted

How to make an Epilog moveable with drag and drop

Related: 14556 and 7547 Using Locator to give you the control you are seeking : ...
Mike Honeychurch's user avatar
16 votes

How to create a spiral using Golden Triangles

Here's a starting point for you: ...
J. M.'s missing motivation's user avatar
16 votes
Accepted

How to merge join two matrixes?

ma = Array[Subscript[a, #1, #2] &, {3, 3, 2}]; MatrixForm[ma] ...
Daniel Huber's user avatar
  • 53.1k
15 votes

Manipulate to GIF

You can do this outside of the manipulate box and show the variable's value as a legend. Also by using fixed image sizes and aspect ratios you can minimize the occurrence of black bars as the ...
Siav Josep's user avatar
15 votes

Construction Steps of Barnsley's Fern

I've got a package that makes dealing with iterated function systems pretty easy. You can download it off of my webspace. That package implements both deterministic and stochastic alorithms to ...
Mark McClure's user avatar
  • 32.5k
14 votes
Accepted

Construction Steps of Barnsley's Fern

After playing with the variables in a Manipulate I came up with these numbers for the arguments of the AffineMap functions. ...
Conor's user avatar
  • 7,449
13 votes

Interactive Mandelbrot Zoomer?

Here is a less quick and dirty version that includes a few more features. To zoom in, you simply click and drag to select a rectangle. Generally, you've got to hit the ...
Mark McClure's user avatar
  • 32.5k
13 votes

Make a beautiful Moiré effect

I like to keep things simple, so I'll skip the letter labels, but include the lines overhanging from the grid: ...
J. M.'s missing motivation's user avatar
13 votes

Generating list with short code

Well, without Table and such: Riffle[Range[9], Range[0, 8]] Or, we can use ...
march's user avatar
  • 23.9k
13 votes

How constrain 2d slider in Manipulate to a specified region?

You can use TrackingFunction to restrict the Slider2D thumb to the desired region: Restrict the thumb to the unit circle: ...
kglr's user avatar
  • 398k
12 votes
Accepted

Particles bouncing in a 3D box

ok, this is cheating but since your gas is non-interacting it works. 3 dimensions or 1 dimensions is the same since the collisions only change momentum in the normal direction, ie we assume point ...
tsuresuregusa's user avatar
12 votes
Accepted

Using Interval Slider in Manipulate for Plot Functionality

This should give you a starting point: ...
Karsten7's user avatar
  • 27.5k
12 votes

For a better animation of the solution from NDSolve

I only post this as a way (without distortion or dealing with multiple scales)to illustrate the initial Gaussian (flat relative to final range) with MeshFunctions ...
ubpdqn's user avatar
  • 62k
12 votes
Accepted

Unexpected Manipulate behavior in 11.1

It is expected and can be reduced to: var = 0; Plot[-3 x^2, {x, 0, var}] Plot[-3 x^2, {x, 0, var}] So the range spec: <...
Kuba's user avatar
  • 137k
12 votes

Avoiding slow evaluations in Manipulate when combining graphics with Show

TL;DR; ...
Kuba's user avatar
  • 137k
12 votes
Accepted

Slider with ticks

1. You can use HorizontalGauge as a control in Manipulate: ...
kglr's user avatar
  • 398k
12 votes

How to create a spiral using Golden Triangles

Edition ...
cvgmt's user avatar
  • 76.6k
12 votes

Manipulate[] with interdependent Locators

Update 2: A variation on RobertNovak`s answer to keep the horizontal axis of the second locator fixed: ...
kglr's user avatar
  • 398k
12 votes
Accepted

Create a Manipulate of a nonlinear transformation of R3

Edit DisplayFunction make such transformation easy construct and also faster. ...
cvgmt's user avatar
  • 76.6k
11 votes

The most simple Manipulate freezes the notebook on v10.1

I had this problem and the solution was to turn off the Suggestions Bar in the preferences.
DamienWontContributeToAITheft's user avatar
11 votes
Accepted

How to make a dynamic plot of a holed circle using "Manipulate"

{minradiusa, radiusb, radiusr} = {.2, .85, 1}; Labeled arrow annotations: ...
kglr's user avatar
  • 398k
11 votes
Accepted

How can I add a vertical spacing in a `CheckboxBar`?

You can wrap CheckboxBar with Style using the option DefaultOptions to modify the ...
kglr's user avatar
  • 398k
10 votes

How to show a time-dependent vector (velocity) with Manipulate?

You can do it thus: Manipulate[ Show[trayectoria, Graphics3D[Arrow[{pos, pos + vel} /. t -> α]]], {α, 0, 10 Pi}]
Feyre's user avatar
  • 8,617
10 votes
Accepted

How to show a time-dependent vector (velocity) with Manipulate?

By defining your kinematics equations as top-level expressions (rather than as functions of the relevant quantities), you invite scoping problems. I recommend working with functions and making the <...
m_goldberg's user avatar
  • 108k

Only top scored, non community-wiki answers of a minimum length are eligible