I wish to plot three rectangulars with the same area in a grid page same as below one. How can I do that?
Asked
Active
Viewed 65 times
2 Answers
1
Here is an example for $n =60$. Of coure, $n = 4$ does also work.
n = 60;
a = Divisors[n];
b = n/a;
Graphics[{
FaceForm[], EdgeForm[Black],
MapThread[Rectangle[{0, 0}, {##}] &, {a, b}]
}]
Henrik Schumacher
- 106,770
- 7
- 179
- 309
0
An alternative way using Divisors with RectangleChart:
n = 60;
RectangleChart[Transpose[{#, n / #} & @ Divisors[n]],
ChartLayout -> "Overlapped", ChartStyle -> FaceForm[], Axes -> False]
kglr
- 394,356
- 18
- 477
- 896



GraphicsandRectangle? – C. E. Sep 30 '18 at 08:38