# Graph with strings as x axis

**URL:** <https://root-forum.cern.ch/t/graph-with-strings-as-x-axis/38274>\
**Category:** Newbie\
**Created:** [March 5, 2020, 11:42am UTC](https://root-forum.cern.ch/t/graph-with-strings-as-x-axis/38274 "2020-03-05T11:42:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kevinlinxc](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kevinlinxc/32/21030_2.png) [@kevinlinxc](https://root-forum.cern.ch/u/kevinlinxc)\
**Post date:** [March 5, 2020, 11:56am UTC](https://root-forum.cern.ch/t/graph-with-strings-as-x-axis/38274/2 "2020-03-05T11:56:30Z")

</div>

Alternative question:  
I can draw a graph:

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/5/7/57324ab672732a0f0e6901e6cdddb952726d137c.png)  
and a histogram:  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/a/5/a5282ef717aa29d7efbb4438d50ac2b4c7b699ee.png)  
But not both in one canvas/one run of the macro. If I put any option in the histogram’s Draw(), the graph stays, and if I pass no options to the histogram’s Draw(), the histogram is drawn as in the second image. I’ve tried Draw(“SAME”)

---

_[View the full topic](https://root-forum.cern.ch/t/graph-with-strings-as-x-axis/38274)._
