# Multigraph with a linear & a log axis (data set)

**URL:** <https://root-forum.cern.ch/t/multigraph-with-a-linear-a-log-axis-data-set/54032>\
**Category:** Newbie\
**Tags:** root\
**Created:** [March 14, 2023, 9:35pm UTC](https://root-forum.cern.ch/t/multigraph-with-a-linear-a-log-axis-data-set/54032 "2023-03-14T21:35:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![GeetJ](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/b9e5f3/32.png) [@GeetJ](https://root-forum.cern.ch/u/GeetJ)\
**Post date:** [March 15, 2023, 7:58pm UTC](https://root-forum.cern.ch/t/multigraph-with-a-linear-a-log-axis-data-set/54032/5 "2023-03-15T19:58:45Z")

</div>

I worked it out by using the transparent pad method:

> [@How to plot with a linear and log scale on two different axes on same plot?](https://root-forum.cern.ch/t/how-to-plot-with-a-linear-and-log-scale-on-two-different-axes-on-same-plot/27008):
>
> I am trying to figure out how to plot something on a linear axis and then plot another quantity on a log axis on the same plot and then have the two y-axes be on different scales as well. I’m currently attempting to do this with drawing the first histogram on a TPad and then drawing the second histogram on a transparent TPad above it. However, I am not sure how to get a log scale for the second histogram (the log scale is a property of the TCanvas I think, not a TPad) and then how to use TGaxis …

However, there are 2 X-axes that are created since the 1st dataset is in X-range of [0,50] and 2nd dataset is in [20,30]. How to plot the 2nd dataset on the X-axis of the 1st dataset?

---

_[View the full topic](https://root-forum.cern.ch/t/multigraph-with-a-linear-a-log-axis-data-set/54032)._
