new variable nolegend: with 'set nolegend' plotting of
the legend is suppressed.
This commit is contained in:
parent
7d9062f1f9
commit
9f73552d29
|
|
@ -18,6 +18,8 @@ setcs xfont='Noto Sans CJK JP Medium'
|
||||||
set gridwidth=4
|
set gridwidth=4
|
||||||
set xbrushwidth=1
|
set xbrushwidth=1
|
||||||
|
|
||||||
|
set nolegend
|
||||||
|
|
||||||
*hardcopy
|
*hardcopy
|
||||||
|
|
||||||
**plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré'
|
**plot y vs x xlabel 'Labellisé X' ylabel 'Labellisé Y: ÜüÖöÄäÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ' title 'Titré'
|
||||||
|
|
|
||||||
|
|
@ -423,9 +423,9 @@ static void gr_start_internal(struct dvec *dv, bool copyvec)
|
||||||
|
|
||||||
|
|
||||||
/* Put the legend entry on the screen. */
|
/* Put the legend entry on the screen. */
|
||||||
drawlegend(currentgraph, cur.plotno++, dv);
|
if (!cp_getvar("nolegend", CP_BOOL, NULL, 0))
|
||||||
} /* end of function gr_start_internal */
|
drawlegend(currentgraph, cur.plotno++, dv);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Start one plot of a graph */
|
/* Start one plot of a graph */
|
||||||
|
|
@ -599,7 +599,8 @@ void gr_redraw(GRAPH *graph)
|
||||||
cur.plotno = 0;
|
cur.plotno = 0;
|
||||||
for (link = graph->plotdata; link; link = link->next) {
|
for (link = graph->plotdata; link; link = link->next) {
|
||||||
/* redraw legend */
|
/* redraw legend */
|
||||||
drawlegend(graph, cur.plotno++, link->vector);
|
if (!cp_getvar("nolegend", CP_BOOL, NULL, 0))
|
||||||
|
drawlegend(graph, cur.plotno++, link->vector);
|
||||||
|
|
||||||
/* replot data
|
/* replot data
|
||||||
if onevalue, pass it a NULL scale
|
if onevalue, pass it a NULL scale
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue