legend children empty, but need to set transparency

조회 수: 3 (최근 30일)
Kate
Kate 2018년 6월 11일
답변: Anton Semechko 2018년 6월 12일
Hi y'all,
I'm trying to alter the transparency(alpha) of a legend object (the dark blue patch) to match my plot, but when I try to access the children to set the alpha it is empty for some reason? Any idea why this would be or how I could fix it?
Thanks and all the best, Kate
get(legend)
AutoUpdate: 'on'
BeingDeleted: 'off'
Box: 'off'
BusyAction: 'queue'
ButtonDownFcn: @bdowncb
Children: [0×0 GraphicsPlaceholder]
Color: [1 1 1]
CreateFcn: ''
DeleteFcn: ''
EdgeColor: [0.1500 0.1500 0.1500]
FontAngle: 'normal'
FontName: 'Helvetica'
FontSize: 16.2000
FontWeight: 'normal'
HandleVisibility: 'on'
HitTest: 'on'
Interpreter: 'tex'
Interruptible: 'off'
ItemHitFcn: @defaultItemHitCallback
LineWidth: 0.5000
Location: 'northeast'
Orientation: 'vertical'
Parent: [1×1 Figure]
PickableParts: 'visible'
Position: [0.5268 0.7071 0.3607 0.1940]
Selected: 'off'
SelectionHighlight: 'on'
String: {'Land Sink of Carbon' 'Global Photosynthesis' 'Integrated Respiration' 'Current Climate'}
Tag: 'legend'
TextColor: [0 0 0]
Title: [1×1 Text]
Type: 'legend'
UIContextMenu: [1×1 ContextMenu]
Units: 'normalized'
UserData: []
Visible: 'on'

답변 (1개)

Anton Semechko
Anton Semechko 2018년 6월 12일
I had the same problem. I couldn't figure out a way to resolve it in Matlab, so instead I exported the graph as it was and then edited the legend in the free photo editing program called paint.net. Though you can use any photo editing program of your choice.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by