# All of my graphs are not shown by using 'same' option

**URL:** <https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541>\
**Category:** Newbie\
**Created:** [June 24, 2021, 4:38pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541 "2021-06-24T16:38:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keyvan\_Tabaei](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_tabaei/32/25908_2.png) [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Post date:** [June 24, 2021, 4:38pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541/1 "2021-06-24T16:38:21Z")

</div>

hi dear experts,  
i am trying to plot multiple graphs on the same canvas by using the ‘same’ option.  
all of the graphs are plotted and shown as well as i wanted except one. it is because of its data range

 ![Screenshot from 2021-06-24 12-29-57](https://root-forum.cern.ch/uploads/default/original/3X/3/0/30d6183f7f9319292f9cc96ea5bac9889dcbd4fc.png)

there is another graph that is not showed. (its highest value is a little over 1e-3)  
is there any method to plot all of them?  
i attached my .root file and plot code .  
many thanks,

[result.root](https://root-forum.cern.ch/uploads/short-url/fhb8R8sfHg616rlkqgXdiaZrlaD.root) (48.5 KB)  
[plot.c](https://root-forum.cern.ch/uploads/short-url/4yTdHW9J8teYkjgCsxu85YUJk2e.c) (3.2 KB)

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 24, 2021, 6:27pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541/6 "2021-06-24T18:27:03Z")

</div>

Your original macro with problems fixed: [plot.cxx](https://root-forum.cern.ch/uploads/short-url/7nsfVxD85IxAwjrQ4aT3ZzII2US.cxx) (4.5 KB)

Another approach (seems better to me): [plot\_mg.cxx](https://root-forum.cern.ch/uploads/short-url/vXLsnEjAusufXW16dCuyM2dLSdL.cxx) (3.6 KB)

---

<div class="post-metadata">

**Author:** ![Keyvan\_Tabaei](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/keyvan_tabaei/32/25908_2.png) [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Post date:** [June 24, 2021, 9:32pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541/7 "2021-06-24T21:32:06Z")

</div>

thank you so much dear Wile\_E\_Coyote

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 8, 2021, 9:32pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541/8 "2021-07-08T21:32:13Z")

</div>

Closed on July 8, 2021, 9:32pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
