# Graphing in the COLZ option how to change marker size?

**URL:** <https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448>\
**Category:** Newbie\
**Tags:** hist\
**Created:** [August 7, 2024, 3:21pm UTC](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448 "2024-08-07T15:21:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishanpatel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/76d3ee/32.png) [@ishanpatel](https://root-forum.cern.ch/u/ishanpatel)\
**Post date:** [August 7, 2024, 3:21pm UTC](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448/1 "2024-08-07T15:21:31Z")

</div>

I am trying to graph PMTs with the “COLZ” option, but the marker sizes are extremely small and cannot get it to change.

```auto
auto pmtposition = new TH2D("Centroid Calculation","Centroid and True Vertex",200,0,500,200,-200,200);
    auto canvas1 = new TCanvas("PMT POSITIONS","PMT POSITIONS",900,900);
    std::map<int,std::tuple<double, double, double, int, int>>::iterator it;
    for(int i = 0 ; i < ch_ID[event].size();i++){
        auto it = PMT_dict.find(ch_ID[event][i]);
        if (it != PMT_dict.end()){
            if((std::get<4>(it->second)==tpc)&&(ch_promptPE[event][i] >= 0)){
                auto value = it->second;
                pmtposition->Fill(std::get<2>(value),std::get<1>(value),ch_promptPE[event][i]);
            }
        }
    }
    pmtposition->SetMarkerSize(5);
    pmtposition->Draw("colz");

```

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [August 7, 2024, 5:27pm UTC](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448/2 "2024-08-07T17:27:29Z")

</div>

You can change the bin width by modifying your first line of code:

```auto
200,0,500,200,-200,200)

```

Alternatively, use the TScatter class. [ROOT: TScatter Class Reference](https://root.cern/doc/master/classTScatter.html)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [August 14, 2024, 12:16pm UTC](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448/3 "2024-08-14T12:16:34Z")

</div>

The COLZ option does not draw any marker. Have a look to [the documentation](https://root.cern/doc/v632/classTHistPainter.html#HP14).
