Tag Info

New answers tagged tikz-styles

1

You have several alternatives here: using the xmax, ymax, zmax, xmin, ymin, zmin keys or the family of keys enlarge limits, enlarge x limits, enlarge y limits, enlarge z limits. A little example (the example is 2D, but the same idea applies for 3D plots): \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[axis ...

2

Syntax c1.120 means a point at intersection of c1 node's border and a line with angle 120 degrees from node's center. In your case this point is on top border and \draw[->] (c1.120) |- (c1\value.east); crosses the node. If you want to respect this syntax, you just need to select an angle which places starting point on bottom border, like c1.250. ...

3

I couldn't resist. This Metapost version might give you some ideas of how to do things in TikZ if that's your chosen approach. prologues := 3; outputtemplate := "%j%c.eps"; vardef decorate(expr line, ttl) = if ttl > 0: save m, p; pair m; m = point 1/6 of line rotatedabout(point 1/2 of line, 90); path p; p = point 0 of line -- m -- ...

3

The edge from parent node[left]{$L$} and the alike were put at the wrong positions. The new position indicated by <--are the correct positions. Also the sibling distance for level 3 was modified a little bit show the space. Admittedly, @cfr's solution is recommended. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...

3

Welcome to TeX SE! Personally, I would use forest for any tree. The code is much more compact and the package is a lot more powerful. This is a fairly simplistic use: \documentclass[tikz,border=5pt]{standalone} \usepackage{forest} \begin{document} \tikzset{ solid node/.style={circle,draw,inner sep=1.5,fill=black}, hollow ...

4

You need axis line style for that \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10,} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$x$,ylabel=$y$, enlargelimits=false, 3d box=complete, grid, grid style={dashed,gray!40}, axis line style={gray!40} %% <-------------------- ] \addplot3[surf] {x^2-y^2}; \end{axis} ...

5

I managed to finaly come up with a TikZ solution. It uses markings to define coordinates along the arrow and connects them afterwards. \documentclass[tikz]{standalone} \usetikzlibrary{matrix,arrows,arrows.meta,bending,decorations.pathreplacing, decorations.pathmorphing,decorations.markings,fit,patterns, ...

3

This is what I got so far. First I found, in tikz.code.tex, that TikZ stores your colors in \tikz@fillcolor, \tikz@strokecolor, and \tikz@textcolor. So I wrote a test. \tikzset{ every text node part/.add code={}{ \xdef\thisnodefillcolor{\tikz@fillcolor} \xdef\thisnodedrawcolor{\tikz@strokecolor} ...

2

As already mentioned in my comment, you can use \node[whitebox,draw=none,fill=none]... or you can change the draw=white and fill=white options of the whitebox style to draw=none and fill=none. Note, that the up to date syntax for setting styles is \tikzset{whitebox/.style={...}} Additionally the option thick will be overwritten by the later option line ...

6

As I see now, my answer is a little bit off from the originally intended question. Nevertheless, I find the idea of the inverted colors nice and if you don't mind I keep the answer for a future reader who looks for something like this. I had to mock up the missing R3 picture for the background. So, you will have to adapt the following length settings to ...

3

A boat! Couldn't resist. This should get you started. \documentclass[tikz,border=4mm]{standalone} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[x=0.5cm,y=0.5cm,thick,line cap=round] \draw (0,4) -- (4,0) -- +(0,-2); \draw (4,-2) to[out=180,in=-90,looseness=1.2] (0,4); \draw (0,4) to [out=50,in=190,looseness=0.8] ...

6

Here's a Metapost approach, using a macro to do the half-arrow. The arguments to the macro are a path and a colour. The arrow is made by moving segments of the path and then joining them up. prologues := 3; outputtemplate := "%j%c.eps"; vardef do_half_arrow(expr p, shade) = save base, shaft, outline, barb; path base, shaft, outline; pair barb; ...

Top 50 recent answers are included