change background color in parallelplot
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
pawell t
am 13 Apr. 2023
Kommentiert: Adam Danz
am 11 Jul. 2025
Hi. currently using paralleplot. matlab R2022b.
Didn't find a way to make background color black. By default it's white and not very suitable in my case (lots of lines, so i use line trasperancy). Any suggestions?
thanks
1 Kommentar
Adam Danz
am 11 Jul. 2025
Setting the background color to black sounds like a custom dark theme is being applied. Starting in R2025a you could set the theme to dark.
tsunamis = readtable('tsunamis.xlsx');
figure('Units','normalized','Position',[0.3 0.3 0.45 0.4])
coordvars = {'Year','Validity','Cause','Country'};
p = parallelplot(tsunamis,'CoordinateVariables',coordvars,'GroupVariable','Validity');
theme dark
Akzeptierte Antwort
Luca Ferro
am 13 Apr. 2023
I don't think it is possible. I tried to look into all the properties of a parallelplot figure (and more in general of a plot figure) using the commands:
%use only after plotting
inspect(gca) %for axis proeperties
inspect(gcf) %for figure properties
but coulnd't find any that changes the plot area background.
Closest i got was to change the figure background with
set(gcf, 'color', [1 1 0]) %yellow
but the plotting area is still white.
3 Kommentare
Luca Ferro
am 17 Apr. 2023
Bearbeitet: Luca Ferro
am 17 Apr. 2023
it should be better to post them as separate questions so that you can then accept the answers and also they would show in the questions archive.
Anyways:
Check this for the size: TickSize
For coloring axes:
set(gca,'XColor','g','YColor','g'); %g is for green
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!