How can I remove dark background in satellite label
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Arjun
il 5 Nov 2024
Can you please attach the file "tle_iss.tle" as it is needed to run your script.
Risposte (1)
Image Analyst
il 5 Nov 2024
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 Commenti
Image Analyst
il 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
Vedere anche
Categorie
Scopri di più su Reference Applications in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!