I have a problem in fixing my y ticks when having a dual axis plot. The ticks on the second plot dont match the grid of the first. Is it possible to rescale the second plot in order to make only one grid work for both plots?

This is what my code looks like on the second axis environment.

  scale only axis, % The height and width argument only apply to the actual axis
  yticklabel style={/pgf/number format/fixed,/pgf/number format/precision=0, /pgf/number format/fixed zerofill=true},
  scaled y ticks=true,
  axis y line*=right,
  axis x line=none,
  ylabel=Antenna Impedance ($\Omega$),
  ylabel near ticks

Dual axis - not fixed tikz axis

Thank you!

closed as unclear what you're asking by Heiko Oberdiek, Jesse, Adam Liter, Werner, moewe Mar 31 '14 at 6:12

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Could you please explain a bit more what exactly is the problem? – Benedikt Bauer Mar 6 '14 at 22:00
  • I need to scale the y ticks on the second plot to match the y ticks of the first thus making a global grid for both plots. – nullpointer Mar 6 '14 at 22:03
  • @user1373403: Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Speravir Mar 6 '14 at 22:17
  • 3
    Welcome to TeX.SE. It would be helpful if you turned your code into a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – Peter Grill Mar 6 '14 at 22:32
  • 1
    @user1373403, there's no general way to solve this (because the two axis environments have no knowledge of each other). So we really need to see a complete MWE setting up the plots for any hope of an answer. – Paul Gessler Mar 13 '14 at 16:03

Browse other questions tagged or ask your own question.