scale - Latex pgfplots loglogaxis scaling -


i have loglog axis in latex , want change scaling of y-axis this: y-axis should signed with: 5*10e1, 10e2, 2*10e2 numbers should shown in integer like: 50, 100, 200. gird of diagramm should stay same.

\documentclass[12pt]{scrartcl}  \usepackage[paperwidth=18cm, paperheight=12cm]{geometry}  %digrammzeug \usepackage{pgfplots}   \begin{document}  \thispagestyle{empty} % um die seitenzahl zu endfernen \newgeometry{left=0.1cm, right=0.1cm, top=0.1cm, bottom=0.1cm}   \begin{figure}    \centering    \begin{tikzpicture}    \begin{loglogaxis}[    axis x line=bottom,    axis y line=left,    ymax = 2.1*10^2,    xlabel=n (log),   ylabel=$ \mathrm{s_a} $ in mpa (log),   every axis x label/.style={      at={(ticklabel* cs:1.05)},      anchor=west,   },   every axis y label/.style={      at={(ticklabel* cs:1.05)},      anchor=south,   },   ytick={10, 100},     scale=1.6,   grid=both,   tick align=outside,   tickpos=left,   ]    %lasth 1   \node @ (axis cs: 10^5.25,10^2.193) {lasthorizont i};    %lasth 2   \node @ (axis cs: 10^6.2,10^1.955) {lasthorizont ii};    %lasth 1 - 2 gerade   \addplot[black, mark=square*] coordinates { (50966, 155.74) (477468, 90.16)};    %lasth 2 - n_d gerade   \addplot[black,no marks] coordinates { (477468, 90.16) (2.5*10^6, 60.16677272)};    %dauerfestigkeit   \addplot[black, mark=square*, mark indices={1}] coordinates { (2.5*10^6, 60.16677272) (10^7, 60.16677272)};   \addplot[black, dotted, no marks] coordinates { (2.5*10^6, 60.16677272) (10^7.3, 60.16677272) };     \addplot[black, dashed] coordinates { (10^4, 60.16677272) (2.5*10^6, 60.16677272) };    %beschriftung   \addplot[dashed] coordinates { (2.5*10^6, 60.16677272) (2.5*10^6, 10^1.7)};   \node @ (axis cs: 10^5.4,10^1.85) {zeitfestigkeit};   \node @ (axis cs: 10^5.4,10^1.74) {dauerfestigkeit};   \node @ (axis cs: 10^6.85,10^1.73) {$ n_d=2,5\cdot10^6 $};   \node @ (axis cs: 10^4.4,10^1.cool {$ s_{ad} \approx $ 60.17};    %lasthorizont iii   \addplot[black, thick, mark=x] coordinates {(180000, 117.49)};   \node @ (axis cs: 10^5.8, 10^2.07) {lasthorizont iii};    \end{loglogaxis}   \end{tikzpicture}  \end{figure}   \end{document} 

i realize question has been asked long ago, , belongs on tex.stackexchange.com, looking solution , find question without answer; i've found working solution share below. found answer question in @jake's one , two answers.


what you're looking (i think) combination of axis environment xmode=log , ymode=log. in order axis labeled combine log ticks fixed point. default pgf option modify both axis.

since you're asking specific y-axis ticks use working example below using new definition of pgfplotsset. way, commented line .cool since i'm not familiar , causes problems me, feel free un-comment it.

   \begin{tikzpicture}     \pgfplotsset{   log x ticks fixed point/.style={       xticklabel={         \pgfkeys{/pgf/fpu=true}         \pgfmathparse{exp(\tick)}%         \pgfmathprintnumber[fixed relative, precision=3]{\pgfmathresult}         \pgfkeys{/pgf/fpu=false}       }   },   log y ticks fixed point/.style={       yticklabel={         \pgfkeys{/pgf/fpu=true}         \pgfmathparse{exp(\tick)}%         \pgfmathprintnumber[fixed relative, precision=3]{\pgfmathresult}         \pgfkeys{/pgf/fpu=false}       }   } }     \begin{axis}    [xmode=log,    ymode=log,    log x ticks fixed point,    axis x line=bottom,    axis y line=left,    ymax = 2.1*10^2,    xlabel=n (log),   ylabel=$ \mathrm{s_a} $ in mpa (log),   every axis x label/.style={      at={(ticklabel* cs:1.05)},      anchor=west,   },   every axis y label/.style={      at={(ticklabel* cs:1.05)},      anchor=south,   },   ytick={10, 100},     scale=1.6,   grid=both,   tick align=outside,   tickpos=left,   ]    %lasth 1   \node @ (axis cs: 10^5.25,10^2.193) {lasthorizont i};    %lasth 2   \node @ (axis cs: 10^6.2,10^1.955) {lasthorizont ii};    %lasth 1 - 2 gerade   \addplot[black, mark=square*] coordinates { (50966, 155.74) (477468, 90.16)};    %lasth 2 - n_d gerade   \addplot[black,no marks] coordinates { (477468, 90.16) (2.5*10^6, 60.16677272)};    %dauerfestigkeit   \addplot[black, mark=square*, mark indices={1}] coordinates { (2.5*10^6, 60.16677272) (10^7, 60.16677272)};   \addplot[black, dotted, no marks] coordinates { (2.5*10^6, 60.16677272) (10^7.3, 60.16677272) };     \addplot[black, dashed] coordinates { (10^4, 60.16677272) (2.5*10^6, 60.16677272) };    %beschriftung   \addplot[dashed] coordinates { (2.5*10^6, 60.16677272) (2.5*10^6, 10^1.7)};   \node @ (axis cs: 10^5.4,10^1.85) {zeitfestigkeit};   \node @ (axis cs: 10^5.4,10^1.74) {dauerfestigkeit};   \node @ (axis cs: 10^6.85,10^1.73) {$ n_d=2,5\cdot10^6 $};   %\node @ (axis cs: 10^4.4,10^1.cool {$ s_{ad} \approx $ 60.17};    %lasthorizont iii   \addplot[black, thick, mark=x] coordinates {(180000, 117.49)};   \node @ (axis cs: 10^5.8, 10^2.07) {lasthorizont iii};    \end{axis}   \end{tikzpicture} 

this provides following figure:

which provides following


Comments