Hello Christian,

> you asked me to add a feature which automatically assigns labels to
> coordinates in order to allow something like
> 
> \node[pin=the 4th coord] at (coord4) {};
> 
> Well, this is already possible without any further changes:
> 
> \begin{tikzpicture}
>      \begin{axis}[
>          nodes near coords={}, 
>          every node near coord/.style={
>              anchor=center,name=plotidx\coordindex,
>          },
>          clip marker paths=true
>      ] 
>          \addplot {x}; 
>              \node[pin=Nummer 4] at (plotidx4) {};
>              \node[pin=-45:Nummer 14] at (plotidx14) {};
>      \end{axis}
> \end{tikzpicture}
> 
> The 'nodes near coords={}' means to install the nodes near coords style
> with empty node text. The 'every node near coords/.style' causes the nodes
> to be centered at the coordinates and the 'name=...' assigns names.
> 
> This defines labeled pgf coordinates plotidx0, ..., plotidx25.
> Unfortunately, the 'clip marker paths=true' thing is still necessary
> (might be changed eventually) because pgfplots draws marks (and nodes near
> coords) after the axis description.

that is awesome. This makes things so much easier especially when you draw
plots from tables and with that feature one doesn't have to look at that
table any more to look for a coordinate to add a pin or label.


> I hope this helps.

You have no idea. Many thanks for that hint!

But I heard from a reliable source that there will be an at least even
alternative in the next release ;)


Best regards,
Stefan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to