Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Easy curves in TikZ

I want to draw an equivalent of the following pstricks picture with tikz.

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}
\psaxes[ticks=none,labels=none]{->}(0,0)(-2,-2)(2,2)
\pscurve(1,1)(1.4,0.5)(0.4,-0.2)(0.6,-0.2)(0.2,-1.4)
             (-0.5,-1.1)(-1,-1.6)(-1.4,0.4)
\end{pspicture}
\end{document} 

It is a simple curve which represents an area.

I couldn't find such a question which isn't imaginable

share|improve this question

marked as duplicate by Marco Daniel, Joseph Wright Dec 29 '11 at 13:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I'm struggling to imagine a scenario for which such a drawing would be necessary. Also, it doesn't represent an area! Perhaps tex.stackexchange.com/questions/33607/easy-curves-in-tikz can be a good start though. –  qubyte Dec 27 '11 at 11:40
    
@MarkS.Everitt: It's part of a picture. The curve represents the border of two areas. –  Marco Daniel Dec 27 '11 at 11:42
    
And look at tex.stackexchange.com/questions/7548/… –  Alain Matthes Dec 27 '11 at 11:46
    
@Altermundus: Ah! That's a nice catch. Perhaps this question should be closed as a duplicate... –  qubyte Dec 27 '11 at 11:51
    
I voted for closing this question as duplicated. –  Marco Daniel Dec 27 '11 at 11:58
show 2 more comments

1 Answer 1

up vote 12 down vote accepted

Not quite the same, but you may get close if you play around with the tension.

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
    \draw[->] (-2,0) -- (2,0);
    \draw[->] (0,-2) -- (0,2);
    \draw[thick] plot [smooth,tension=1.5] coordinates{(1,1) (1.4,0.5) (0.4,-0.2) (0.6,-0.2) (0.2,-1.4) (-0.5,-1.1) (-1,-1.6) (-1.4,0.4)};
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer
    
Can I somehow obtain the coordinates of the point at some arbitrary position on the resulting curve? –  Dror Apr 11 at 7:52
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.