Linked Questions

202
votes
17answers
38k views

How can we draw a Christmas tree with decorations, using TikZ?

I would like to use TikZ for drawing a christmas tree. Here's a start, I used the lindenmayersystems library for drawing a tree: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
7
votes
3answers
463 views

How to partially make a segment of a path dashed?

I have two stocks, A and B. These two "meet" each other at rates q(x), and f(x), by going through a joint-state process called X. Then, A becomes a, and B becomes b. I thought about visualizing the ...
10
votes
3answers
785 views

How to fill a split node with two different colors?

I have that issue when try to fill a split node with two different colors. After using rectangle split part fill={red,blue} as an node argument the drop shadow overlap the node because I don't use the ...
16
votes
1answer
593 views

Eraser tool for TikZ

I am asking for a style (or something similar), let us call it ERASE. The imaginary tool works as a convenient inverse clip or eraser within a scope. The specific way is asked within the comment in ...
11
votes
1answer
2k views

Morphing only a part of a full path in tikz

This might be a tikz newbie question but I have some trouble solving this. I want to draw and fill a rectangular path where path morphing should be applied only to the upper side of the shape, more ...
6
votes
2answers
206 views

Test whether a circle fully lies within a polygon in TikZ

Given the following TikZ picture with an irregularly shaped polygon: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path[draw=blue] (0,3) -- (5,4) -- (3,2) -- (4,0) -...
8
votes
2answers
338 views

Filling a box excluding circles inside it

I was trying to create an image in TIKZ. My code is as below: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, shadows, fit, arrows, ...
8
votes
1answer
519 views

Filling an area between two curves

I would like to draw the following figure: To do this I have used the following codes : \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{...
5
votes
1answer
447 views

Shade part of a Venn diagram

Can someone show me how to shade the yellow region by modifying my code? Thank you in advance guys :) \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \usepackage{pgfplots} \renewcommand{...
4
votes
3answers
152 views

Tikz equivalent for pst-rputover

For pstricks the package pst-rputover (new on ctan since 2017-03-28) has been created to solve following problem In brief, I'm looking for a version of \rput* that blocks out lines but not fill ...
6
votes
1answer
248 views

Draw death star

How to add the typical grid cells (image modified from https://en.wikipedia.org/wiki/Death_Star) to the following sketch of the death star? This is what I have so far \documentclass{standalone} \...
3
votes
2answers
308 views

Intersection of a sphere and a plane knowing equations

I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0. The plane cut the sphere is ...
6
votes
1answer
294 views

How to draw the diameter of a domain in Tikz?

I am writing a short document on basic Set Theory and would like to include a few images. The first definition which I have been unable to draw for myself is the diameter. The diameter of a non-...
4
votes
2answers
302 views

How to make text masking background shape lines

I want to draw a picture with some text masking the background shape lines. I tried with opacity but the fill is not very nature. \documentclass[border=5mm, convert, usenames, dvipsnames]{standalone} ...
2
votes
1answer
186 views

Tikz; decoration with rounded corners

I don't know why, but I can't use decoration with rounded corners. The following MWE fails with ERROR: Dimension too large.: \documentclass[beamer,tikz,preview]{standalone} \usetikzlibrary{...

15 30 50 per page