# Labeling Two PLot Axis

**URL:** <https://community.wolfram.com/t/labeling-two-plot-axis/7477>\
**Category:** Questions\
**Tags:** mathematica, graphics-and-visualization, graphs-and-networks\
**Created:** [December 16, 2015, 5:12pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477 "2015-12-16T17:12:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![syedmuhammadhilmisa](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@syedmuhammadhilmisa](https://community.wolfram.com/u/syedmuhammadhilmisa)\
**Post date:** [December 16, 2015, 5:12pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/1 "2015-12-16T17:12:00Z")

</div>

Hi,

I have been using TwoPlotAxis Initialization that was provided, however I have two problem.

1. I could not find any suitable ways to include labeling of the graph on x-axis and both y-axis.
2. Is there any ways to rescale the y-axis on the right side to make it appears as the range in the left side of the y-axis?

Thanks,

Syed

---

<div class="post-metadata">

**Author:** ![josklaps1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/josklaps1/32/22044_2.png) [@josklaps1](https://community.wolfram.com/u/josklaps1)\
**Post date:** [December 16, 2015, 8:55pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/2 "2015-12-16T20:55:16Z")

</div>

Hi Syed,

I hope this will help. Please find attached the updated code.

Cheers…Jos

---

<div class="post-metadata">

**Author:** ![syedmuhammadhilmisa](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@syedmuhammadhilmisa](https://community.wolfram.com/u/syedmuhammadhilmisa)\
**Post date:** [December 17, 2015, 11:07am UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/3 "2015-12-17T11:07:05Z")

</div>

Hi Jos,

Thanks a lot. It work!

---

<div class="post-metadata">

**Author:** ![syedmuhammadhilmisa](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@syedmuhammadhilmisa](https://community.wolfram.com/u/syedmuhammadhilmisa)\
**Post date:** [January 19, 2016, 5:35pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/4 "2016-01-19T17:35:34Z")

</div>

Hi,

Is there any way that I can re-scale the axis on the right side of the two-plot axis to not include any decimal place and, perhaps, sharing the same level of origin value to the left side of the plot?

Thanks

---

<div class="post-metadata">

**Author:** ![sagoint1971](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sagoint1971](https://community.wolfram.com/u/sagoint1971)\
**Post date:** [January 19, 2016, 5:45pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/5 "2016-01-19T17:45:05Z")

</div>

good

---

<div class="post-metadata">

**Author:** ![josklaps1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/josklaps1/32/22044_2.png) [@josklaps1](https://community.wolfram.com/u/josklaps1)\
**Post date:** [January 20, 2016, 10:04pm UTC](https://community.wolfram.com/t/labeling-two-plot-axis/7477/6 "2016-01-20T22:04:06Z")

</div>

Hi Muhammad,

Probably this will help: make ‘plot 1 + plot 2 and use Overlay’.

See example and details in file attached.

```
(* Step 1: make a plot with Ticks on y1 and Frame *)
p1 = Plot[Sin[x], {x, 0, 10}
   , Frame -> {{True, None}, {True, True}}
   , FrameTicks -> {{Automatic}, {{-0.9, "-1"}, {-0.5, "-0.5"}, {0, 
       "0"}, {0.5, "0.5"}, {0.9, "1"}}}
   , FrameStyle -> Automatic
   , FrameTicksStyle -> {{None, 
      Red}, {Directive[FontColor -> Gray, White], None}}
   , PlotRangePadding -> 0
   , ImagePadding -> 35
   ];

(*Step 2: make a the same plot with Ticks on y2 and Frame *)
p2 = Plot[Sin[x], {x, 0, 10}
  , Frame -> {{None, True}, {None, None}}
  , FrameTicks -> {{{-0.9, "1"}, {-0.5, "2"}, {0, "3"}, {0.5, 
      "4"}, {0.9, "5"}}, {Automatic, Automatic}}
  , FrameStyle -> Automatic
  , FrameTicksStyle -> {{None, 
     Red}, {Directive[FontColor -> Gray, White], None}}
  , PlotRangePadding -> 0
  , ImagePadding -> 35
  ]

(*Step 3: Overlay Plot 1 and Plot 2 *)
Overlay[{p1, p2}]

```
