The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
41 views

Clipping only the bottom of a graph in pgfplots/tikz?

Is it possible to clip only the bottom of a graph? I have a graph with a node above the area of it; when clipping over the entire thing is enabled, the node is cut away. However, no clipping means the ...
5
votes
1answer
53 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...
4
votes
1answer
53 views

Tikz: clipping path from external file

I would like to use the data of an external file as the clipping path with Tikz. Something in the line of: \documentclass[10pt,tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
9
votes
1answer
134 views

problem with “crop circles” in tikz knot library

Using the knots library for tikz, I get very thin outlines of the circumferences of the clipping circles. How do I make them disappear? Here is a MWE: \documentclass{minimal} \usepackage{tikz} ...
8
votes
4answers
211 views

Semitransparent outside “clipped” region?

To highlight part of a graph for a presentation that I'm writing, I would like to "circle" an area and make semitransparent everything outside that area. Anything inside that area should remain ...
14
votes
2answers
194 views

Path clipping in 3D only works in two out of three planes?

In the following code, I'm trying to draw three clipped circles in three orthogonal planes. I'm using this approach to clip the appropriate sections of the circles. This works nicely in the xy and yz ...
5
votes
2answers
221 views

pgfplots and tikz: clipping a named plot

I would like to clip along a \addplot line made by pgfplots. I am not sure entirely how to do this since my tries have failed. What have done so far is below. \documentclass[tikz, convert = ...
4
votes
1answer
108 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
2
votes
1answer
116 views

How to avoid the tiny white line between clipped areas and gobbed line width

The is a tiny unwanted white line between blue areas (it is a MWE ;-) ) and the black border line is cut by the clipping line. How to avoid this two problems ? It's not visible on a png image but ...
1
vote
0answers
87 views

Tikz: shading region bounded by several curves with previously named path tikz

This two questions have been answered sepatly it should be interesting to be able to shade a region using previously named path. Is there a possibility to combine this two macros ? ...
6
votes
1answer
203 views

Number of intersection points

In this examle from pgfmanual p 132, how to use \t the number of intersections point outside \fill command. I tried \def\Nb{\t} but it dosen't work. \begin{tikzpicture} \clip (-2,-2) rectangle (2,2); ...
5
votes
1answer
166 views

Use a part of a path to make a cycle

I have two pathes the firt is to be fully drawed, but only a part of the second using intersection point with the first. Here an example: I want to draw only the upper part of the square (dashed) as ...
7
votes
1answer
164 views

Fore-edge painting package for books?

I would like to add fore-edge painting to the edge of each page, so that when the pages are fanned, it reveals text or an image. It seems it would be easy enough to slice up an image(Tikz/PGF), or ...
8
votes
1answer
105 views

How come only part of the interior of this path is used for clipping?

Here is an example document and the output I get from it. \documentclass[convert={size=480}]{standalone} \usepackage{tikz} \tikzset{ little circle/.style = { fill = black, ...
2
votes
2answers
251 views

How to fill a specified area using TikZ

I want to fill some regions which are only parts of a shape in a TikZ drawing (marked as "Here" in the following drawings): \documentclass{standalone} \usepackage[tikz]{bclogo} ...
11
votes
2answers
219 views

With TikZ, is it possible to only clip horizontally or vertically?

With TikZ, is it possible to only clip horizontally or vertically? Normally, when clipping, e.g., \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikz} \clip (-1,-1) rectangle ...
8
votes
1answer
348 views

Crop ternary plot

I want to crop the top part of the ternary plot given below at x = 0.7 because I don't have any datapoints in that region and want to save space. How can I do this? \documentclass{standalone} ...
7
votes
1answer
167 views

How to use even-odd filling rule either as a clipper or with gradient?

I just noticed that even-odd filling rule can only be used for solid and hatched filling. Sometimes, I need even-odd rule for gradient and as a clipper. How to do so? My code speaks the details. ...
4
votes
1answer
112 views

Strange color in PSTricks

I draw a figure in pstricks, the code is here: \documentclass{minimal} \usepackage[dvipsnames]{pstricks} \definecolor{bg}{cmyk}{0,0,0.1,0} \begin{document} ...
12
votes
2answers
233 views

How to keep the line cap when clipping a path?

This question is kind of the opposite of Disable "clip" and "use as bounding box" in TikZ. Is it posisble to clip a path but let the line caps lokk as the path would end at the ...
4
votes
1answer
126 views

TikZ: Using a line with thickness as clipping region?

In TikZ, is it possible to clip away a line? I would like to create a thin layer around an arrow in which nothing should be drawn (i.e. keep what is there at the moment the arrow is drawn) to create ...
7
votes
1answer
367 views

tikz clip rounded corners

How to apply this Tikz solution (Rounded corners only at one side of a TikZ node) to have the same effect on clipping? I want to clip things (images) using that rectangle with differently rounded ...
6
votes
3answers
865 views

Clipping a formula to make a nice compliment

I just found a nice cartoon and wonder if this is possible with LaTeX as well. If you draw "128 \sqrt{e 980}" on the blackboard (sqrt written with the root character) and erase the approximately ...
6
votes
1answer
193 views

How to clip overlaying surfaces/paths instead of filling them with white?

The following code \newcommand*{\arcthickness}{0.3} \newcommand*{\myarc}[4]{ % x,y,radius,text % node is positioned by splitting the arc in two parts % see ...
8
votes
1answer
519 views

How is the interior of a path determined when reverse clipping?

I'm been playing around with [reverseclip] from How can I invert a 'clip' selection within TikZ?. It works quite well. When you apply [reverseclip] it seems to add another part to your ...
13
votes
3answers
751 views

How to Reverse Clip on Custom Path Defined by Ellipse Intersections

Suppose I have two ellipses with known locations, major and minor axes, and rotation angles. What I would like to do is define a custom path that primarily uses one ellipse but follows the other at ...
7
votes
3answers
900 views

Draw only part of a rectangle in Tikz

How can I draw only parts of a rectangle? I want to omit a small part of the rectangle to put some text in. As I'm using various complex rectangles, I do not want to construct own "open rectangles". ...
10
votes
2answers
1k views

How to control borders of intersected nodes (rectangles)

I am trying to superpose 2 rectangles; one blue, one red, and have the intersection area with a mix of blue and red. I have problems with the borders though. I am not getting the thickness of the ...
7
votes
2answers
520 views

change draw color in a clipped region in tikz/pgf

I use \clip to clip a rectangular region of a drawing in a tikzpicture. I would like to have the lines in the clipped region to have a different color than their color in the original drawing. Would ...
11
votes
2answers
3k views

Tikz clip shapes with another (built in) shape

I have some geometry that I need to clip. I would like to use the built in node shapes like diamonds, stars, etc... http://www.texample.net/tikz/examples/node-shapes/ Basically I use standard tikz ...
4
votes
3answers
527 views

How to scale and clip a path at the same time?

Again, i started a question here, and i found the solution. But i think this method maybe useful for others. The problem: i exported the TikZ code of one path from Inkscape; then, i wanted to use it ...
4
votes
2answers
771 views

PGF/TikZ Clipping & Drawing: How to customize lines?

I have gotten some undesirable behavior with PGF/TikZ related to clipping and drawing paths with different color, say gray. So I tried with no success to exchange between \clip[draw=gray], ...
11
votes
4answers
1k views

TikZ: complicated paths, e.g. for complex integrals

I would like to illustrate lecture notes on complex analysis, which by its nature is a lot about how the lines of integration are running through the complex plane. However, I'm having trouble finding ...
9
votes
1answer
902 views

Clipping tikz and raster pictures zigzag style

Is there a way to achieve this kind of clipping for raster images as well, not only for tikz pictures? -- Solved, see Edit #1. Are there any easier solution to achieve this with TikZ? -- Solved, see ...
19
votes
3answers
734 views

How to clip a TeX box using low-level PS commands?

I like to clip an arbitrary TeX box (\hbox) but without using larger graphic related packages like PGF/TikZ or PSTricks. This is intended to be used in packages which should not force the user to also ...
6
votes
1answer
350 views

Drawing full nodes whose center is not clipped by some path

Goal I would like to draw full nodes whose center is not clipped by some path. How the solution would possibly work? To be better understood I would describe it in two steps: clip before drawing ...