# How to get graph from a TCanvas

**URL:** <https://root-forum.cern.ch/t/how-to-get-graph-from-a-tcanvas/43243>\
**Category:** ROOT\
**Tags:** graphics\
**Created:** [January 25, 2021, 4:12am UTC](https://root-forum.cern.ch/t/how-to-get-graph-from-a-tcanvas/43243 "2021-01-25T04:12:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [January 25, 2021, 9:28am UTC](https://root-forum.cern.ch/t/how-to-get-graph-from-a-tcanvas/43243/4 "2021-01-25T09:28:23Z")

</div>

Yes they all have the same name … too bad.  
May be something similar to what is done in this HowTo can help:

> [@How to draw an object with special characters in its name?](https://root-forum.cern.ch/t/how-to-draw-an-object-with-special-characters-in-its-name/28248):
>
> In general it is not a good idea to have object’s name containing special character like “”, “/”, “#” etc … or even have object name starting with a number because they might be not accessible from the ROOT command line. For instance “/” is the separator for directory level in a file therefore an object having a “/” in its name cannot be access from the command line. Nevertheless it may happen that the some object can be named that way and stored in a ROOT file. The following macro show how to…

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-get-graph-from-a-tcanvas/43243)._
