1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-05 21:33:47 +00:00

Add opaque legend

This commit is contained in:
Carles Fernandez 2017-10-24 08:45:13 +02:00
parent d1ed8a963c
commit 8509b7254a

View File

@ -532,7 +532,6 @@ TEST_F(GpsL1CADllPllTrackingTest, ValidationOfResults)
Gnuplot::set_GNUPlotPath(gnuplot_path);
std::vector<double> timevec;
//sample_interval = (1 / baseband_sampling_freq)
double t = 0.0;
for (auto it = prompt.begin(); it != prompt.end(); it++)
{
@ -540,10 +539,11 @@ TEST_F(GpsL1CADllPllTrackingTest, ValidationOfResults)
t = t + GPS_L1_CA_CODE_PERIOD;
}
Gnuplot g1("linespoints");
g1.set_title("GPS L1 C/A signal tracking for satellite " + std::to_string(FLAGS_test_satellite_PRN));
g1.set_title("GPS L1 C/A signal tracking correlators' output (satellite PRN #" + std::to_string(FLAGS_test_satellite_PRN) + ")");
g1.set_grid();
g1.set_xlabel("Time [s]");
g1.set_ylabel("Correlators output");
g1.set_ylabel("Correlators' output");
g1.cmd("set key box opaque");
g1.plot_xy( timevec, prompt, "Prompt");
g1.plot_xy( timevec, early, "Early");
g1.plot_xy( timevec, late, "Late");