3
$\begingroup$

Is it possible to automatically cascade graphics or images in MMA? It seems to me that most of the built-in graphic functions have a gridded style, e.g., GraphicsGrid, GraphicsRow, and GraphicsColumn. The best approach that I have found so far is to use ImageCompose and then systematically change the overlay position. Can anyone think of a more straightforward way to do this?

By cascading, I mean a structure like this: enter image description here

$\endgroup$
  • $\begingroup$ Show[ . . . ]? (Without more details about what you mean by "cascade", these two suggestions are the best we can do. Can you explain what you mean?_ $\endgroup$ – march Jun 23 '16 at 16:12
  • $\begingroup$ I don't think they have any options for automatically cascading the placements, right? So in your opinion, at the end, it comes to programming the positions manually? $\endgroup$ – MathX Jun 23 '16 at 16:17
  • $\begingroup$ @march does this image help? Maybe "cascading" can be defined as "angled grids with a previously-defined overlap"? $\endgroup$ – MathX Jun 23 '16 at 16:25
  • 2
    $\begingroup$ Are these plots going to be transparent so you can see the ones behind? Or are you actually wanting the plots to open in different windows in this cascaded form? (If the former, my best guess is you need to hard-code it. There's no built-in function as far as I know.) $\endgroup$ – march Jun 23 '16 at 16:26
  • 2
    $\begingroup$ Just slightly related: FrontEndTokenExecute["StackWindows"] $\endgroup$ – Kuba Jun 23 '16 at 17:22
6
$\begingroup$

This would reproduce the picture you show in the question:

With[{off = 30},
 Do[
  CreateDocument[{Plot[Sin[i x], {x, 0, Pi}]}, 
   WindowSize -> {300, 200}, WindowOpacity -> .7, 
   WindowMargins -> {{100 + off i, Automatic}, {Automatic, 
      10 + off i}}],
  {i, 1, 10}]]

frames

I added opacity as per the comment.

| improve this answer | |
$\endgroup$
  • $\begingroup$ This works. Great, Thanks! $\endgroup$ – MathX Jun 23 '16 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.