Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

1

\documentclass[margin=1cm, tikz]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale = 2] % Red half oval \begin{scope}[shift = {(0,0)}, local bounding box = redScope] \clip(1,-1)rectangle(-1,0.7); \draw[red] (0,0) circle [x radius=6mm, y radius=1cm]; \end{scope} \node[red] at (redScope.west) {$\mathsf{K}*\...


2

This produces something similar to your screen shot. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \foreach \Y [count=\Z] in {-1,1} {\draw[name path=elli-\Z] (0,\Y) circle[x radius=3,y radius=0.9];} \draw[red,name path=elli-3] (0,1.9) arc(35:-220:1.6 and 2.4) node[pos=0.8,left]{$\...


1

I don't understand the mathematical or logical meaning of your diagram (e.g. does the red ellipse need to be tangent with the black ellipse?), so I can't redraw it accurately. However, the following code draw two full ellipses and one partial ellipse. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) ellipse (2cm and 1cm); \...


3

I think that the question is more how to know which algorithm to employ. I do not have a general answer but in this case you may want to do \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing, graphs.standard} \usegdlibrary{force} \begin{document} \begin{tikzpicture} \graph[spring layout, nodes={circle, draw}, ]{ ...


Top 50 recent answers are included