use the old 'xbrushwidth' lable as an alternative to 'pyplot_linewidth'

This commit is contained in:
Holger Vogt 2026-08-14 11:48:38 +02:00
parent c93b0ec179
commit bd395341d5
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ void ft_pyplot(double *xlims, double *ylims,
lwarg[0] = '\0';
if (cp_getvar("pyplot_linewidth", CP_REAL, &linewidth, 0) && linewidth > 0.0)
(void) snprintf(lwarg, sizeof lwarg, "linewidth=%g, ", linewidth);
/* use the old label as an alternative */
else if (cp_getvar("xbrushwidth", CP_REAL, &linewidth, 0) && linewidth > 0.0)
(void) snprintf(lwarg, sizeof lwarg, "linewidth=%g, ", linewidth);
markers = FALSE;
if (cp_getvar("pointstyle", CP_STRING, pointstyle, sizeof(pointstyle)))