Skip to main content
The 2024 Developer Survey results are live! See the results

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
18 votes
2 answers
874 views

Baker's percentage symbol -- % in a loaf using TikZ

First, a little background. Professional bakers (and, increasingly, bread baking enthusuasts generally as well) always weigh everything, particularly flour which is a highly variable substance: a cup (...
sgmoye's user avatar
  • 8,941
1 vote
0 answers
46 views

TikZ/Hobby: How to control the smoothness and angles at each coordinate for a closed curve? [duplicate]

I would like to know how to modify the inward angle, outward angle, and smoothness or curvature at each coordinate of the following code to make the final drawing look something like this \...
Diaa's user avatar
  • 9,689
1 vote
2 answers
196 views

Smooth surface with sharp corners matching another smooth surface in Tikz

I am trying to draw what you see in the figure, a smooth surface with another embedded surface that has sharp corners. I'm using the hobby package and this is what I have so far. The problem is that ...
aaragon's user avatar
  • 3,051
4 votes
2 answers
285 views

hobby package - alignment of labels to curves

I am trying to label curves which are created by the package hobby. However, I can not align labels properly in the horizontal and vertical direction. In the first image I am able to use specific ...
17757970's user avatar
  • 333
1 vote
1 answer
89 views

Dimension too large error in marking of a Hobby curve

I encountered a weird error when playing with Hobby curves and markings. Consider the following code \documentclass[tikz]{standalone} \usetikzlibrary{decorations,decorations.markings,hobby} \begin{...
Tomasz23's user avatar
  • 590
1 vote
1 answer
88 views

Why can't I use straight paths in defining curves in the hobby library?

In the hobby library in Tikz I can define curves more or less like I can define them in Metapost, like so: \usepackage{tikz} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture} \draw (1.21,2....
Felipe Dilho's user avatar
8 votes
1 answer
536 views

Trying to draw a function curve with Hobby

I use to draw function curves with Bezier, when I want them to fit multiple conditions, i.e. tangent lines, maximum and minimum, and the curve going through chosen points. This is to be used with my ...
SebGlav's user avatar
  • 19.3k
0 votes
1 answer
106 views

Why is this PDF not cropped tightly?

Here is my MWE, adapted with cosmetic changes from Andre Stacey's hobby package, which I compiled with xelatex: \documentclass[crop]{standalone} \PassOptionsToPackage{cmyk,svgnames,dvipsnames,hyperref}...
chandra's user avatar
  • 3,104
9 votes
7 answers
645 views

Fill percent of path along pair of almost parallel hobby curves

I have two almost parallel hobby paths (red and blue curves) and want to fill a percent of the path between these two lines, starting from the bottom left. I think this may require a center path from ...
Peter Grill's user avatar
1 vote
1 answer
178 views

Arrow is not aligned

I am tryinf to make a multi-connected region in tikz. The arrow on the circle inside is weirdly tilted or angled somehow. as can be seen in the zoomed picture. I coloured them so that it can be seen ...
Kumarm's user avatar
  • 962
1 vote
2 answers
667 views

TikZ: How to draw curved lines in simple way?

I am a beginner in TikZ and trying to illustrate different signal outputs (base line + a single pulse, baseline + multiple pulse and baseline + sustained pulse, and so on) but have quite struggled ...
WitheShadow's user avatar
3 votes
1 answer
380 views

Pattern cut out areas again with even odd rule

I have a litle trouble with the "even odd rule". I would like to draw the picture below which isn't the problem. The problem is, that i would need to have the little white spots, where the "hobby-line"...
Kai's user avatar
  • 105
6 votes
2 answers
636 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 ...
CarLaTeX's user avatar
  • 64.7k
2 votes
2 answers
99 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:...
rdbisme's user avatar
  • 211
0 votes
2 answers
76 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 ...
Colin McLarty's user avatar
6 votes
1 answer
1k 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 do the following MWEs produce two different ...
G. Fougeron's user avatar
7 votes
1 answer
702 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 ...
Ontwikseltsaar's user avatar
4 votes
2 answers
179 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 ...
cfr's user avatar
  • 208k
4 votes
1 answer
230 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} ...
Fowaz Ikram's user avatar
8 votes
1 answer
374 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 ...
vrbatim's user avatar
  • 741
4 votes
2 answers
903 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} \...
snorge's user avatar
  • 131
3 votes
1 answer
351 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, ...
Ferran Brosa Planella's user avatar
1 vote
0 answers
498 views

Problem with the TikZ library hobby [closed]

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 ...
Mohamed Vall's user avatar
  • 1,166
7 votes
0 answers
376 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" ! ! ...
Georg Grafendorfer's user avatar
3 votes
1 answer
148 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 =...
bzm3r's user avatar
  • 3,206
2 votes
1 answer
2k 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}...
bzm3r's user avatar
  • 3,206
2 votes
1 answer
290 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}...
bzm3r's user avatar
  • 3,206
0 votes
0 answers
97 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 ...
Student's user avatar
  • 291
7 votes
1 answer
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 ...
DJJerome's user avatar
  • 4,066
14 votes
2 answers
493 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{...
Ingo's user avatar
  • 20.1k
10 votes
1 answer
684 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}[...
DJJerome's user avatar
  • 4,066
12 votes
2 answers
2k 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} ...
user1942348's user avatar
  • 1,101
8 votes
1 answer
266 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[...
Jonathan Jogenfors's user avatar
8 votes
1 answer
2k 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 ...
Jonathan Jogenfors's user avatar
4 votes
1 answer
274 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{...
Philipp's user avatar
  • 3,815
7 votes
1 answer
1k 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 (...
user1942348's user avatar
  • 1,101
29 votes
1 answer
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);...
Claudio Fiandrino's user avatar
4 votes
0 answers
205 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....
Svend Tveskæg's user avatar
15 votes
1 answer
815 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} \...
recluze's user avatar
  • 4,211
7 votes
1 answer
501 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 ...
chandra's user avatar
  • 3,104
1 vote
0 answers
896 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,...
Umar Kalim's user avatar
  • 1,139
6 votes
2 answers
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 ...
Sony's user avatar
  • 3,930
11 votes
1 answer
2k 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 ...
student's user avatar
  • 29.2k
43 votes
1 answer
3k 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 intrigued ...
Claudio Fiandrino's user avatar