Create Polar Axes in Tiled layout

23 views (last 30 days)
F Schmid
F Schmid on 3 Jan 2023
Answered: F Schmid on 3 Jan 2023
I am trying to include a polar axes into a tiledlayout, and change some stuff to the axes. Unfortunately I am not able to include a polaraxes into my tile. The second plot is supposed to be in the tile below.
t = tiledlayout(2,1);
nexttile;
plot(rand(10),rand(10))
nexttile;
plax = polaraxes();
plax.RDir = 'reverse';
polarplot(plax, rand(10),rand(10));

Accepted Answer

F Schmid
F Schmid on 3 Jan 2023
The trick is to set the location of the polaraxes manually. Not nice but it works.
t = tiledlayout(2,1);
nexttile;
plot(rand(10),rand(10))
plax = polaraxes(t);
plax. Layout.Tile = 2; % tile location
plax.RLim = [0;2];
plax.RDir = 'reverse';
hold on
polarplot(plax, rand(10),rand(10));

More Answers (0)

Categories

Find more on Polar Plots in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!