use attribute legendmax also for horizontal signal name legend (instead of xlabmag)

This commit is contained in:
stefan schippers 2026-04-24 13:44:26 +02:00
parent 933805fded
commit 366b713b93
2 changed files with 4 additions and 4 deletions

View File

@ -3358,7 +3358,7 @@ void setup_graph_data(int i, int skip, Graph_ctx *gr)
gr->digtxtsizelab = 0.000900 * fabs( gr->h / gr->posh * gr->gh );
else
gr->digtxtsizelab = 0.001200 * fabs( gr->h / gr->posh * gr->gh );
gr->txtsizelab *= gr->magx;
gr->txtsizelab *= gr->maglegend;
/* x axis, y axis text sizes */
gr->txtsizey = gr->h / gr->divy * 0.0095;
@ -3374,7 +3374,7 @@ void setup_graph_data(int i, int skip, Graph_ctx *gr)
if(tmp < gr->txtsizex) gr->txtsizex = tmp;
gr->txtsizex *= gr->magx;
/* signal names (legend) size. */
/* signal names (vertical legend) size. */
gr->txtsizelegend = gr->h * 0.00095;
gr->txtsizelegend *= gr->maglegend;
dbg(1, "setup_graph_data(): txtsizelegend=%g, maglegend=%g\n", gr->txtsizelegend, gr->maglegend);

View File

@ -3796,7 +3796,7 @@ proc graph_edit_properties {n} {
xschem draw_graph $graph_selected
}
label .graphdialog.top5.xlabmag -text { X/Y lab mag:}
label .graphdialog.top5.xlabmag -text { X lab mag:}
entry .graphdialog.top5.xmag -width 4
entry_replace_selection .graphdialog.top5.xmag
bind .graphdialog.top5.xmag <KeyRelease> {
@ -3805,7 +3805,7 @@ proc graph_edit_properties {n} {
xschem draw_graph $graph_selected
}
label .graphdialog.top5.ylabmag -text { }
label .graphdialog.top5.ylabmag -text { Y lab mag:}
entry .graphdialog.top5.ymag -width 4
entry_replace_selection .graphdialog.top5.ymag
bind .graphdialog.top5.ymag <KeyRelease> {