only one plot line is showing
Mostra commenti meno recenti
%%plot1
subplot(1,2,1)
gscatter(labels_sorted, 1:N, binary); hold on
line([label_25 label_25], [0 n_25], 'Color', 'k')
line([0 label_25], [n_25 n_25], 'Color','k')
line([label_50 label_50], [round(N*0.5) round(N*0.5)])
xlabel('Performance')
ylabel('Circuit')
ha1 = gca;
ha1.XScale = 'log';
ha1.XAxis.Color = bcolor;
ha1.YAxis.Color = bcolor; % change the y axis color to black (not a dark grey)
ha1.XAxis.FontSize = fonttick; % change x tick font size
ha1.YAxis.FontSize = fonttick; % change y tick font size
ha1.XAxis.Label.FontSize = fontlabel; % change x label font size
ha1.YAxis.Label.FontSize = fontlabel; % change y label font size
ha1.Layer = 'top';
subplot(1,2,2)
gscatter(complexity_sorted, labels_sorted, binary)
xlabel('Complexity')
ylabel('Performance')
ha2 = gca;
ha2.YScale = 'log';
ha2.XAxis.Color = bcolor;
ha2.YAxis.Color = bcolor; % change the y axis color to black (not a dark grey)
ha2.XAxis.FontSize = fonttick; % change x tick font size
ha2.YAxis.FontSize = fonttick; % change y tick font size
ha2.XAxis.Label.FontSize = fontlabel; % change x label font size
ha2.YAxis.Label.FontSize = fontlabel; % change y label font size
ha2.Layer = 'top';
in plot 1, i am trying to add lines to denote quadrants, it plots the first line but not the rest.
1 Commento
Anthony Sirico
il 20 Dic 2022
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Axis Labels in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!