New answers tagged

3

Another option. In this case, outer segments are drawn with arcs. If you don't want the border, they could be drawn with just an arc with the correct line width. As a first solution all angles are defined by hand, but it's not too difficult to define them automatically. \documentclass[margin=3mm, tikz]{standalone} \usepackage{tikz} \usetikzlibrary{shapes....


3

I let the author of the previous answer modify his figure because I didn't follow the same way to build this figure. As I didn't quite understand everything you want, here is a first approach. I use nodes, 3 in the form of a circle, 3 in the form of a pentagon. The latter are used to place the text at the top of these pentagons. The radii of the circles are ...


12

A PSTricks solution only for either fun or comparison purposes. \documentclass[pstricks,dvipsnames]{standalone} \usepackage{pst-geo} \psset { Decran=9.6, path=C:/texlive/2020/texmf-dist/tex/generic/pst-geo/data, } \begin{document} \begin{pspicture}(-5,-5)(5,5) \WorldMapThreeD[circles=false,blueEarth=true] \pscircle{4} \psset{linewidth=...


17

Compile with Asymptote. Step 1: Find an image in svg of earth on the internet! Example: an image Step 2: Convert it (from svg to eps), save as for example Glose.eps. Online tool like https://convertio.co/vn/svg-eps/. Step 3: Create asy code and put Glose.eps in the same folder. unitsize(1cm); label(graphic("Globe.eps","width=5cm"),(0,0));...


17

So I tried to reproduce the graphics you posted but removing the circle around the Earth and using it to make the equator. Yes, it's a shaded sphere but its position is accurate, trust me. If there is something unclear about the code, please feel free to ask so that it might help you if you decide to do more in TikZ. You can replace the shaded sphere in the ...


1

A simple, short code with using graph and graph.standard TikZ libraries: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary {graphs, graphs.standard} \begin{document} \begin{tikzpicture} \graph [nodes={fill, circle, inner sep=1pt, outer sep=0pt}, clockwise, radius=1cm, empty nodes, n=8] { subgraph ...


1

A PSTricks solution only for either fun or comparison purposes. \documentclass[pstricks,margin=5mm]{standalone} \usepackage{pst-node,pst-plot} \def\N{10} \begin{document} \begin{pspicture}[showpoints,dotscale=2,linecolor=red,plotpoints=\numexpr\N+1\relax](-4,-4)(4,4) \curvepnodes{0}{360}{4 t PtoC}{A} \curvepnodes{0}{360}{2 t PtoC}{B} \psnpolygon(...


3

Using your own tikzpicture: \documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{positioning} \usetikzlibrary{shapes.geometric, positioning, calc} \tikzset{main node/.style={circle,fill=black,draw,minimum size=.2cm,inner sep=0pt},} \tikzset{mynode/.style={circle, radius=.25pt, draw=darkgray, fill=white}} \begin{center} ...


1

Well, it is a node, and you've set every node/.style={...} in the options to the tikzpicture ... One workaround is to use a scope environment and set every node for that. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ scale=.35, auto=left, % minimum size=0.3 cm, font = \scriptsize ] \begin{scope}[every node/....


3

An alternative with tikz-cd. Output Code \documentclass[tikz, margin=10pt]{standalone} \usepackage{tikz-cd} % if tikz is already loaded, you can also use \usetikzlibrary{cd} \tikzcdset{arrows={thick}} \begin{document} \begin{tikzcd}[% row sep=1cm, column sep=1cm, cells={nodes={draw, circle, thick}}, ] &...


1

This may point you in the right direction with tkz-graph package \documentclass{standalone} \usepackage{tkz-graph} \begin{document} \begin{tikzpicture} \draw[help lines] (0,-2) grid (4,2); \SetGraphUnit{2} \GraphInit[vstyle=Normal] \Vertex{A} \EA(A){B} \NO(B){C} \SO(B){D} \EA(B){E} \Edges(A,D,E,C,A,B,E) \end{tikzpicture} \end{...


Top 50 recent answers are included