Discussion:
Controlling the color palette in rainbow plots
Stilianos Kesisoglou
2014-09-29 15:18:46 UTC
Permalink
Dear ROOTers,

I have made a 2D rainbow plot with the color palette on the side,
but the default display is to go from blue to red.

Is there any simple way to invert the colors? (going from red to blue)

Also I would prefer if I could associate a color with a value range from
the 2D histogram. For example display with green colors the range
-0.1 to 0.1 etc...

Thanks in advance!

Regards,
Stelios.
--
Stilianos Kesisoglou, PhD
Research Associate
.......................................................................
CMS Experiment at CERN

CERN, CH-1211 Genève 23, Switzerland, Mailbox: E21610, Office: 40/4-A12

tel: (+41) (0) 22 76 71573 | fax: (+41) (0) 22 76 67847 | mobile: (+41) (0) 76 26 34328
email: stilianos dot kesisoglou at cern dot ch
.......................................................................
Institute of Accelerating Systems and Applications (IASA)
National and Kapodistrian University of Athens (NKUA)
P.O. Box 17214
GR-10024 Athens, GREECE

Bldg. IX / Office 129
tel: (+30) 210 725 7533 | fax: (+30) 210 727 6747 | mobile: (+30) 693 836 9970
email: kesisoglou at iasa dot gr
.......................................................................
Web Page: http://www.kesisoglou.eu/

Skype: Full Name: Stilianos Kesisoglou
Skype Name: kesisoglou
Country: US
Bertrand Bellenot
2014-09-29 15:24:33 UTC
Permalink
Hi Stelios,

You can take a look at the multipalette.C and waves.C tutorials (in $ROOTSYS/tutorials/graphs)

Cheers, Bertrand.

-----Original Message-----
From: Stilianos Kesisoglou
Sent: 29 September 2014 17:19
To: roottalk (Mailing list for ROOT users.)
Subject: Controlling the color palette in rainbow plots


Dear ROOTers,

I have made a 2D rainbow plot with the color palette on the side, but the default display is to go from blue to red.

Is there any simple way to invert the colors? (going from red to blue)

Also I would prefer if I could associate a color with a value range from the 2D histogram. For example display with green colors the range
-0.1 to 0.1 etc...

Thanks in advance!

Regards,
Stelios.
--
Stilianos Kesisoglou, PhD
Research Associate
.......................................................................
CMS Experiment at CERN

CERN, CH-1211 Genève 23, Switzerland, Mailbox: E21610, Office: 40/4-A12

tel: (+41) (0) 22 76 71573 | fax: (+41) (0) 22 76 67847 | mobile: (+41) (0) 76 26 34328
email: stilianos dot kesisoglou at cern dot ch .......................................................................
Institute of Accelerating Systems and Applications (IASA) National and Kapodistrian University of Athens (NKUA) P.O. Box 17214
GR-10024 Athens, GREECE

Bldg. IX / Office 129
tel: (+30) 210 725 7533 | fax: (+30) 210 727 6747 | mobile: (+30) 693 836 9970
email: kesisoglou at iasa dot gr
.......................................................................
Web Page: http://www.kesisoglou.eu/

Skype: Full Name: Stilianos Kesisoglou
Skype Name: kesisoglou
Country: US
Stilianos Kesisoglou
2014-09-29 15:27:13 UTC
Permalink
Hi Bertrand,

Great thank you!

Cheers,
Stelios.
Post by Bertrand Bellenot
Hi Stelios,
You can take a look at the multipalette.C and waves.C tutorials (in $ROOTSYS/tutorials/graphs)
Cheers, Bertrand.
-----Original Message-----
From: Stilianos Kesisoglou
Sent: 29 September 2014 17:19
To: roottalk (Mailing list for ROOT users.)
Subject: Controlling the color palette in rainbow plots
Dear ROOTers,
I have made a 2D rainbow plot with the color palette on the side, but the default display is to go from blue to red.
Is there any simple way to invert the colors? (going from red to blue)
Also I would prefer if I could associate a color with a value range from the 2D histogram. For example display with green colors the range
-0.1 to 0.1 etc...
Thanks in advance!
Regards,
Stelios.
Olivier Couet
2014-10-06 12:50:27 UTC
Permalink
Hi Stelios,

See also:

http://root.cern.ch/drupal/content/rainbow-color-map
http://root.cern.ch/drupal/content/how-define-smooth-color-palette

Cheers,
Olivier


On 29 Sep 2014, at 17:24, Bertrand Bellenot <***@cern.ch<mailto:***@cern.ch>> wrote:

Hi Stelios,

You can take a look at the multipalette.C and waves.C tutorials (in $ROOTSYS/tutorials/graphs)

Cheers, Bertrand.

-----Original Message-----
From: Stilianos Kesisoglou
Sent: 29 September 2014 17:19
To: roottalk (Mailing list for ROOT users.)
Subject: Controlling the color palette in rainbow plots


Dear ROOTers,

I have made a 2D rainbow plot with the color palette on the side, but the default display is to go from blue to red.

Is there any simple way to invert the colors? (going from red to blue)

Also I would prefer if I could associate a color with a value range from the 2D histogram. For example display with green colors the range
-0.1 to 0.1 etc...

Thanks in advance!

Regards,
Stelios.

--

Stilianos Kesisoglou, PhD
Research Associate
.......................................................................
CMS Experiment at CERN

CERN, CH-1211 Genève 23, Switzerland, Mailbox: E21610, Office: 40/4-A12

tel: (+41) (0) 22 76 71573 | fax: (+41) (0) 22 76 67847 | mobile: (+41) (0) 76 26 34328
email: stilianos dot kesisoglou at cern dot ch .......................................................................
Institute of Accelerating Systems and Applications (IASA) National and Kapodistrian University of Athens (NKUA) P.O. Box 17214
GR-10024 Athens, GREECE

Bldg. IX / Office 129
tel: (+30) 210 725 7533 | fax: (+30) 210 727 6747 | mobile: (+30) 693 836 9970
email: kesisoglou at iasa dot gr
.......................................................................
Web Page: http://www.kesisoglou.eu/

Skype: Full Name: Stilianos Kesisoglou
Skype Name: kesisoglou
Country: US

Continue reading on narkive:
Loading...