New answers tagged

1 vote

How to break line in a text node in a tikz forest diagram

Just adding align=center everywhere will work but give strange-looking results if line breaks are added to the root or leaf nodes. For the root, we need to adjust anchor to avoid 'squashing' the path ...
cfr's user avatar
  • 196k
0 votes

How to break line in a text node in a tikz forest diagram

Add alignment (align) key, and then you can use \\ to separate your text in different lines. \documentclass{article} \usepackage{tikz} \usepackage[edges]{forest} \begin{document} \begin{figure}[!...
Mane32's user avatar
  • 510
1 vote

Replacing a square with a star in TikZ

The shapes.geometric library (see section "71.3 Geometric Shapes" of the user manual) provides a star shape: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \...
samcarter_is_at_topanswers.xyz's user avatar
0 votes

How to change base value on x-achsis in a Tornado plot?

Thanks - the latter version is what I wanted. In this case, I can show values as % and there is no need for x-axis shift. \documentclass[margin=5pt]{standalone} \usepackage[dvipsnames,table,xcdraw]{...
Fantastic MsFox's user avatar
3 votes
Accepted

How to change base value on x-achsis in a Tornado plot?

A vairation of this nice solution would be to shift the labels on the x axis by 5.43. Note that you don't need to load tikz and pgfplots if you load pgfplotstable as they are loaded anyways, but you ...
Jasper Habicht's user avatar
1 vote

Quantikz: how to draw zig-zag lines connecting gates on different wires?

Quantikz is built on the tikz-cd package and so you can use tikz-cd code within the quantikz environment. For producing a zigzag, the arrow command can be used with appropriately selected options. To ...
kmc42's user avatar
  • 11
2 votes

Select precisely the departure of a line between nodes

You can use nodename.angle to specify the position on the edge of the node where your line should start: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

Is there a way to easily make a stick diagram like this in Latex?

It's been a long time since I used TikZ without geometry. Here a classic solution (Sandy'answer is perfect) I have only a problem, perhaps it's better to align 10,11,12 etc. I used Sandy's style ...
Alain Matthes's user avatar
0 votes

Is there a way to easily make a stick diagram like this in Latex?

I recommend using Mathcha. There, you can draw by selecting the 'Insert Diagram' option and choosing the 'Drawing Area' option to display the drawing area on the right side. I am sharing code that is ...
Anar Abdullayev's user avatar
3 votes

Is there a way to easily make a stick diagram like this in Latex?

You may have trouble fitting this on the page because it's so wide, but here's a solution with forest. \documentclass{article} \usepackage{forest} \tikzset{circ/.style={label={[draw, circle, red, ...
Sandy G's user avatar
  • 41.6k
13 votes
Accepted

How to draw this diagram (function as a machine) using Tikz?

If there is no shape, you can create a \pic: \documentclass[border=10pt]{standalone} \usepackage{tikz} \tikzset{ pics/machine/.style={ code={ \coordinate (-in) at ({-0.5*\...
Jasper Habicht's user avatar
7 votes
Accepted

How to Create an Interactive Diagram with TikZ

Credits should also go to AlexG. Thanks for his awesome animate package. And the \playgo command is also come from his idea in this post (\uncover command). Here is an example using animateinline ...
Tom's user avatar
  • 6,763
5 votes

How to Create an Interactive Diagram with TikZ

I used TikZ and animate package to make the following animation : The classical approach is to make your frame by frame pictures in a .tex file, for mathematical or figures based on a sort of ...
euler_med's user avatar
  • 518
0 votes

diagrams.sty can't draw \ruTo(4,2)

As commented by the OP, the problem can be solved by using \dTo&&&\ruTo(4,2)&\dTo\\ Full MWE: \documentclass[a4paper,11pt]{article} \usepackage[small,nohug,heads=LaTeX]{diagrams} \...
1 vote

Enlarge y-axis, then shrinking it again

As a suggestion, you can use a semilog-plot: it results in less crowded data points it conveys an important message: all 3 regions decay exponentially at almost the same rate. The minor changes ...
MS-SPO's user avatar
  • 10.4k
2 votes

How to type in such a diagram that is shown in the picture of an isotherm?

As some comments stated, we'd like to see your own attempts here, first. However, because this diagram involves some interesting aspects, I'll sketch a path towards your final diagram. BTW, this is ...
MS-SPO's user avatar
  • 10.4k
1 vote

How to draw the depicted contour in tikz?

Here is at least something for you to play with. I haven't added everything from the image, you'll have to figure those out. \documentclass[tikz,margin=4mm]{standalone} \usetikzlibrary{calc} \begin{...
daleif's user avatar
  • 54k

Top 50 recent answers are included