How can I remove dark background in satellite label

8 visualizzazioni (ultimi 30 giorni)
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
Arjun il 5 Nov 2024
Hi @Piotr,
Can you please attach the file "tle_iss.tle" as it is needed to run your script.

Accedi per commentare.

Risposte (1)

Image Analyst
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
Piotr
Piotr il 6 Nov 2024
sat = satellite(sc, TLE_file_name, 'Name', 'ISS', "OrbitPropagator", "sgp4");
This line executes satellite itself and the label(third arg)
Image Analyst
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: (
  1. 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.
  2. 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 for satelliteScenario/satellite --- satelliteScenario/satellite - Add satellites to satellite scenario This MATLAB function adds Satellite objects from file to the satellite scenario specified by scenario. Syntax satellite(scenario,file) satellite(scenario,RINEXdata) satellite(scenario,semimajoraxis,eccentricity,inclination,RAAN,argofperiapsis,trueanomaly) satellite(scenario,positiontable) satellite(scenario,positiontable,velocitytable) satellite(scenario,positiontimeseries) satellite(scenario,positiontimeseries,velocitytimeseries) satellite(___,Name,Value) sat = satellite(___) Input Arguments scenario - Satellite scenario satelliteScenario object file - TLE, Orbit Mean-Elements Message (OMM), or SEM almanac file character vector | string scalar RINEXdata - RINEX navigation message structure semimajoraxis - Keplerian elements defined in GCRF comma-separated list of vectors eccentricity - Keplerian elements defined in GCRF comma-separated list of vectors inclination - Keplerian elements defined in GCRF comma-separated list of vectors RAAN - Keplerian elements defined in GCRF comma-separated list of vectors argofperiapsis - Keplerian elements defined in GCRF comma-separated list of vectors trueanomaly - Keplerian elements defined in GCRF comma-separated list of vectors positiontable - Position data timetable | table velocitytable - Velocity data timetable | table positiontimeseries - Position data timeseries object | tscollection object velocitytimeseries - Velocity data timeseries object | tscollection object Name-Value Arguments CoordinateFrame - Satellite state coordinate frame "inertial" (default) | "ecef" | "geographic" GPSweekepoch - GPS week epoch date string Viewer - Satellite scenario viewer vector of satelliteScenarioViewer objects (default) | scalar satelliteScenarioViewer object | array of satelliteScenarioViewer objects Name - Satellite name string scalar | string vector | character vector | cell array of character vectors OrbitPropagator - Name of orbit propagator "sgp4" | "sdp4" | "two-body-keplerian" | "ephemeris" | "gps" | "galileo" | "numerical" Visual3DModel - Name of 3-D model file zero-length string (default) Visual3DModelScale - Linear scaling of 3-D model 1 (default) | nonnegative integer Output Arguments sat - Satellite in the scenario Satellite object Examples openExample('aero_satcom/VisualizeSatelliteTrajectoriesExample') openExample('aero_satcom/AddGroundStationsToScenarioAndVisualizeAccessIntervalsExample') openExample('aero_satcom/AddSatellitesToScenarioUsingKeplerianElementsExample') openExample('aero_satcom/VisualizeGPSConstellationExample') openExample('aero_satcom/AddSatToSatelliteScenarioFromCCSDSOMMMessageFileExample') See also satelliteScenario, satelliteScenarioViewer, PhysicalProperties, access, show, play, hide, orbitalElements, physicalProperties Introduced in Aerospace Toolbox in R2021a Documentation for satelliteScenario/satellite doc satelliteScenario/satellite

Accedi per commentare.

Categorie

Scopri di più su Reference Applications in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by