Skip to content

Commit

Permalink
[skip-ci] mention how to change z axis title in tscatter (#15871)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdymercury authored Jun 25, 2024
1 parent fb7db67 commit 80023e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tutorials/graphs/scatter.C
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ void scatter()
scatter->SetMarkerStyle(20);
scatter->SetTitle("Scatter plot;X;Y");
scatter->Draw("A");

// 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");

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / mac13 ARM64 LLVM_ENABLE_ASSERTIONS=On, builtin_zlib=ON

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / alma9 march_native CMAKE_BUILD_TYPE=RelWithDebInfo, CMAKE_CXX_FLAGS=-march=native, CMAKE_C_FLAGS=-march=native

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / mac-beta ARM64 LLVM_ENABLE_ASSERTIONS=On, CMAKE_CXX_STANDARD=20

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / debian125 LLVM_ENABLE_ASSERTIONS=On, CMAKE_CXX_STANDARD=20

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / mac14 ARM64 LLVM_ENABLE_ASSERTIONS=On, CMAKE_CXX_STANDARD=20

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / alma9 modules_off runtime_cxxmodules=Off

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / alma9-clang clang LLVM_ENABLE_ASSERTIONS=On, CMAKE_C_COMPILER=clang, CMAKE_CXX_COMPILER=clang++

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / alma8 LLVM_ENABLE_ASSERTIONS=On

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / fedora39 LLVM_ENABLE_ASSERTIONS=On, CMAKE_CXX_STANDARD=20

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / ubuntu20 LLVM_ENABLE_ASSERTIONS=On

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / ubuntu2404 LLVM_ENABLE_ASSERTIONS=On, CMAKE_BUILD_TYPE=Debug

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / alma9 LLVM_ENABLE_ASSERTIONS=On, CMAKE_BUILD_TYPE=Debug

use of undeclared identifier 'scat'

Check failure on line 39 in tutorials/graphs/scatter.C

View workflow job for this annotation

GitHub Actions / ubuntu22 imt=Off, LLVM_ENABLE_ASSERTIONS=On, CMAKE_BUILD_TYPE=Debug

use of undeclared identifier 'scat'
palette->SetX1NDC(0.86);
palette->SetX2NDC(0.90);
palette->SetTitle("Palette Title");
canvas->Modified();
canvas->Update();
}

0 comments on commit 80023e0

Please sign in to comment.