Updates and Results Talks and Posters Advice Ideas Important Figures Write-Ups Outreach How-To Funding Opportunities GENETIS
  Place to document instructions for how to do things  ELOG logo
Message ID: 30     Entry time: Tue Nov 27 09:43:37 2018
Author: Brian Clark 
Subject: Plot Two TH2Ds with Different Color Palettes 
Project: Analysis 

Say you want to plot two TH2Ds with on the same pad but different color paletettes?

This is possible, but requires a touch of fancy ROOT-ing. Actually, it's not that much, it just takes a lot of time to figure it out. So here it is.

Fair warning, the order of all the gPad->Modified's etc seems very important to no seg fault.

In include the main (demo.cc) and the Makefile.

Attachment 1: demo.cc  2 kB  | Show | Hide all | Show all
Attachment 2: Makefile  198 Bytes  | Hide | Hide all | Show all
LDFLAGS=-L${ARA_UTIL_INSTALL_DIR}/lib -L${shell root-config --libdir}
CXXFLAGS=-I${ARA_UTIL_INSTALL_DIR}/include -I${shell root-config --incdir}
LDLIBS += $(shell $(ROOTSYS)/bin/root-config --libs)
Attachment 3: test.png  31 kB  | Hide | Hide all | Show all
test.png
ELOG V3.1.5-fc6679b