Questions

This page aggregates TikZ questions by people who were posting them on the tex.stackexchange.com Q&A site. Perhaps you can answer one?

How to get a few smooth grid lines for surface plots

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

Kristin: I want to produce smooth surface plots with smooth grid lines using TikZ/pgfplots. Usually, this can be achieved using e.g. [samples=100], but this also draws 100 grid lines. I basically want that the surface and the grid lines are computed using many help points (samples) to make it smooth but only a fraction of the grid lines shall be drawn. I've browsed the documentation, but couldn't find anything helpful in that direction. All the surface plot examples which I found showed edgy grid lines giving the surface a faceted look instead of the smooth pictures I want to achieve.

Read the original question and the answers »

Label near start when using myncbar

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

Kaminari: My problem is quite simple, yet i can't find answer. Im using myncbar macro to create C-like shapes. Text labels are not near start. They are near the start of the last line. Is it possible to make them near start of the first line?

Read the original question and the answers »

Connect Tikz Nodes running around nodes

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

theomega: I want to connect two tikz nodes with a line which should not overlap the other nodes. It additionally should branch below the node and run into the top again. I also want to label the edge/line.

Read the original question and the answers »

Shift line connecting anchors

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

h0b0: How can I shift a line the endpoints of which are defined by anchors like this? \draw (i0) -- (i1); The following approach does not work: \draw[xshift=2pt] (i0) -- (i1);

Read the original question and the answers »

Modify plot style in a tkz-fct-plot for a whole tikzpicture at once

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

student: Is it possible to modifiy the plot style (for example color) for every plot in a tikzpicture environment at once?

Read the original question and the answers »

vertical week list in TikZ calendar

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

Nyiti: I read about week list in the PGF/TikZ manual, but I couldn't find an example that arranges the days of the week vertically. Could you help me with an example of how to create a week list arrangement like this?

Read the original question and the answers »

Visualizing broad Tikz tree graph

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

Eric: Modules of software I created produce Tikz QTree diagrams for visualisation. The problem is that some trees grow quite broad... Even when I try to massively shrink them by Tikz settings, I cannot fit them on the page. I use the following, which has no effect: \begin{tikzpicture}[level/.style={sibling distance=1mm/#1}] \tikzstyle{every node}=[font=\tiny] \tikzstyle{level 1}=[sibling distance=2mm] \tikzstyle{level 2}=[sibling distance=2mm] \tikzstyle{level 3}=[sibling distance=2mm] Is there a way to further size them down or/ and another way to visualize Tikz output (like an applet or something?).

Read the original question and the answers »

Customising a tikz calendar

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

wim: I am trying to make a simple calendar, this is how far I have got so far... Now I want to colour the days alternately, i.e. jan 1, 3, 5... would be one colour and the rest another colour, for the whole year. This could either be a different font colour for the number or a background fill colour, I don't really mind, as long as there is an pretty way to distinguish odd and even numbered days of the year easily. ps: this is just a minor annoyance, but my calendar is appearing on page 2 of a pdf file with a blank first page, and I'm not sure why. I'm making it like pdflatex wim_cal.tex wim_cal.pdf.

Read the original question and the answers »

How do I tell TikZ to compute the 'in' value again rather than use the previous one?

Posted on January 3, 2012 by TikZ questions on TeX.SX Feed

Mike Stay: The first two lines do just what I want: \node (F) at (1,1) {$F$}; \draw (0,2) to [out=-90] (F); That is, it draws an edge downward from the point (0,0) and bends it to hit (F), entering the node at roughly 135 degrees. I don't have to specify in=135. But the next line uses the same ~135 degree value for in, when I want it to have a value around 45 degrees and not specify it! \draw (2,2) to [out=-90] (F); How do I tell tikz to compute the in value again rather than use the previous one?

Read the original question and the answers »

How to use tikz package with devanagari, in miktex 2.8

Posted on January 2, 2012 by TikZ questions on TeX.SX Feed

Pushpkant Yadav: I have to use tikz graphics with my PDF file, written in MiKTeX 2.8 LaTeX. When I write \usepackage{tikz} with \usepackage{devanagari}, LaTeX produces an error l.264 catcode '\"=12

Read the original question and the answers »

“Inline” pgfonlayer?

Posted on January 2, 2012 by TikZ questions on TeX.SX Feed

romeovs: When using layers in tikz I usually do the following: \begin{pgfonlayer}{background} \draw[red] (0,0)--(1,0); \end{pgfonlayer} Is there a way of using the layers inline? e.g.: \draw[layer=background, red] (0,0) -- (1,0);

Read the original question and the answers »

Wireframes for Webdesign with tikz

Posted on January 2, 2012 by TikZ questions on TeX.SX Feed

DanielG: I am searching for information about using tikz to draw wireframes for websites. Is there any particular workflow around? Does somebody know some sort of packages I can use?

Read the original question and the answers »

Using [midway] to label a curved path at its centre

Posted on January 1, 2012 by TikZ questions on TeX.SX Feed

chandra: I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to come up with something that works. Can someone please point me in the right direction.

Read the original question and the answers »

How can I improve this family tree in TikZ?

Posted on December 30, 2011 by TikZ questions on TeX.SX Feed

Stefan Kottwitz: To answer a question about how to draw family tree on LaTeX-Community.org, I created an example. How can this tree be improved? Some things don't seem perfect, such as starting with \coordinate as root node, shifting the parent nodes, and specifying an explicit level distance for the grand children.

Read the original question and the answers »

Referencing externalized pgfplots with subfig and cleverref

Posted on December 30, 2011 by TikZ questions on TeX.SX Feed

Werner Eims: I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures into a single float and the cleverref package. So far, everything works perfect. However, when I add references to my externalized images, strange bugs occur. In short, some plots which are based on data from files do not produce correct references. The exact same plots with fixed data do produce correct references. Apart from that, both methods results in correct images. My only problem are the missing references.

Read the original question and the answers »

Earlier posts