Challenge - Change my avatar colors
古いコメントを表示
The spy function without arguments does my avatar picture, white background and blue "spy".
- Change the background color
- Change the color of the "spy"
Tell me the code to perform the two tasks?
Please don't post the code if you appear on the first page of the Contributors or you are well known in the community for your MATLAB skills.
The prize is 4 reputation points, first answer that satisfy the requirements wins, next ones win 1 reputation point if they do the same but in some other way.
PS: The code is very simple, just two small lines.
The Challenge is complete, congratulations to the winner Nathan Greco and to Ian Wood for trying.
My code is this:
spy %draw the spy
set(gca,'Color',[1 0 0]) %change the background color
set(get(gca,'children'),'color',[1 1 0]) %change the "spy" color
4 件のコメント
Oleg Komarov
2011 年 7 月 1 日
I am gonna create a fake account...mUahHAUhuAhua
Paulo Silva
2011 年 7 月 1 日
Oleg Komarov
2011 年 7 月 1 日
But think about all the broken hopes....MuhsuhAHuahua
Paulo Silva
2011 年 7 月 1 日
採用された回答
その他の回答 (1 件)
Ian Wood
2011 年 7 月 1 日
load spy
colormap(hot)
10 件のコメント
Paulo Silva
2011 年 7 月 1 日
Ian Wood
2011 年 7 月 1 日
Doesn't using a colormap change all of the colors in one succession?
Paulo Silva
2011 年 7 月 1 日
Paulo Silva
2011 年 7 月 1 日
Paulo Silva
2011 年 7 月 1 日
Ian Wood
2011 年 7 月 1 日
is it possible to do with the colormap function?
Paulo Silva
2011 年 7 月 1 日
Nathan Greco
2011 年 7 月 1 日
I think that would work of spy consisted of a matrix of (image) data, rather than just some plotted points.
Paulo Silva
2011 年 7 月 1 日
Ian Wood
2011 年 7 月 2 日
That's ok, I was just wondering if I was on the right track. Thanks for the code :)
カテゴリ
ヘルプ センター および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!