8

Is there a way to make a z-stack of 2-D images, at the isometric view in 3-D, of points in each 2-D image projecting downwards to the next slice of 2-D images? I am certain there is a technical term for this, but I just don't have the vocabulary to find the most pertinent answer. Would someone be able to point me in the right direction?

Below, I've drawn an "idea" of what this looks like. I'd love to know if this is possible without re-inventing wheels for matplotlib or other Python plotting libraries.

enter image description here

batlike
  • 668
  • 1
  • 7
  • 19
  • 1
    Interesting problem. Also, I think you should include some sample data. – Quang Hoang Oct 16 '20 at 14:56
  • 2
    @batlike Please spend the three minutes it takes to learn how to [share a pandas dataframe](https://stackoverflow.com/questions/63163251/pandas-how-to-easily-share-a-sample-dataframe-using-df-to-dict/63163254#63163254) using `df.to_dict()` – vestland Oct 16 '20 at 17:46
  • Thanks, I realize it is not easy to copy/paste based on my format above. Thank you for this practice @vestland – batlike Oct 16 '20 at 17:51
  • @batlike No problem! It would be even better to do `df=pd.DataFrame()` and include that it a runnable code snippet. But it's at least a start, and I switched my downvote to an upvote because of it =D – vestland Oct 16 '20 at 18:06
  • I think this is possible by messing around with [axis transforms](https://matplotlib.org/stable/tutorials/advanced/transforms_tutorial.html), specifically getting a transform which has some linear shear. – Rotem Shalev Mar 16 '21 at 22:48

1 Answers1

0

The original question was posed for doing so in Python. After many months of searching, I found a way to do so in TikZ. I cannot consider this my original work, it is largely based on Pascal Seppecher's interaction diagram found here.

To reconstitute my question above, one can use the above template to define:

  1. Agents of different shapes, specify fills
  2. The frame (plane) which they reside in
  3. Flows of directed edges that communicate how agents interact with each other in each plane
  4. Inter-plane interaction flows

enter image description here

https://texample.net/tikz/examples/interaction-diagram/

batlike
  • 668
  • 1
  • 7
  • 19