remove printing `[Mag]` on wave labels in AC plots.
This commit is contained in:
parent
15e367ba73
commit
8383030afa
10
src/draw.c
10
src/draw.c
|
|
@ -2186,13 +2186,9 @@ static void draw_graph_variables(int wcnt, int wave_color, int n_nodes, int swee
|
|||
my_strdup2(1155, &ntok_ptr, ntok);
|
||||
}
|
||||
|
||||
if(gr->logx) {
|
||||
if(strstr(ntok_ptr, "ph(") == ntok_ptr || strstr(ntok_ptr, "_ph"))
|
||||
my_snprintf(tmpstr, S(tmpstr), "%s[Phase]", alias_ptr);
|
||||
else
|
||||
my_snprintf(tmpstr, S(tmpstr), "%s[Mag]", alias_ptr);
|
||||
}
|
||||
else if(gr->unity != 1.0) my_snprintf(tmpstr, S(tmpstr), "%s[%c]", alias_ptr, gr->unity_suffix);
|
||||
if(gr->logx && (strstr(ntok_ptr, "ph(") == ntok_ptr || strstr(ntok_ptr, "_ph"))) {
|
||||
my_snprintf(tmpstr, S(tmpstr), "%s[Phase]", alias_ptr);
|
||||
} else if(gr->unity != 1.0) my_snprintf(tmpstr, S(tmpstr), "%s[%c]", alias_ptr, gr->unity_suffix);
|
||||
else my_snprintf(tmpstr, S(tmpstr), "%s", alias_ptr);
|
||||
my_free(1188, &alias_ptr);
|
||||
my_free(1189, &ntok_ptr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue