How to change the default background color of a Smith Chart to white?

10 views (last 30 days)
I have generated a plot of the smith chart using the command smithchart. However, the default background is gray. Can the gray background be changed to a white one from the command line? If so, what command should I use?
Thanks
Floyd

Accepted Answer

Mischa Kim
Mischa Kim on 11 Feb 2014
Hello Floyd, yes it can. Insert
myfigure = figure('Color',[1 1 1]); % [1 1 1] corresponds to "white"
right before smithchart command.
  4 Comments
Floyd Haylock
Floyd Haylock on 11 Feb 2014
Edited: Floyd Haylock on 11 Feb 2014
Hi Mischa - with phone support, I got it to work using the following commands and order:
smithchart; set(gcf,'Color',[1 1 1]);
Floyd Haylock
Floyd Haylock on 12 Feb 2014
Edited: Walter Roberson on 30 Nov 2015
Mischa, the original piece of code that I had was as follows, where s11mat and s22mat are complex data:
figPos = [200 200 500 500];
fH = figure('Color',[1 1 1]);
set(fH, 'Position',figPos);
s11 = mean(s11mat,2);
s22 = mean(s22mat,2);
aH = smithchart; hold on;
set(aH,'LineWidth',1,'LineType','-','Color',[0.7 0.7 0.7],...
'LabelSize',fontSize,'LabelColor',[0 0 0],'Type','ZY');
set(findall(gcf,'type','text'),'fontName','Times New Roman')
[s11h,~] = smithchart(s11);
[s22h,~] = smithchart(s22);
FYI, the second piece of code you wrote provided the result that I was looking for.
Thanks

Sign in to comment.

More Answers (0)

Categories

Find more on Visualization and Data Export in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!