From 8f06b6179a37763688c2011ed59af7a33ab73e75 Mon Sep 17 00:00:00 2001 From: Olivier Couet Date: Tue, 24 Feb 2026 12:46:35 +0100 Subject: [PATCH 1/4] Use UpdateModified in dynamic tutorials --- tutorials/hist/hist007_TH1_liveupdate.C | 3 +-- tutorials/hist/hist007_TH1_liveupdate.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tutorials/hist/hist007_TH1_liveupdate.C b/tutorials/hist/hist007_TH1_liveupdate.C index 2df8f33ab5735..130d0188fb50b 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.C +++ b/tutorials/hist/hist007_TH1_liveupdate.C @@ -55,8 +55,7 @@ void hist007_TH1_liveupdate() } if (slider) slider->SetRange(0., 1. * i / 10000.); - c1->Modified(); - c1->Update(); + c1->ModifiedUpdate(); } } slider->SetRange(0., 1.); diff --git a/tutorials/hist/hist007_TH1_liveupdate.py b/tutorials/hist/hist007_TH1_liveupdate.py index 30ab97de61b16..61c723b104dd5 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.py +++ b/tutorials/hist/hist007_TH1_liveupdate.py @@ -70,8 +70,7 @@ if slider: slider.SetRange( 0, float(i) / 10000. ) - c1.Modified() - c1.Update() + c1.ModifiedUpdate() # Destroy member functions cache. for name in histos: From fce109a82956a08fd2e9e1db026826931d91b91b Mon Sep 17 00:00:00 2001 From: Olivier Couet Date: Tue, 24 Feb 2026 13:09:52 +0100 Subject: [PATCH 2/4] One more occurence in the python code --- tutorials/hist/hist007_TH1_liveupdate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tutorials/hist/hist007_TH1_liveupdate.py b/tutorials/hist/hist007_TH1_liveupdate.py index 61c723b104dd5..128eb9ee8be2e 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.py +++ b/tutorials/hist/hist007_TH1_liveupdate.py @@ -80,7 +80,6 @@ # Done, finalized and trigger an update. slider.SetRange( 0, 1 ) total.Draw( 'sameaxis' ) # to redraw axis hidden by the fill area -c1.Modified() -c1.Update() +c1.ModifiedUpdate() gBenchmark.Show( 'hsum' ) From 4678367c63db01cc97497d2183d235e776c6614b Mon Sep 17 00:00:00 2001 From: Olivier Couet Date: Tue, 24 Feb 2026 13:13:14 +0100 Subject: [PATCH 3/4] Replace Modified bby ModifiedUpdate in the .C version --- tutorials/hist/hist007_TH1_liveupdate.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/hist/hist007_TH1_liveupdate.C b/tutorials/hist/hist007_TH1_liveupdate.C index 130d0188fb50b..e1e44bfdd9978 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.C +++ b/tutorials/hist/hist007_TH1_liveupdate.C @@ -59,5 +59,5 @@ void hist007_TH1_liveupdate() } } slider->SetRange(0., 1.); - c1->Modified(); + c1->ModifiedUpdate(); } From dbb8d20e6b7b7a224856560a3703d7f6f1888c37 Mon Sep 17 00:00:00 2001 From: Olivier Couet Date: Tue, 24 Feb 2026 13:16:05 +0100 Subject: [PATCH 4/4] Add an extra Draw in the python version --- tutorials/hist/hist007_TH1_liveupdate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorials/hist/hist007_TH1_liveupdate.py b/tutorials/hist/hist007_TH1_liveupdate.py index 128eb9ee8be2e..5b3ae1b7b67d5 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.py +++ b/tutorials/hist/hist007_TH1_liveupdate.py @@ -83,3 +83,4 @@ c1.ModifiedUpdate() gBenchmark.Show( 'hsum' ) +c1.Draw(block=True)