Linked Questions

1
vote
0answers
60 views

In a list of Disk, how to efficiently delete Disk which are close to other Disk? [duplicate]

I want to draw pictrue like this: My code is: ...
525
votes
19answers
130k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
79
votes
11answers
17k views

How to check if a 2D point is in a polygon?

Background: I use code from An Efficient Test For A Point To Be In A Convex Polygon Wolfram Demonstration to check if a point ( mouse pointer ) is in a ( convex ) polygon. Clearly this code fails for ...
143
votes
4answers
24k views

How to create word clouds?

Word clouds are rather useless fancy and visually appealing plots, where words are plotted with different sizes according to their frequency in a corpus. Many applications exist out there (Wordle, ...
48
votes
7answers
3k views

Character edge finding

The following line of code finds the edge of a character: ...
24
votes
3answers
2k views

Uniformly distributed n-dimensional probability vectors over a simplex

What's the right way to generate a random probability vector $p={p_1,\ldots,p_n} \in {(0,1)}^n$ where $\sum_i p_i=1$, uniformly distributed over the $(n-1)$-dimensional simplex? What I have is ...
16
votes
3answers
735 views

Generate randomly sized non-overlapping disks?

I need to generate an image of $n$ randomly sized but non-overlapping blobs in a fixed rectangular region; for example, a square of 300 pixels. The blobs could be disks to keep things simple. The ...
2
votes
3answers
1k views

Random non-overlapping disks in a square

I've found a nice code snippet by @belisarius from this question, that I'll reproduce here for reference: ...
14
votes
1answer
770 views

How to recreate a certain word cloud

This is my current method: ...
4
votes
1answer
1k views

Plotting random circles in a square

How can we draw 20 circles which have random radius in a specified range, with random positions. All centers must be in a square with side=10 (for example centimeter): every overlapping between any ...
6
votes
1answer
217 views

The unexpected behavior of region calculate

Bug introduce in version 10 and presist in 11.2 In my this answer,I get some overlapped disk like this placed with red arrow point out But actually that function of ...
5
votes
1answer
109 views

Randomly distributed circles inside an annulus

With the following code: ...