remove printing `[Mag]` on wave labels in AC plots.

This commit is contained in:
Stefan Frederik 2022-08-05 19:07:42 +02:00
parent 15e367ba73
commit 8383030afa
1 changed files with 3 additions and 7 deletions

View File

@ -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);