I would like to plot data with pgfplots that has two interessting x-ranges:
- 0 <= x <= 300
- limit for x -> inf (or some defined upper boundary)
So, to show both ranges appropriately, my idea is to have a single plot which has a linear scale from x = 0 up to x = 300 and a logarithmic scale for the x-axis above. Additionally, since the first range (linear scale) is more important than the second one (logarithmic scale), it should have a greater width. Let the width-ratio be 3:1.
Here a MWE with a sample of the data to plot. It produces two plots, one with linear scale and another one with logarithmic scale:
\documentclass[crop, tikz]{standalone}
\usepackage{pgfplots}
\usepackage{filecontents}
\begin{filecontents}{sample.csv}
1, 2.42
100, 2.54
200, 2.66
300, 2.75
400, 2.81
1000, 2.94
2000, 2.97
3000, 2.98
5000, 2.99
10000, 3.00
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=x,
ylabel=y,
xmin = 0,
xmax = 10000,
grid = both],
\addplot[line width=1pt,solid,color=cyan, solid] table[col sep=comma]{sample.csv};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{semilogxaxis}[
xlabel=x,
ylabel=y,
xmin = 0,
xmax = 10000,
grid = both],
\addplot[line width=1pt,solid,color=cyan, solid] table[col sep=comma]{sample.csv};
\end{semilogxaxis}
\end{tikzpicture}
\end{document}

