I am trying to create a figure containing 3 subplots with 3d-scatterplots. All the scatterplots contain the same data, but I want to plot them using different azimuthal angle and elevation as is described in this question.
Because I have a large dataset, I would like to scatter the data only once instead of for every subplot individually and then use
ax.view_init(elev=XX., azim=YY)
on each subplot separately.
Is there a way to 'share the scatter data between subplots'?
This is more or less how I imagine the code to work:
- read in data
- create 3 empty subplots
- scatter the data for first subplot
- copy scattered data for second and third subplot
- apply different angles with ax.view_init()