@@ -3885,7 +3885,8 @@ void __fastcall CGraphs::drawMarkersOnSmithPolarGraph(const int graph, const int
38853885 else
38863886 s[j++] += " , memory " + IntToStr (mem);
38873887 s[j++] = " Freq " + common.freqToStr1 (Hz - Hz_nd, true , true , 6 , dm) + " Hz" ;
3888- s[j++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " " + common.valueToStr (c.imag (), false , true , " " , true );
3888+ if (c.imag ()<0 ) s[j++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " -j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
3889+ else s[j++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " +j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
38893890 if (polar)
38903891 { // polar
38913892 // s[j++].printf(L" R jX %#.4g %cj%#.4g ", imp.real(), (imp.imag() < 0) ? '-' : '+', fabsf(imp.imag()));
@@ -4062,7 +4063,8 @@ void __fastcall CGraphs::drawMouseSmithPolar(const int graph, const int graph_ty
40624063
40634064 s[str_count++] = " Mouse " ;
40644065 s[str_count++] = " Freq (CW) " + common.freqToStr1 (Hz, true , true , 6 , false ) + " Hz" ;
4065- s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " " + common.valueToStr (c.imag (), false , true , " " , true );
4066+ if (c.imag ()<0 ) s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " -j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
4067+ else s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " +j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
40664068 if (polar)
40674069 { // polar
40684070 s[str_count++] = " R jX " + res_str + " " + ((imp.imag () >= 0 ) ? " +j" : " -j" ) + resj_str;
@@ -4153,7 +4155,8 @@ void __fastcall CGraphs::drawMouseSmithPolar(const int graph, const int graph_ty
41534155 else
41544156 s[str_count++].printf (L" Point %d/%u, mem %d" , 1 + index, line_points.size (), mem);
41554157 s[str_count++] = " Freq " + common.freqToStr1 (Hz, true , true , 6 , false ) + " Hz" ;
4156- s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " " + common.valueToStr (c.imag (), false , true , " " , true );
4158+ if (c.imag ()<0 ) s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " -j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
4159+ else s[str_count++] = " re im " + common.valueToStr (c.real (), false , true , " " , true ) + " +j" + common.valueToStr (fabs (c.imag ()), false , true , " " , true );
41574160 if (polar)
41584161 { // polar
41594162 s[str_count++] = " R jX " + res_str + " " + ((imp.imag () >= 0 ) ? " +j" : " -j" ) + resj_str;
@@ -9586,7 +9589,7 @@ void __fastcall CGraphs::drawQCS11(const int graph, const int graph_type, const
95869589 if (show_marker_text && settings.showMarkersOnGraph && settings.memoryEnable [m] && draw_on_graph)
95879590 {
95889591 String line_type = (data_unit.m_vna_data .type != UNIT_TYPE_TINYSA) ? " S11 " : " line " ;
9589- drawMarkersOnGraph (graph, m, channel, " Cap " , line_type);
9592+ drawMarkersOnGraph (graph, m, channel, " F " , line_type);
95909593 draw_on_graph = false ;
95919594 }
95929595 }
@@ -9793,7 +9796,7 @@ void __fastcall CGraphs::drawQLS11(const int graph, const int graph_type, const
97939796 if (show_marker_text && settings.showMarkersOnGraph && settings.memoryEnable [m] && draw_on_graph)
97949797 {
97959798 String line_type = (data_unit.m_vna_data .type != UNIT_TYPE_TINYSA) ? " S11 " : " line " ;
9796- drawMarkersOnGraph (graph, m, channel, " Ind " , line_type);
9799+ drawMarkersOnGraph (graph, m, channel, " H " , line_type);
97979800 draw_on_graph = false ;
97989801 }
97999802 }
0 commit comments