I need to visualize some complex multivariate datasets and the preferrable choice is to use a modification of parallel axis visualization, using stacked 2D plots, where each plot maps a degree of freedom/model parameter and data points belonging to the same data sets should be interconnected across different plots. I am attaching a conceptual sketch. How could I implement it in matplotlib
?
Stacked 2D plots with interconnections in Matplotlib
680 views Asked by maurizio At
2
There are 2 answers
0
On
A solution could be based on matplotlib's 3D capabilities. You can use Axes3D.plot_surface
to plot the axes, and user scatter and line plots for the rest.
To have a rough idea, this could be a possible solution in matplotlib using
Axes3D
Update
Creating three different axes is possible. One has to add the axes and make the upper ones transparent (
ax2.patch.set_alpha(0.)
). Then the grid has to be turned off (ax.grid(False)
) and the panes and lines that we don't need set invisible.However, I have no clue how to draw a connection with between the axes. The 2D approach of
matplotlib.patches.ConnectionPatch
does not work for 3D axes.