Questions tagged [hobby]
a package constructing curves through a set of points by means of the John Hobby’s algorithm.
42
questions
1
vote
2
answers
162
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 ...
4
votes
2
answers
248
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 ...
1
vote
1
answer
79
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{...
1
vote
1
answer
86
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....
8
votes
1
answer
411
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 ...
0
votes
1
answer
101
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}...
9
votes
7
answers
605
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 ...
1
vote
1
answer
150
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 ...
1
vote
2
answers
348
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 ...
3
votes
1
answer
356
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"...
6
votes
2
answers
592
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 ...
2
votes
2
answers
90
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:...
0
votes
2
answers
75
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 ...
6
votes
1
answer
930
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 ...
7
votes
1
answer
668
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
2
answers
173
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
1
answer
223
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}
...
8
votes
1
answer
355
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 ...
4
votes
2
answers
858
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
1
answer
325
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, ...
1
vote
0
answers
482
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 ...
7
votes
0
answers
375
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"
!
! ...
3
votes
1
answer
146
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 =...
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}...
2
votes
1
answer
289
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}...
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 ...
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 ...
14
votes
2
answers
492
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{...
10
votes
1
answer
670
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}[...
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}
...
8
votes
1
answer
264
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[...
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 ...
4
votes
1
answer
255
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{...
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 (...
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);...
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....
15
votes
1
answer
796
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}
\...
7
votes
1
answer
492
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 ...
1
vote
0
answers
893
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,...
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 ...
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 ...
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 ...