How can I remove dark background in satellite label
Show older comments
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!
Answers (1)
Image Analyst
on 5 Nov 2024
0 votes
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 Comments
Piotr
on 5 Nov 2024
Image Analyst
on 5 Nov 2024
I don't have the satellite toolbox. Can you step through it and tell me the function that is executed exactly when the text label appears?
Piotr
on 6 Nov 2024
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
Categories
Find more on Scenario Generation and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!