# SetRangeUser has no effect

**URL:** <https://root-forum.cern.ch/t/setrangeuser-has-no-effect/14247>\
**Category:** ROOT\
**Created:** [May 4, 2012, 10:52pm UTC](https://root-forum.cern.ch/t/setrangeuser-has-no-effect/14247 "2012-05-04T22:52:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maikenp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@maikenp](https://root-forum.cern.ch/u/maikenp)\
**Post date:** [May 4, 2012, 10:52pm UTC](https://root-forum.cern.ch/t/setrangeuser-has-no-effect/14247/1 "2012-05-04T22:52:09Z")

</div>

Hi,

I am trying to modify the range of a plotted histogram, but it seems to have no effect. I try something like this:

```auto
hist.Draw()
hist.GetXaxis().SetRangeUser(0,100)
```

Why does this not work? I tried

c1.Update()  
and  
c1.Modified()

but neither seem to change anything. I am sure the solution is simple, I can not find it, however

Thanks,  
Maiken

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 5, 2012, 4:53am UTC](https://root-forum.cern.ch/t/setrangeuser-has-no-effect/14247/2 "2012-05-05T04:53:19Z")

</div>

[url][SetAxisRange(0.0,1.0,"Y"); is ineffective](https://root-forum.cern.ch/t/setaxisrange-0-0-1-0-y-is-ineffective/14040/4)  
[url][Drawing a TGraphAsymmErrors](https://root-forum.cern.ch/t/drawing-a-tgraphasymmerrors/14205/4)

---

<div class="post-metadata">

**Author:** ![maikenp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@maikenp](https://root-forum.cern.ch/u/maikenp)\
**Post date:** [May 5, 2012, 5:14pm UTC](https://root-forum.cern.ch/t/setrangeuser-has-no-effect/14247/3 "2012-05-05T17:14:59Z")

</div>

Thank you,

Cheers  
Maiken
