All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
63 views

Pixel-wise image manipulation

I downloaded an image from a website and imported it to Mathematica ...
8
votes
2answers
393 views

How do I remove artifacts from my ContourPlot3D Valentine?

My version (below) of the "Valentine Formula" that appeared in today's New York Times, has some ugly artifacts that don't appear in the NYT (Java) version: How do I remove these artifacts? ...
5
votes
0answers
85 views

Efficient Image Export [closed]

I am trying to export around 10000 plots from Mathematica in order to compile them into an animation with another program. Using the following, where "frames" is the list of plots ...
0
votes
3answers
123 views

Can `PlotRange` of x-axis automattically determine y range?

PlotRange can specify the plotting range in each direction. Let's say you have a large set of data and you may want to plot parts of it by specifying the ...
5
votes
4answers
78 views

Non vector graphics display in a notebook

When I generate multiple scatter plots with a large number of points and display them as output, the notebook becomes very sluggish (I assume that this is because each plot has a huge number of points ...
3
votes
0answers
82 views

Getting rid of discontinuities in plots caused by square roots, logarithms, `Arg`, etc

I encounter this very often, here is just one recent example: I want StreamPlot[ReIm[Sqrt[x+I y]],{x,-3,3},{y,-3,3},StreamStyle->"Line"] and because of square ...
1
vote
1answer
34 views

How to control `PerformanceGoal` at `ListContourPlot`

I am using ListContourPlot to plot a list of points. I am using the PerformanceGoal option inside of ...
2
votes
0answers
142 views

When does a good graphics card help in Mathematica

I've got an NVIDIA GTX 960 and 32G RAM on my desktop. I was just wondering if it really does any benifit to the usage of Mathematica compared with some integrated card in high-end intel chips. I ...
11
votes
2answers
387 views

Avoiding slow evaluations in Manipulate when combining graphics with Show

I want to figure out how to combine several graphics in manipulate such that only the ones that change are recomputed. I looked into the tutorials on Advanced Manipulate, but couldn't figure out how ...
3
votes
0answers
60 views

HighlightGraph without redrawing the underlying graph?

I have an animation that generates a graph, then highlights different points on it over time. I use HighlightGraph. The graph is very big, and this seems to bog ...
5
votes
1answer
162 views

Effective Fading Trail Effect in Mathematica

I'm trying to track the movement of a bunch of particles by adding fading trail effect and dynamically update particle's position. However, when I need to track several hundreds of them, drawing may ...
14
votes
4answers
1k views

How to generate approximately equally spaced points efficiently

I don't very content with current method.So a better solution is expected still.I hope it meet two conditions in following. That space is approximately equivalence. We can control how many points to ...
16
votes
2answers
637 views

Allow multiple GUI elements to react dynamically to interaction with a single element

I was looking at how to reproduce the interactivity in this visualization (the layout can be done like this). Hovering a node with the mouse highlights all edges that are connected to it. How can we ...
3
votes
1answer
314 views

Faster alternative to Rasterize

I'm trying to do something similar to the genetic algorithm approximation of Mona Lisa with colored polygons (a brief description could be found here). With a population size of 60, each iteration ...
19
votes
2answers
986 views

Fractal basins of attraction in a Magnetic Pendulum

I am trying to write a Mathematica program that realizes a graphical approximation of the basins of attraction in a Magnetic pendulum subject to friction and gravity, in which the three magnets are ...
1
vote
1answer
101 views

Fastest way for data input into StreamPlot function

I'm interested in looking at graphing the phase portraits of 2x2 autonomous ODEs, and I'm using the StreamPlot function. Here is one simple example: ...
1
vote
0answers
82 views

Fast Creation of Label Matrix for Use With ComponentMeasurements?

I am taking a lot of measurements from regions of interest in microscopy images and am finding that generating binary masks to use with ComponentMeasurements is rather slow (at least it's slow the way ...
1
vote
1answer
195 views

Speed Up Sampling of Perimeter of Polygon

I have a polygon whose vertices (points) are defined by some image coordinates that I have manually selected. The polygon is used to create a mask for a region of interest in a microscopy image. ...
2
votes
3answers
132 views

Strong glitch with Evaluate in Manipulate

I'm experiencing a strong evaluation problem for a Manipulate box and I can't find the best solution yet. Here's a MWE to show the glitch : ...
14
votes
3answers
622 views

How to compute the boundary of a group of ellipse efficiently?

Update1 I discovered that the bountary of a series of ellipses consists of the following three parts Part (I): the first ellipse's effective black-segment; Part (II): the effective envelope-...
1
vote
1answer
215 views

Problem with convergence of limiting value in Manipulate

I created a nice Manipulate box of the magnetic field outside and inside a spherical shell placed in an homogeneous magnetic field. The code is working great, but it has a problem at a limiting value,...
13
votes
1answer
485 views

Wiggly and imprecise animated gif output

Trying to make animated gif of zooming into famous Ford circles. With the code ...
26
votes
2answers
1k views

Efficiently generating 2-D Gaussian random fields on the sphere

Context A couple of years ago I posted this question for an efficient code to generate an n-D Gaussian random field (sometimes called processes in other fields of research), which has applications in ...
0
votes
1answer
189 views

Animating a Large Graphic Aborts, but Dynamic Works Fine

I'm trying to animate a large Graphics output, and it is returning $Aborted. I'm confused because when I use Dynamic and Slider, the graphics output is exactly what I want, i.e., I can 'animate' the ...
11
votes
2answers
797 views

Rendering thousands of points

I am trying to render an image with some 120,000 Points. Technically it's just 10,000 points, plus their reflection, plus 5 rotations of both of those sets, but I'm ...
4
votes
2answers
426 views

Animate skips frames and hard to control speed.

I browsed similar questions related to Animate jerkiness like here, but haven't found the right options to control animation rate while also displaying all frames: ...
0
votes
2answers
210 views

Performance Issue When Using Manipulate

Any help would be appreciated! I've been attempting to manipulate the graphics for time t. We need to have Di set to 11.2, however when it is set to any value greater than .1, we see a great deal of ...
28
votes
1answer
581 views

Minesweeper: How to Dynamic a lot of graphics with high-speed?

Recently I've implemented Minesweeper in Mathematica. ...
3
votes
1answer
436 views

2D Fourier transform of a few (4) disjoint discs on a plane

I'd really appreciate some advice. Short Version I'm trying to calculate the following $$ \psi(X,Y,z=d)=\underset{aperature}{\iint}\psi(x,y,z=0)e^{-i\frac{k}{d}\left(xX+yY\right)}dxdy\\\psi(x,y,z=0)=...
39
votes
3answers
3k views

Smooth Peter de Jong attractor

Today I was playing with Peter de Jong attractor. At the bottom of the page I've linked there are beautiful examples like: My attempts are not so great: It is around 10^5 points. For more than 5*10^...
21
votes
3answers
584 views

Is there a better way to repeatedly add elements to a Graphics(Box)?

Consider simple example where a set of points is generated and some are displayed. ...
15
votes
2answers
2k views

Bresenham's line algorithm

Bresenham's line algorithm is producing discretized line for given two points for purpose of plotting for example. Like that: I have to stress that I'm interested in positions, not a plot. ...
8
votes
1answer
192 views

Why does a heavy background slow LocatorPane from updating, even if only the locators are Dynamic?

I'm having some trouble getting a dynamic plot to operate efficiently, and I think I've tracked down at least part of the problem to some pretty weird behaviour on the part of ...
5
votes
4answers
492 views

Using Locators in a non-standard Manipulate code

I'm trying to adapt Nasser's method for using a control variable inside Manipulate to selectively choose what part of the code should be recalculated depending on the controls changed (see this ...
1
vote
1answer
359 views

Using Manipulate with a control variable for selective recalculation

I'm trying to adapt Nasser's method for using a control variable inside Manipulate to selectively choose what part of the code should be recalculated depending on the controls changed. I've also read ...
0
votes
2answers
357 views

Modified ListPlot, how to speed it up

I use Mathematica almost every day for several jobs (computations, graphics, etc.). I admit that this software contains much more options (capabilities) than one user may need. Well, not always since ...
5
votes
1answer
543 views

How to speed up multi-curve plotting?

The following example is a very simplified version of the problem I'm working with, though I hope it still captures the essentials. First, the definitions: ...
27
votes
5answers
1k views

Compiling ColorFunction for faster complex phase-amplitude plots

I have gotten into the habit of plotting complex-valued functions on a plane using a color-function along the lines of Function[{z}, Hue[Arg[z]/(2 π), 1, Abs[z]]]. ...
10
votes
1answer
2k views

Exporting a sequence of graphs as video efficiently

I have a sequence of graphs that are being created within Mathematica which I'm exporting to create an animated plot of the graph, as follows. ...
16
votes
1answer
581 views

Efficiently filling area with disks located at certain points

Starting from a set of points, I want to fill an area using disks. Each disk's center should be one of the points and the disks should not overlap. I've managed to write a function that, given a list ...
2
votes
3answers
156 views

Timing display of Graphics (Front End timing)

I want to know how much wall-time it takes to display a Graphics For example this one: ...
28
votes
5answers
6k views

Making fractals with Mathematica

I recently saw this post on math.stackexchange and was curious as to how to generate the image in Mathematica. I tried the following naive approach; however, it is extremely slow. ...
20
votes
2answers
1k views

How to quickly calculate intersections of filled curves?

I am trying to quickly calculate the intersection of polygons with more than 6,000 points. A compiled solution would be preferable. Here is one example of the problem: ...
6
votes
2answers
223 views

Control which variables get embedded inside Manipulate

While trying to analyse several different datasets I got what I thought was a good idea: define a "function" that returns a Manipulate object. But this has some ...
10
votes
1answer
457 views

Speed up DensityHistogram rendering (display)

When I tried to present some pre-calculated density histograms inside Manipulate I noticed that the display of DensityHistogram is extremely slow. Here is a simple ...
84
votes
9answers
17k views

How to make an inkblot?

How to effectively create a polygon that looks like a realistic inkblot? So far, I could come up with this (borrowing from Ed Pegg Jr.'s Rorschach demonstration): ...
70
votes
6answers
14k views

How can this confetti code be improved to include shadows and gravity?

Here's some confetti: ...
61
votes
4answers
4k views

Speeding up this fractal-generating code

I used the code below (which is a sample from this gist containing more similar code) in my answer to my own question about Mandelbrot-like sets for functions other than the simple quadratic on Math....