フィルターのクリア

How to modift gplotmatrix legend marker size?

2 ビュー (過去 30 日間)
Luca D'Angelo
Luca D'Angelo 2023 年 11 月 29 日
コメント済み: Luca D'Angelo 2023 年 12 月 13 日
Hi all,
I have a pretty huge timetable Qmz (83955x272) and an array TimeCode(table, 83955x1) which identifies certain meteo conditions (number from 0 to 4).
I want to plot the Qmz data with different color in function of the values in TimeCode.
Qmz=table2timetable(OriginalData);
TimePamCode.Properties.VariableNames(1) = "Code";
P=gplotmatrix(Qmz.DateTime,Qmz.(4),TimePamCode.Code);
h = findobj('Tag','legend');
set(h, 'String', {'No data','Ambient','Ambient2','Ambient3','Ambient4'})
I'm happy of the result but how to handle the color (with customized ones) of the markers plotted with gplotmatrix and (MAINLY) how to increase the size of the marker in the legend? I cannot see the point and then the color!
Cheers

採用された回答

Taylor
Taylor 2023 年 11 月 30 日
  7 件のコメント
Taylor
Taylor 2023 年 12 月 1 日
Exactly. Following Daugherty's method you would also add
% Find the 'line' objects
h = findobj(h,'Type','line');
% Find lines that use a marker
h = findobj(h,'Marker','none','-xor');
% Resize the marker in the legend
set(h,'MarkerSize',20);
before the "end".
Luca D'Angelo
Luca D'Angelo 2023 年 12 月 13 日
thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by