Hi Richard,

thanks for reporting the issue. You are right, there is a bug in 
pgfplots 1.4.1: the 'log basis x' feature does not work correctly for 
this version.

I see the following alternatives to fix the problem:

1. Upgrade to the recently released stable version 1.5 for which the bug 
has been fixed

2. Consider uncommenting 'log basis x=10'. Uncommenting it will not 
change the appearance of your coordinates since pgfplots displays log in 
base 10 anyway. You need this particular switch if and only if you rely 
on the log of the coordinates (i.e. if you have low-level access on 
something that pgfplots has computed).

Best regards

Christian

Am 06.08.2011 13:52, schrieb Richard Janis Beckert:
> Hey there!
>
> I want to plot a function, with the x-axis using logarithmic ticks, and
> placing a label on it (see my code below). The problem is: if I use a
> placement like at (axis cs:x,y), x is not actually using the same
> coordinate system as the plot, i.e. x=3 seems to be placed at x=3
> assuming a _non_-logarithmic x-axis, while it should actually be placed
> at x=log(3). I hope it is clear what I mean... Just try the code below
> (pgfplots 1.4.1).
>
> \begin{tikzpicture}
>      \begin{axis}[
>          axis x line=center,
>          axis y line=center,
>          xlabel=$t$,
>          ylabel=$x$,
>          xmode=log,
>          log basis x=10,
>          ytick=\empty,
>          xmin=-10,
>          after end axis/.code={\node[coordinate,pin=above:{\footnotesize x}] 
> at (axis cs:3,\expnode){};}
>          \addplot[domain=1:5000,samples=1000,sharp 
> plot,mark=none,black,id=exp] gnuplot {10*exp(-x)};
>          \pgfmathsetmacro{\expnode}{10*exp(-3)};
>      \end{axis}
> \end{tikzpicture}
>
>
>
> Cheers,
> Janis
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos&  much more. Register early&  save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Pgfplots-features mailing list
> Pgfplots-features@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgfplots-features


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to