# Setting titles for TGraphs

**URL:** <https://root-forum.cern.ch/t/setting-titles-for-tgraphs/14856>\
**Category:** ROOT\
**Created:** [September 3, 2012, 8:41am UTC](https://root-forum.cern.ch/t/setting-titles-for-tgraphs/14856 "2012-09-03T08:41:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fclopez](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/4bbf92/32.png) [@fclopez](https://root-forum.cern.ch/u/fclopez)\
**Post date:** [September 3, 2012, 8:41am UTC](https://root-forum.cern.ch/t/setting-titles-for-tgraphs/14856/1 "2012-09-03T08:41:12Z")

</div>

Hello. I need to do a very simple task

```auto
..........
TGraph *graph = new TGraph(point, x,y);
graph->SetTitle("some title");
graph->GetYaxis()->SetTitle("some title01"); // this does not appaer in my graph
.........
graph->Draw("AL*");
return graph;

```

Did I miss anything, in the Draw options, maybe? Many thanks.  
f

---

_[View the full topic](https://root-forum.cern.ch/t/setting-titles-for-tgraphs/14856)._
