How to show multiple Y axis on a Parallel Coordinates Plot
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am new to matlab and am using a parallel coordinates plot to visualize a 10 dimensional data set. However the standard parallel coords plot only shows one Y axis. I would like to be able show the axis for each of the 10 attributes so total 10 Y axis placed exactly on the X ticks. I am wondering if this requires copying the existing Y axis . Any guidance would be much appreciated
0 Commenti
Risposta accettata
Jonathan Epperl
il 30 Ott 2012
It's not totally clear to me what exactly you want, visualizing 10-D data sounds impossible to me. Maybe you should post a minimal example of what your data would look like.
Here's a guess: you have a Nx10 matrix, and you want the values of the i-th column displayed along the i-th y-axis. Then maybe subplot could help you:
M = randi(15,[15 10]) % Create some random data
for i=1:10 % for each column
subplot(1,10,i) % 1 axes down, 10 axes across, axis number i
plot(.5,M(:,i),'*k'); % plot your data in the center
set(gca,'XLim',[0 1],'XTick',[],'YGrid','on'); xlabel(i);
end
The last line with set makes the x-axis go from 0 to 1, so the data is in the center, then gets rid of all the X-Ticks and turns on the grid with constant y-values. Does that point you the right direction?
4 Commenti
Jonathan Epperl
il 31 Ott 2012
Good, I'm glad it goes in the right direction. Afaik, there is no way of just copying the axes, you could only create new ones, what subplot is doing, but then you cannot connect the points in different axes to lines, so that's out.
You might want to look around the File Exchange http://www.mathworks.com/matlabcentral/fileexchange/, where there are quite a lot of nifty tools to tweak plots and so on.
Good luck and report back when you need additional help.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!