I am attempting to create a graph showing some results, and to plot SI units on the left Y-axis and Imperial units on the right y-axis. My MWE so far is getting close, but as you can see from the screenshot the right Y-axis is not scaled properly nor is it in the correct location. What am I missing for the right Y-axis to get this displayed properly?
\documentclass[letterpaper]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\begin{axis}[%
width=\linewidth,
xmin=0, xmax=200,
ymin=0, ymax=500,
domain=2:200,
range=0:700,
samples=101,
axis y line=left,
restrict y to domain =0:700,
yticklabel style={
/pgf/number format/fixed,
/pgf/number format/precision=0
},
scaled y ticks=false,
xlabel={Dimension Ratio $DR$},
ylabel={Allowable Pressure (kPa)},
every axis plot/.append style={ultra thick},
legend pos=south west
]
%
\addplot[
smooth,
color=black,
]
plot {0.05/0.1(2205000/(3(x-1)^3)+0.0610.40)1000};
\addlegendentry{$E' = 0.40$ MPa}
%
\end{axis}
\begin{axis}[
axis y line*=right,
axis x line=none,
xmin=0, xmax=1,
ymin=0, ymax=10442.72,
ylabel={Allowable Pressure (psf)},
yticklabel style={
/pgf/number format/fixed,
/pgf/number format/precision=0
},
scaled y ticks=false,
]
\end{axis}
\end{tikzpicture}
\end{center}
\caption{Allowable Pressure}
\end{figure}
\end{document}

width) for both axes. – Torbjørn T. Oct 06 '20 at 19:45\addplot [..] plot {...};->\addplot [..] {...};, you don't need theplotkeyword there. – Torbjørn T. Oct 06 '20 at 19:53\linewidth? – grfrazee Oct 06 '20 at 20:01tikzpicturein aresizebox, but that will of course resize the text as well. – Torbjørn T. Oct 06 '20 at 20:11