17
votes
4answers
800 views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
78 views

How to fill logic gates in circuitikz?

How can you specify a fill color for logic gates in circuitikz? It does not work as I would have expected: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} ...
14
votes
2answers
353 views

“Drill holes” using glyphs or TikZ's even odd rule for text

I know how to use TikZ even and odd rule, but what I need is to apply it on a node text. Compare I need the text to be punched out such that when I use the resulting pdf on top of a background, the ...
3
votes
2answers
101 views

Drawing a Venn-Style-Diagramm underlying a Graph with TikZ

I want to draw a graph (the data structure) such that certain subgraphs form a sunflower (a notion from combinatorics). In other words I want to indicate that the sets overlap in the middle ...
2
votes
0answers
54 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
5
votes
2answers
155 views

Coloured box with tikz

I'd like to break a coloured box when the page which contains it breaks... here is an example which shows this issue: \documentclass[11pt]{report} \usepackage[explicit]{titlesec} ...
6
votes
1answer
254 views

Create style for a new section

anyone can help me to do something like this? for an informative section in my document
14
votes
2answers
532 views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
4
votes
2answers
164 views

Someone can help me draw this

I want to draw the symbol of my engineering and be able to change the color, anyone can help me with this?
5
votes
2answers
101 views

Recreate default colors

How is it possible to specific the colors shown in the sample plot here: The code is below and copied from the site! \begin{tikzpicture} \begin{ternaryaxis}[ ternary limits relative, ...
4
votes
0answers
110 views

TikZ Chromaticity Diagram

I'm trying to make a chromaticity diagram in tikZ, does anyone know how to make one? I want this My issue is not in forming the spectral locus that I can do, right now I'm only using three points ...
6
votes
1answer
136 views

Listing with two columns in a single fancy frame

I am playing a little with lstlistings and I wonder whether such a thing would be achievable for all my listings: How to achieve this kind of things? Note : I am searching for a solution I can ...
4
votes
1answer
51 views

Axis part coloring

I try/want to color the x-axes in a special way. I want to get the bottom x-axis red, but not the whole line. Only the 3 parts under the graph have to be colored. I tried it with options separate ...
6
votes
1answer
116 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...
3
votes
3answers
167 views

Filling rectangle in TikZ with more than one color

To draw a rectangle and fill it in gray in TikZ: \draw [fill=gray,very thick] (0,0) rectangle (2,1); Now, I want to fill it in both gray and yellow. The best way would be if I can make diagonal ...
3
votes
1answer
199 views

TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

I want to have a fill color with transparency but I also want the text to be perfectly opaque. But somehow it does not work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,} ...
8
votes
1answer
181 views

Why do colours defined using CMYK give inconsistent results in TikZ mindmaps?

Background I was trying to draw a mindmap using the tikz mindmap library for possible use in a beamer presentation. The Problem Depending on my choice of colours, the colour of nodes does not ...
10
votes
2answers
248 views

make enumerated button in TikZ

Is it possible to make an enumerated button, similar to the ones shown in the figure below? I will be using them as pictures in an external document (not TeX).
7
votes
1answer
195 views

Color and legend for 3d surface

I'm trying to plot a 3d surface using pgfplots and this is what I have done so far: \usepgfplotslibrary{patchplots} \begin{tikzpicture} \begin{axis}[% width=12cm,height=12cm, xlabel={$J_1$}, ...
10
votes
3answers
391 views

Filling in the area under a normal distribution curve [duplicate]

I'm trying to fill the area between the two $z$-scores but I'm not having any luck. Could someone please help me with this? \begin{tikzpicture} \begin{axis}[ no markers, domain=0:6, ...
4
votes
1answer
170 views

How to differentiate many lines in a chart? [duplicate]

I create a chart with many (actually 10) lines in different colors (see example). I want to make it as easy as possible to differentiate the different lines. Some possibilities I have in mind: ...
6
votes
0answers
170 views

Different color [closed]

I use the following code to generate a plot \documentclass{article} \usepackage{xcolor} % colorize your documents \usepackage{graphicx} % and use graphics \usepackage{tikz,pgfplots} % ...
16
votes
1answer
306 views

Color Blind Friendly Mesh Colormap

I have a plot with a mesh and it uses a lovely colormap, however, I can't find a way to make tikzpicture only use colorblind friendly colors. I'm not colorblind, but I know at least some of the people ...
5
votes
2answers
241 views

pgf/tikz: Making the filling / gap between double border lines transparent

I have a rectangular box with double border lines. The pgf manual (chapter 15.3.5 Graphic Parameters: Double Lines and Bordered Lines) says that the default filling is white. I want the gap to be ...
7
votes
1answer
186 views

How to map value to color using TikZ?

I am trying to draw rectangles, each of which has a corresponding value, which will be mapped into a color from a color map based on the value. This is how I want the write the code. What is missing ...
8
votes
3answers
223 views

Two backgrounds in a graph

How can I set two different backgrounds in a graph using pgfplots? In my case, I need a colored background for x<5 and a different background for x>5.
8
votes
2answers
182 views

How to define an environment with a colored tikz node included

I would like to define a new environment like \begin{mybox} some text \end{mybox} that would automatically expand to something like \begin{tikzpicture} \node[fill=red!0.5] {some text}; ...
11
votes
4answers
483 views

Colored box around sentences

I want to have a colored box around the text/sentences and its width will be fixed to be 80% of the page width. I tried \fcolorbox but it can't break lines. It is possible to do it with TikZ or is ...
8
votes
3answers
267 views

How to use a large number of arbitrary rgb colors in a TikZ image?

I have a document with some TikZ images in it, which are automatically generated from a program I have written. All images are fairly similar, and each of them contains of a large number of squares ...
5
votes
1answer
195 views

How to change the color scheme to make this figure more elegant?

Here different colors means different weight of the edge, and the color of the points is arbitrary. The tex code: \documentclass[aps,prl,superscriptaddress]{revtex4} \usepackage{subfigure} ...
0
votes
1answer
956 views

Incompatible color definition when using tikz with color package

I am using the tikz package to draw some diagrams. In addition, I need the color package for some highlighting. As the wikibooks page of the color package states, it has to be used before the tikz ...
10
votes
1answer
397 views

Transparent shade using TikZ

I wonder whether it is possible to create a transparent shading effect (like the one below) without an exact specification of the fill color. This solution is good until I have to change the ...
6
votes
2answers
305 views

Path with complicated colormap in TikZ

I want to draw a path in tikz whose local color is a function of position. Here are two examples of what I have in mind: I found the answers from Path following color gradient in TikZ very ...
12
votes
1answer
348 views

Tikz patterns and cmyk color model

Consider the following example. \documentclass{standalone} \usepackage[cmyk]{xcolor} \usepackage{tikz} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \tracingall \draw [pattern = ...
1
vote
0answers
91 views

Color/Opacity of a circle segment [closed]

I'd like to know how to color a segment of a circle, more specifically using the provided example in this link. For example I want to color the circle in 45 degree segments or similar. I'd also like ...
9
votes
3answers
342 views

How can I shade from red to green along a curve?

Let's take the following picture as an example. I want to shade the fan-shaped area from red to green along the curve shown with the arrow in TikZ. How can I do this? Code: ...
4
votes
2answers
64 views

Why is \color moving the relative position of an entire \picture environment?

I've been writing a set of simple line drawing macros for some piecewise functions. For some reason, when I attempt to add color to the lines, each segment is translated to the right. I've verified ...
3
votes
2answers
226 views

How to define the distance of color regions in radial shading using TikZ?

I am making a series of figures explaining the photolithographic process, and need to find a way to illustrate edge beads during spin coating. To show this I initially wanted to use radial shading, ...
15
votes
2answers
316 views

Is it possible to detect the “current color”? (for example in a pgfplot drawing?)

Is there a code to deduce the current color of a PGF plot to which a node is associated? Better yet, is it possible to get the RGB decomposition as well? ... addplot coordinates{ (0,0) (1,1) } node{ ...
6
votes
1answer
325 views

How do I create a Tikz mindmap that has two connected roots?

I am creating a mindmap that has multiple root concepts instead of just one. How can I create such a mindmap using Tikz? These are the mindmaps: \begin{tikzpicture}[small mindmap,concept ...
24
votes
2answers
778 views

Using Pantone/spot colors and TikZ together

This question led to a new package: xspotcolor I came to the end of writing book in LaTeX. Thanks to this great community I have succeeded to apply designer's wishes into document and I ...
9
votes
1answer
395 views

How to adapt the color of a label using pgfplots

I created this style that shifts the labels and put them on the bottom of the ybars. However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the ...
6
votes
1answer
356 views

PSTricks and Tikz in plain TeX

I would create both pstricks and tikz picture in my plain TeX documents. If I try, I get an error, maybe caused by the use of the xcolor package. The error is the following: \\color@black ...
3
votes
0answers
117 views

Node colors change after building (texmaker pdf and real pdf looks different)? [closed]

I have tried (my own way) to make the example in the TikZ & PGF Manual for Version 2.10 (p. 68). When I build this code, the pdf-file does not look identical to the PDF viewer in texmaker. What ...
3
votes
1answer
909 views

Gradient background for Beamer slides?

I'm trying to create a background gradient for a set of Beamer slides. This question seems to be doing more or less what I want but the answer does not work for me. If I paste the answer into a file ...
7
votes
1answer
221 views

How do I evenly fill the background color of a block of elements inside a TikZ matrix?

When I fill each element separately of the blocks that I want to highlight, the PDF output shows very small white spaces in between the backgrounds of the separate matrix elements inside the ...
9
votes
1answer
330 views

How do I force tikz to use CMYK everywhere (also in shadings)?

I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon ...
3
votes
0answers
154 views

tikzipicture have different arrow tip colors in pdf output and dvi output

i have the following mwe \documentclass[tikz,border=4pt]{standalone} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=angle 45,scale=3,ultra thick] \draw[help lines] ...
8
votes
2answers
332 views

Drawing a square with colored hatched little subsquares

I would like to draw a as shown below. It is a square grid. Some regions are hatched in blue, others contain a red cross. Some edges are blue, others are red, but the red color don't reach the ...
5
votes
1answer
195 views

Add background pattern to tikzpicture vertical bars

How do I replace the blue backgrounds as indicated in the picture with a diagonal and grid pattern respectively? I currently can't find a neat solution for my kind of graph. Code ...