Questions tagged [hobby]

a package constructing curves through a set of points by means of the John Hobby’s algorithm.

Filter by
Sorted by
Tagged with
39
votes
1answer
2k views

Hobby path realization in convex hull approach

Motivation In the answer Highlight a group of nodes in a tikz tree, Jake suggested combining the convex hull approach from padded boundary of convex hull with the hobby path and I was really ...
29
votes
1answer
1k views

TikZ 3.0.0 and Hobby

Compiling the following MWE: \documentclass[tikz,border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture} \draw[help lines] (0,0) grid[step=0.25] (1,1);...
14
votes
2answers
476 views

“Hobby” library stopped working after updating to TeXLive 2014

After upgrading to TeXLive 2014 compiling my TikZ pictures prepared with the hobby library stopped working. Consider the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
14
votes
1answer
620 views

Error with hobbyconvexpath

The hobby examples given on TEX.SX don't seem to be working with texlive 2013 (at least for me. For example, copying an MWE produces an error: \documentclass[tikz,border=2bp]{standalone} \...
10
votes
2answers
1k views

How to make a portion of curve red using TikZ?

I want to make the the closed loop part of the figure by "ultra red" color only and the other part by blue. (from (2,0) .. (0,0.93) .. (-0.93,0) .. (0,-0.93) .. (2,0)) \documentclass{standalone} ...
10
votes
1answer
1k views

Add “tangential nodes” to a hobby curve

Is it possible to place nodes along a hobby curve such that the orientation is tangential to the curve. I should add what I mean with tangential: The curved hobby path should represent a curvy street ...
10
votes
1answer
559 views

How do I shade various regions defined by a hobby curve?

Use the following code, I am able to generate the curve easily. \documentclass{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture}[...
8
votes
1answer
1k views

Drawing a bent path as a loop in tikz

I am drawing an optical experiment that involves making a path take a detour. This is possible with PSTricks, but I haven't found a way to achieve this with TikZ. What I currently have: The beam ...
8
votes
1answer
229 views

Cannot use the hobby package with MiKTeX 2.9

I was directed to use the hobby package from a previous question of mine: Drawing a bent path as a loop in tikz However, I just don't seem to get the package to work. Here is an MWE: \documentclass[...
7
votes
1answer
698 views

Plot using Hobby

Help me to plot the following plot using Hobby. I have tried to plot it. My code is \begin{tikzpicture}[use Hobby shortcut] \draw (-.3 ,1).. (0, 0) .. ( 1.2 , 0 ) .. ( 0 , 0 ) .. (-.3 ,-1); \draw (...
7
votes
1answer
188 views

Combining hobby paths for post action

Is there anyway to combine hobby paths and lines into a single path so that I can apply a post-action? Basically, I want my orientation arrows to be equally spaced along the entire path rather than ...
7
votes
1answer
1k views

How to plot the absolute value of a hobby curve

I have a hobby curve that has regions above and below the horizontal axis. I would like to illustrate the difference between net and total area by being able to reflect the portion below the ...
7
votes
1answer
434 views

Error message with hobby package

I am trying to use the hobbypackage with this minimal example from the manual: \documentclass{article} \usepackage{tikz} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture}[scale=.5,use Hobby ...
7
votes
0answers
351 views

latex3 update breaks tikz library hobby [closed]

I'm using TeX Live 2015, after the latest tlmgr update --all, I get the following Error message: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! LaTeX error: "kernel/command-not-defined" ! ! ...
6
votes
2answers
172 views

Problem with Round Cap arrow tip and [blank=soft] option (from hobby TikZ library)

I've just found out the Round Cap arrow tip and I wanted to use it to improve a previous answer of mine. But it doesn't do what I need if there is a [blank=soft] option (from TikZlibrary hobby) in a ...
6
votes
2answers
1k views

Where in the world is tikzlibraryhobby.code.tex?

I was trying to reproduce Claudio Fiandrino's answer to How can we draw a Hannukah Menorah with decorations, using TikZ?. However, I do not have the hobby package by Andrew Stacey in my local ...
6
votes
1answer
339 views

How to split a (Hobby) path in two

I'm trying to make a knot diagram and to visualize the deformation of a knot, I'd like to split the path from a certain point and have it continue in two directions. I've attempted to get what I want ...
4
votes
2answers
110 views

How can I properly restore and use saved Hobby paths?

The excellent Hobby library's documentation says that it is possible to save and reuse Hobby paths. The examples include paths which are shifted and redrawn with different properties. However, I ...
4
votes
1answer
276 views

Using nodes in tikz package hobby

I am using the package hobby for the first time, and it seems to me that using named nodes instead of coordinates is not supported. In particular, why does the following MWE produce two different ...
4
votes
1answer
188 views

How to combine Hobby paths with PGF Basic Layer commands?

I need to combine paths that are created via the hobby package with standard pgf path elements, like arcs. Within the Frontend Layer this is easily done, e.g. \documentclass{standalone} \usepackage{...
4
votes
1answer
172 views

Using hobby package to plot bezier curves through a set of data points in a .dat file

I would like to use the hobby package to plot smooth drawn curves through points. pgfs' smooth function is not working properly. My code is a follows, \documentclass{standalone} \usepackage{pgfplots} ...
4
votes
0answers
125 views

TikZ code doesn't compile anymore [duplicate]

Consider the following code (which originates from this post): \documentclass{article} \usepackage{tikz} \usetikzlibrary{ hobby, shapes.geometric, decorations, decorations.shapes, shapes....
3
votes
1answer
112 views

hobby: trouble getting tangency information at a point to affect drawn path as expected

Consider the minimum not working example here: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{calc, hobby} \tikzset{ tangent/.style =...
3
votes
2answers
536 views

Draw a curve as an outline to another curve

How can I offset a hobby curve, so that the resulting curve serves as a shifted and parallel outline to the original curve? Here is what I got so far: \documentclass[border=5pt,tikz]{standalone} \...
3
votes
1answer
174 views

How to split a shape created by hobby along a curve?

I want to draw an arbitrary domain which I can split in two along an arbitrary curve so I can colour both subdomains using different colours. I tried drawing the domain using the hobby library, ...
2
votes
1answer
1k views

hobby: TeX capacity exceeded (parameter stack size?) error, when using tangency information at a point to draw a path

I am getting a TeX capacity exceeded error when running the following example code (which comes from the answer to this question: \documentclass{article} \usepackage{lmodern} \usepackage[T1]{fontenc}...
2
votes
2answers
46 views

PGF macro to map value to a different interval

I'm trying to write a macro to be used with random generators (in particular rnd) within Tikz, to map numbers to different intervals. [0, 1] ---> [a, b] f(x) = x*(b-a) + a What I tried so far is:...
2
votes
1answer
226 views

hobby: using tangency information at a point when drawing paths

Consider the following minimum not working example, where the first figure is drawn using "standard TikZ" methods, and the second using the hobby package: \documentclass{article} \usepackage{lmodern}...
1
vote
0answers
332 views

Problem with the TikZ library hobby

I am using the last version of MiKTeX. After the last update I realize that the TikZ library hobby is no longer working. As proposed by the answer of this question, I downloaded it again from here but ...
1
vote
0answers
841 views

compile error as xparse fails because it requires expl3 after 2013 update of texlive [closed]

I updated texlive to 2012 release. However, when I try to compile example code, which I obtained from here, my attempt fails. \documentclass[tikz,border=2bp]{standalone} \usetikzlibrary{backgrounds,...
0
votes
2answers
62 views

Why is \NewDocumentCommand or else Hobby (partly) ignoring this argument? [closed]

I am trying to write a command that will draw an outline (called a cloudoutline in my file) so that I can position a couple of copies of it in one graphic. Further I prefer to avoid defining a ...
0
votes
0answers
46 views

how to download and install hobby package for this latex scheme [duplicate]

I get this following scheme but it doesn't work in my laptop, i work using texmaker and miKteX 2.9, i always get the error I can't find tikzlibraryhobby.code.tex, i enter the package manager to ...