Filter löschen
Filter löschen

How to have smithPlot with outer area with white colour?

12 Ansichten (letzte 30 Tage)
Araz Garaz
Araz Garaz am 19 Feb. 2024
Kommentiert: Jonas am 22 Feb. 2024
Hi
I was using this code for years giving me perfectly fine smith plots with white colour )inner, outer and background).
figure
sm = smithplot(gca);
hold on
% Set the background color of the outer area to white
ax = gca;
set(gcf, 'Color', 'white');
% Rest of your code
sm.ArcTickLabelVisible = 0;
sm.CircleTickLabelVisible = 0;
sm.Marker = {'+'};
sm.GridBackgroundColor = 'w';
sm.TitleTopFontSizeMultiplier = 1.75;
sm.GridLineWidth = 1;
I recently upgraded to MATLAB R2024a, and same code gives me smith plot with grau outer area, although I command for a white one.
Any recommnedation on this ?
Thanks

Akzeptierte Antwort

Jonas
Jonas am 21 Feb. 2024
Bearbeitet: Jonas am 21 Feb. 2024
weird function. i never used it before. but setting the Figure color before plotting with the smithplot seems to use the background color of the figure. when using smithplot before setting the color, the background cannot be adjusted anymore
fig = figure;
fig.Color = 'r'; % Change 'r' to your desired color
% Create a Smith chart
s = smithplot(rand(1,10));
fig = figure;
% Create a Smith chart
s = smithplot(rand(1,10));
fig.Color = 'r'; % Change 'r' to your desired color
  2 Kommentare
Araz Garaz
Araz Garaz am 21 Feb. 2024
haha, yes it may sound a bit weird figure if you are not fimiliar with, it is an RF function, thanks for your answer!
Jonas
Jonas am 22 Feb. 2024
maybe a nice way to draw mandalas :D
happy to help!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Visualization and Data Export finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by