Diagramm mit logarithmischer Einteilung

Tabellen und Grafiken erstellen und anordnen


Tonemann
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Fr 29. Apr 2011, 01:50

Diagramm mit logarithmischer Einteilung

Beitrag von Tonemann »

Hallo,

ich beise mir schon eine Weile die Zähne aus an folgendem Problem:
Ich möchte ein Diagramm erstellen, bei dem die X-Achse logarithmiert ist.

Ein Diagramm mit normaler Einteilung habe ich bereits hinbekommen:
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{pgfplots}

\begin{document}
\begin{figure}[H]
\centering

\begin{tikzpicture}

\begin{axis}[yticklabel style={% 
             /pgf/number format/.cd, 
             fixed, 
             fixed zerofill, 
             precision=1, 
             xlabel={$\lg\omega $  [$\mathrm{s^{-1}}$]},
             ylabel={$\varphi$ [°]}},
             width=0.8\textwidth,height=0.3\textheight,
             enlarge x limits=0.05,           
             extra y ticks={},
             ymax=90,
             xmax=4,
			       extra y tick labels={},
			       extra y tick style={grid=major,
				     tick label style={xshift=12.5cm}},
				     extra x ticks={},
			       extra x tick style={grid=major,
				     tick label style={yshift=-1.4cm}}]
             
%Kurve
\addplot +[mark=none, smooth] coordinates
{(1.798,89.28) (2.497,73.62) (2.798,42.69) (2.912,54.30) (2.944,50.42) (2.974,53.89) (3.000,50.37) (3.029,44.08) (3.099,46.33) (3.275,3.59) (3.400,27.20) (3.497,21.59) (3.576,19.34) (3.701,20.08) (3.798,10.06)};
\end{axis}

\end{tikzpicture}
\end{figure}

\end{document}
Wie krieg ich das hin?

Vielen Dank für eure Hilfe!

Feuersaenger

logarithmische Achsen

Beitrag von Feuersaenger »

Hallo Tonemann,

ist
\begin{semilogxaxis} .... \end{semilogxaxis}
das, was Du moechtest?

Mit liebem Gruss

Christian[/code]

Tonemann
Forum-Newbie
Forum-Newbie
Beiträge: 5
Registriert: Fr 29. Apr 2011, 01:50

Beitrag von Tonemann »

jau, danke. das ist es!

VIIIIIIIIIIIIIELEN DANK

Antworten