Prev: plotyy and timeseries
Next: handling two figures in GUI
From: us on 31 Mar 2010 10:12 "Bui Yuki" <buihongha(a)gmail.com> wrote in message <hovkkt$ftk$1(a)fred.mathworks.com>... > > works as expected here (r2010a)... > > which ML ver do you have(?)... > > > > us > > Hi us, > > Thanks for your reply. I am using Matlab 7.01. As I explained in my reply to Oliver, the figure looks fine; however, the colorbar is not. If the above code works well in Matlab(r2010a), my problem may be because of Matlab version. > > Bui hmm... this may be a ...visual... problem... % try this and tell CSSM what you see... x=1:1:100; y=1:1:100; data=1:1:100; scatter(x,y,500,data,'.'); caxis([0.0 100]); colormap(jet(5)); % <- change color reps... colorbar; us
From: Bui Yuki on 31 Mar 2010 10:21
"us " <us(a)neurol.unizh.ch> wrote in message <hovl7l$o7q$1(a)fred.mathworks.com>... > "Bui Yuki" <buihongha(a)gmail.com> wrote in message <hovkkt$ftk$1(a)fred.mathworks.com>... > > > works as expected here (r2010a)... > > > which ML ver do you have(?)... > > > > > > us > > > > Hi us, > > > > Thanks for your reply. I am using Matlab 7.01. As I explained in my reply to Oliver, the figure looks fine; however, the colorbar is not. If the above code works well in Matlab(r2010a), my problem may be because of Matlab version. > > > > Bui > > hmm... this may be a ...visual... problem... > > % try this and tell CSSM what you see... > x=1:1:100; > y=1:1:100; > data=1:1:100; > scatter(x,y,500,data,'.'); > caxis([0.0 100]); > colormap(jet(5)); % <- change color reps... > colorbar; > > us Hi us, Thanks for quick reply. I tried your code in my Matlab and got the same result as mine. Perhaps, I need to update my Matlab version? |