1

I would like to draw conductivity graph using tikz, so far:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\draw[<->](0,5)|-(5,0);% drawing axes
\draw(0,2)..controls(1.5,.5)..(3.2,4)--(4.6,4.1);
\end{document}

Giving me the image below enter image description here The required graph is this one below see Thanks in advance

1 Answer 1

3

The idea here is rather using rounded corners than a Bezier curve.

conductometry

\documentclass{article}
\usepackage{tikz}
\begin{document}
    \begin{tikzpicture}
        \draw[->](0,0)--(5,0) node [below left] {Volume of NaOH};
        \draw[->](0,0)-- node [sloped,at end,above left] {Conductivity} (0,5) ;
        \draw[rounded corners](0,2) node[left]{A} -- (1,1)node[below]{B}  -- (3.2,4) node[above left]{C} --(4.6,4) node[above]{D};
    \end{tikzpicture}
\end{document}

EDIT: If you want to round only point B, just separate the drawing into two different parts:

\documentclass{article}
\usepackage{tikz}
\begin{document}
    \begin{tikzpicture}
        \draw[->](0,0)--(5,0) node [below left] {Volume of NaOH};
        \draw[->](0,0)-- node [sloped,at end,above left] {Conductivity} (0,5) ;
        \draw[rounded corners](0,2) node[left]{A} -- (1,1)node[below]{B}  -- (3.2,4) node[above left]{C};
        \draw (3.2,4) --(4.6,4) node[above]{D};
    \end{tikzpicture}
\end{document}

second version

2
  • is it possible to have only point B rounded?
    – Kidegalize
    Jul 18, 2021 at 17:20
  • 4
    Yes but it's not what your picture shows. I'll edit my answer accordingly.
    – SebGlav
    Jul 18, 2021 at 17:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .