diff --git a/tutorials/hist/hist007_TH1_liveupdate.C b/tutorials/hist/hist007_TH1_liveupdate.C index 2df8f33ab5735..e1e44bfdd9978 100644 --- a/tutorials/hist/hist007_TH1_liveupdate.C +++ b/tutorials/hist/hist007_TH1_liveupdate.C @@ -55,10 +55,9 @@ void hist007_TH1_liveupdate() } if (slider) slider->SetRange(0., 1. * i / 10000.); - c1->Modified(); - c1->Update(); + c1->ModifiedUpdate(); } } slider->SetRange(0., 1.); - c1->Modified(); + c1->ModifiedUpdate(); } diff --git a/tutorials/hist/hist007_TH1_liveupdate.py b/tutorials/hist/hist007_TH1_liveupdate.py index 30ab97de61b16..5b3ae1b7b67d5 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: @@ -81,7 +80,7 @@ # 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' ) +c1.Draw(block=True)