Dear Nico,

thanks for your mail!

What precisely is the error message when you try to create the plot?

I have tried your example with fake plot data and it appears to work (compare the attached files).

So, I suggest that you have either data points whose range is far beyond your provided axis limits or you have an old version of pgfplots. Your .log file might give additional information.

Best regards

Christian

Am 03.02.2011 14:03, schrieb Nico Erbs:

Hi Christian,

Obviously, I can’t post anything in the mailing list. Sorry for getting in contact with you directly.

I want to plot data on a logarithmic x axis from 0.000005 to 1, but beginning at 1 and ending at 0.000005. I can't figure out what's going wrong.

The code is as follows:

==================

\begin{tikzpicture}[

/pgfplots/width=0.45\textwidth,

/pgfplots/height=0.25\textheight]

\begin{semilogxaxis}[

xtick={0.00001,0.0001,0.001,0.01,0.1,1},

xticklabels={.001\%,.01\%,.1\%,1\%,10\%,100\%},

xmin=0.000005,

xmax=1,

ymin=0.1,

ymax=0.40,

]

\addplot[smooth, mark=square*, mark options={fill=black}, loosely dashed] file {points.data};

\end{semilogxaxis}

\end{tikzpicture}

==================

I tried to use 'x dir = reverse' but it had no effect and I switched 'xmin' and 'xmax' but the ticks and data points disappeared.

Thanks in advance,

Nico

--

Nicolai Erbs

Doctoral Researcher

Ubiquitous Knowledge Processing Lab

FB 20 Computer Science Department

Technische Universität Darmstadt

Hochschulstr. 10, D-64289 Darmstadt, Germany phone [+49] (0)6151 16-7477, fax -5455, room S2/02/B117 n_e...@tk.informatik.tu-darmstadt.de <mailto:n_e...@tk.informatik.tu-darmstadt.de>

www.ukp.tu-darmstadt.de <http://www.ukp.tu-darmstadt.de>


\documentclass[a4paper]{article}
\usepackage{german}
\usepackage[utf8]{inputenc}

\usepackage{pgfplots}

\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{colortbl}

\begin{document}

%\tracingcommands=2\tracingmacros=2
\begin{tikzpicture}[
 /pgfplots/width=0.45\textwidth,
 /pgfplots/height=0.25\textheight]

\begin{semilogxaxis}[
 xtick={0.00001,0.0001,0.001,0.01,0.1,1},
 xticklabels={.001\%,.01\%,.1\%,1\%,10\%,100\%},
 xmin=0.00005,
 xmax=1,
 ymin=0.1,
 ymax=0.40,
]

\addplot[smooth, mark=square*, mark options={fill=black}, loosely dashed] coordinates {(0.00007,0.2) (1,0.3)};

 \end{semilogxaxis}
\end{tikzpicture}
\begin{tikzpicture}[
 /pgfplots/width=0.45\textwidth,
 /pgfplots/height=0.25\textheight]

\begin{semilogxaxis}[
 xtick={0.00001,0.0001,0.001,0.01,0.1,1},
 xticklabels={.001\%,.01\%,.1\%,1\%,10\%,100\%},
 xmin=0.00005,
 xmax=1,
 ymin=0.1,
 ymax=0.40,
 x dir=reverse,
]

\addplot[smooth, mark=square*, mark options={fill=black}, loosely dashed] coordinates {(0.00007,0.2) (1,0.3)};

 \end{semilogxaxis}
\end{tikzpicture}
\end{document}

Attachment: P.pdf
Description: Adobe PDF document

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to