How can I remove dark background in satellite label
3 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I would like to have removed dark background in labels like below:

This is satellite made by satelliteScenario.
Code used for generation:
startTime = datetime(2024,04,03,14,08,13, 'Format','dd-MMM-yyyy HH:mm:ss.SSSSSSSSS', 'TimeZone', 'UTC');
E_startTime = startTime;
E_stopTime = E_startTime + seconds(10);
E_samplePeriod = 1;
sc = satelliteScenario(E_startTime, E_stopTime, E_samplePeriod);
TLE_file_name = 'tle_iss.tle';
Name= 'ISS';
sat = satellite(sc, TLE_file_name, 'Name', 'ISS', "OrbitPropagator", "sgp4");
sat.LabelFontColor = 'red';
sat.MarkerColor = 'red';
sat.Orbit.LineWidth = 2';
sat.Orbit.LineColor = 'red';
play(sc)
Is is possible to have it removed or changed?
In version 2021a there was no background at all.
Thanks for help!
2 件のコメント
Arjun
2024 年 11 月 5 日
Can you please attach the file "tle_iss.tle" as it is needed to run your script.
回答 (1 件)
Image Analyst
2024 年 11 月 5 日
Not sure exactly what function you used to put the text label on, like text or insertText, but look at those functions for an option like 'BackgroundColor' or something like that to use "transparent" or white or whatever you want.
4 件のコメント
Image Analyst
2024 年 11 月 6 日
I don't see any options listed for that built-in function to control any properties of the text label. So if that's the case, and you might call tech support to check, then you have two options: (
- Tell it not to give a name and drop down a label right over that label would go. text or insertText should give you more options for text properties.
- Save the image and somehow do image processing to find the label and replace the background with something, like the background from the original image or white.
help satellite
参考
カテゴリ
Help Center および File Exchange で Reference Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!