# Changing the scale for graph?

**URL:** <https://root-forum.cern.ch/t/changing-the-scale-for-graph/17339>\
**Category:** ROOT\
**Created:** [March 11, 2014, 3:59pm UTC](https://root-forum.cern.ch/t/changing-the-scale-for-graph/17339 "2014-03-11T15:59:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Cyrus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@Cyrus](https://root-forum.cern.ch/u/Cyrus)\
**Post date:** [March 11, 2014, 3:59pm UTC](https://root-forum.cern.ch/t/changing-the-scale-for-graph/17339/1 "2014-03-11T15:59:46Z")

</div>

Hi everyone, I’m drawing a plot from file using the standart

` TGraph *gr1=new TGraph("Filename.txt","%lg %lg");
gr1->Draw("ALP")
`  
procedure, but I can’t find a way to change the scale. I.e. if I want not an Y(X) plot, but a K_Y(X) or Y(K_X), where the K is constant, and X and Y are written in the .txt file, what should I do (without rewriting the .txt file)? I think it’s a trivial question, but I wasn’t able to find this somewhere.

---

_[View the full topic](https://root-forum.cern.ch/t/changing-the-scale-for-graph/17339)._
