Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Plotmatrix with uniform X and Y scales (same xlim and ylim)

86 views
Skip to first unread message

Claudio_Villegas

unread,
Dec 14, 2007, 3:12:41 AM12/14/07
to
Greetings :)

I am using the plotmatrix function for matrices of 13 variables and around 1700 points. Unfortunately the distribution of this data is very unusual, therefore the scales (xlim and ylim) of the plots come out very different.

Since i am more interested on using the plotmatrices as a quick guide to glance at the covariance structure, i chose to sacrifice legibility of the cloud of points for uniform xlims and ylims. Unfortunately, i could not find any easy manner to do so other than manually clicking and editing the scales. And since it seems every time i edit a single number Matlab reprocesses the whole plot (because my old processor goes wild with activity), this is bound to take a long, long time :(

Thanks in advance for any help =)

Jos

unread,
Dec 14, 2007, 6:38:40 AM12/14/07
to
Claudio_Villegas <claudio_v...@hotmail.com> wrote in
message
<16113217.1197619991...@nitrogen.mathforum.org>...


here is a suggestion to equal the x-limits:

ah = get(gcf,'children') ;
xlim = get(ah,'xlim') ;
xlim = cat(1,xlim{:}) ;
set(ah,'xlim',[min(xlim(:,1)) max(xlim(:,2))]) ;

hth
Jos

Claudio_Villegas

unread,
Dec 15, 2007, 8:19:51 AM12/15/07
to
Thanks for the tip Jos, although command lines are still out of my reach. I stumbled upon a better workaround, probably unintentional from the matlab programmers too:

1 - select one scatter plot (xlim and ylim appear below);
2 - press ctrl+a (select all);
3 - change parameters;
4 - wait for processing if your cpu is slow or the data set is too large;
5 - ???
6 - PROFIT!

0 new messages