do full x/y zoom when switching log/linear x/y scales in graphs

This commit is contained in:
stefan schippers 2024-04-09 09:15:56 +02:00
parent 51a34ed4a7
commit 1d72478138
1 changed files with 6 additions and 0 deletions

View File

@ -3077,11 +3077,15 @@ proc graph_edit_properties {n} {
xschem setprop rect 2 $graph_selected subdivx 8 fast
.graphdialog.top2.subdivx delete 0 end
.graphdialog.top2.subdivx insert 0 8
xschem setprop rect 2 $graph_selected fullxzoom
xschem setprop rect 2 $graph_selected fullyzoom
} else {
graph_push_undo
xschem setprop rect 2 $graph_selected subdivx 4 fast
.graphdialog.top2.subdivx delete 0 end
.graphdialog.top2.subdivx insert 0 4
xschem setprop rect 2 $graph_selected fullxzoom
xschem setprop rect 2 $graph_selected fullyzoom
}
xschem draw_graph $graph_selected
}
@ -3097,11 +3101,13 @@ proc graph_edit_properties {n} {
xschem setprop rect 2 $graph_selected subdivy 8 fast
.graphdialog.top2.subdivy delete 0 end
.graphdialog.top2.subdivy insert 0 8
xschem setprop rect 2 $graph_selected fullyzoom
} else {
graph_push_undo
xschem setprop rect 2 $graph_selected subdivy 4 fast
.graphdialog.top2.subdivy delete 0 end
.graphdialog.top2.subdivy insert 0 4
xschem setprop rect 2 $graph_selected fullyzoom
}
xschem draw_graph $graph_selected
}