Skip to content

Commit

Permalink
Fix variable name in tutorials/graphs/scatter.C
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnjo committed Jun 25, 2024
1 parent 80023e0 commit 4cf09dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/graphs/scatter.C
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void scatter()
// The next snippet is only needed if you want to change the colorbar title
canvas->Modified();
canvas->Update();
TPaletteAxis *palette = (TPaletteAxis*)scat->GetGraph()->GetListOfFunctions()->FindObject("palette");
TPaletteAxis *palette = (TPaletteAxis*)scatter->GetGraph()->GetListOfFunctions()->FindObject("palette");
palette->SetX1NDC(0.86);
palette->SetX2NDC(0.90);
palette->SetTitle("Palette Title");
Expand Down

0 comments on commit 4cf09dc

Please sign in to comment.