Hot answers tagged

8

Why not make use of pgfplots's cycle list feature which automatically chooses another line- and pointstyle, as well as another color for each line. \documentclass[a4paper]{abntex2} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{siunitx} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{figure} \centering \begin{...


7

If --cycle does not work for you, one option would be to adjust the out and in angle so that the lines are at the same angle as what they are connecting to. This slightly changes the shape, so if that is not required to be that precise you can get (at 6400% zoom on the left hand side): Notes: On the left hand side I changed 270 to 250, but on the right ...


5

I have a tikz/pgfplot solution: \documentclass[border=15pt]{standalone} \usepackage{tikz} \usepackage{pgfplots}\pgfplotsset{compat=1.13} \usetikzlibrary{arrows,positioning,calc,patterns} \begin{document} \begin{tikzpicture}[ thick] \begin{axis}[ xmin=-3, xmax=6, ymin=-5, ymax=5, axis x line = center, ...


4

A solution with tikzpicture: \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \usetikzlibrary{positioning} \begin{document} \begin{figure}[htb] \begin{minipage}{0.4\textwidth} \begin{tikzpicture} \node (img) {\includegraphics[scale=0.225]{example-image}}; \node[below=of img, node distance=0cm, yshift=1cm,font=\color{red}] {x-axis}; \...


4

As there's no solution so far with Tikz/pgf, I propose an easy solution with pstricks. It's compilable with pdflatex if you launch it with the --enable-write18 switch (for MiKTeX) or -shell-escape (TeX Live, MacTeX). Alternatively, you can compile with XeLaTeX. \documentclass[x11names, border=3pt]{standalone} \usepackage{fourier} \usepackage{pst-plot} \...


3

No need to clip; you can use fill opacity. Start with: \documentclass[margin=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ thick] \draw [fill=cyan, fill opacity=0.5] (0,0) circle (2cm); \draw [fill=orange, fill opacity=0.5] (3,-1) circle (2.5cm); \end{tikzpicture} \end{document} and the rest of the thing is a bit ...


1

Here's a sketch with a curve closely looking like your curve: it's one of the standard elliptic cubics. I used pst-plot: \documentclass[11pt, a4paper, x11names]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{pst-plot} \usepackage{pst-node} \usepackage{auto-pst-pdf} \def\f{sqrt(2.2*x*(x^2-4))} \begin{...


1

Here's a suggestion which doesn't use nesting of tikzpictures. To position the plots I've simply positioned origingreen relative to the teacher2 node using \coordinate (origingreen) at ([yshift=-5cm,xshift=0.5cm]teacher2.south west);. The axis lines are already drawn relative to the origin, so what remains is to shift the plot, and that you can do by adding ...



Only top voted, non community-wiki answers of a minimum length are eligible