Questions tagged [curve-fitting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
61 views

Drawing lines in tikz - just like a graph, but with extended edges (?)

I am familiar with graphs in tikz and I feel like I can do some work already. But how would one reproduce extended edges? I know how to create a simple graph with edges between its nodes, but how ...
  • 471
14 votes
7 answers
783 views

Drawing the boundary of a generic region in tikz

I need to draw the border of a generic region in tikz. A code with this idea is presented below. \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{color,xcolor} \...
0 votes
2 answers
194 views

tikz: draw arc between two specific points

How can I draw between two specific coordinates? Cord are (1,0) and (5,0) \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{...
0 votes
1 answer
132 views

Smooth curve with tikz

This graph shows the effect of catalysts on activation energy \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[full]{textcomp} \usepackage[greek,italian]{babel} \...
4 votes
2 answers
267 views

color between two diagrams

Please tell me how can I color between two diagrams? f(x)= 2x^2 and g(x)= x^4 -2x^2 this is my code: \begin{center} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=0....
0 votes
0 answers
237 views

Fitting exponential trendline to data gnuplot

I'm trying to fit an exponential trendline to the following data which when graphed appears like the following: Using the following code for the trendline: \addplot+[raw gnuplot, red, mark=none, ...
3 votes
2 answers
168 views

How to draw a complicated smooth curve

I want to make each of the bending very smooth. Only criterion to draw the curve is that it starts from (1,2.5) and ends at (1,2.75). No equation of the curve given. I failed to do that. Please help. \...
1 vote
1 answer
179 views

Plotting a curve using "plot function" Vs Bezier curve (Method of tangents)

Regarding the shown MWE, I need to plot a parabola with the following properties: Parabola starts at point "A" Parabola ends at point "B" Peak of the parabola is at point "F&...
  • 733
0 votes
1 answer
108 views

Draw a "super-twisting" curve TIKZ

I am trying to draw the "twisted" curve in the pic: I am not an expert in Tikz, and I have written the following latex code: \documentclass{standalone} \pagestyle{empty} \usepackage{tikz} \...
1 vote
0 answers
98 views

Trend line through points with pgfplots

How can I draw a smooth curve through the points using pgfplots that are not necessarily connected, using a .txt file? I do not want the smooth line that goes over each point but rather a fitting plot ...
  • 11
0 votes
1 answer
63 views

curve, area, pgfplot [closed]

I want to draw a image like this using tikz. How should I do that?
0 votes
1 answer
102 views

How to fit a Prony series to data in PGFPlot?

I am trying to fit Prony series to my viscoelasticity data in PGFPlots. The problem I am running with is how to mathematically define the Prony series that gnuplot can recognise the function and do ...
  • 347
0 votes
2 answers
946 views

Curve interpolating with tikz

How can I create a curve by providing the coordinates of points 1-4.
3 votes
1 answer
96 views

Barred basin model of evaporite formation

My goal is to obtain something that resembles the image below What I have so far is this My main problem is that I find it difficult mixing TiKz with PGFplots, in particular my plot is too small ...
4 votes
2 answers
156 views

Arrows along a partial named path

I am trying to reproduce following image: For that I create 3 nodes, a support path (mycurve) and (hidden) support lines (l1 to l12) then place other nodes on the lx and mycurve intersections. This ...
  • 742
1 vote
1 answer
118 views

pgfplots dateplot: how to add best fit line

This is my plot: I would like to add the best fit line in correspondence with the first straight section (from 16:23 to 16:33). The equation of the line is y = 0.022x + 19.018. This is my attempt \...
  • 1,351
1 vote
1 answer
137 views

Curve fitted parameter appears as 0 in legend (pgfplots, gnuplot, pgfplotstable)

I fitted a curve on a dataset, but parameter c remains always 0 in the legend of the plot's fitting equation. Can you please help me why? I also checked the generated parameter.dat file and it ...
  • 13
4 votes
1 answer
2k views

Scatterplot with trendline with curve fitting equation of polynomial of degree 3

I'm trying to plot a scatter plot with curve fitting trendline of polynomial degrre 3. I have been able to create the required graph with trendline in excel. I tried to plot the same graph with the ...
  • 43
-4 votes
1 answer
893 views

Draw the curve by tikz

I want to draw a curve using controls (in picture). Please, everybody help me!
0 votes
1 answer
307 views

Plotting normal curve with extremely small variance

I need a graph of a normal bell curve centered around t with a variance as small as possible (without being straight line). I've found a bunch of methods to plot a normal graph, but none where the ...
2 votes
1 answer
80 views

How do I use a drawn arc as border?

The question is writen in the title, i got the grey filled part and it has to fit on the arc. I did it manualy but supose there is a better solution i can't figure out. Thank you in advance, Leo. \...
  • 93
0 votes
1 answer
110 views

tikzpicture curve partly displayed

I would like to plot in the same graph a theoretical plot and some experimental measurements. The pgfplot displays only a part of it (see image). Here is what I compile: \begin{tikzpicture} \begin{...
2 votes
1 answer
491 views

How can I plot a smooth line of fit through the following points and is there an easier way to plot (x,y) labels for each point?

\documentclass{standalone} \usepackage{pdfpages} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \usepackage{amsmath} \...
  • 21
2 votes
1 answer
102 views

Empty areas in figure and optimal curve fitting

I need to create a logo (well, a part of it) as an outline. The relevant part in MetaPost looks: beginfig(1) path ellipse; ellipse = fullcircle xscaled 5in yscaled 1in; for k = 0 step 45 until ...
6 votes
1 answer
3k views

pgfplots/gnuplot: How to find the curve-fitting function passing through certain points and plot it?

Considering this code, I would like to know how to find the curve-fitting function passing through the first four points (i.e. X=[0,3]) and plot this function (e.g. the red dashed line in the desired ...
  • 8,959
1 vote
2 answers
325 views

Draw curley bracket in Latex

How to draw a curly brack around the nodes. Like I have given in the image. \begin{center} \begin{tikzpicture}[shorten <=1cm,shorten >=1cm,-latex, align=center, node distance=1cm and 10cm,on ...
  • 285
7 votes
3 answers
1k views

Tikz: Shifting a curve to get a tangent condition

I want to achieve a very similar thing like in this post Line tangent to a a curve (using plot or controls), starting at a point. But I need a more simple solution. I can create a first tangent curve ...
  • 1,601
1 vote
1 answer
525 views

tikz curves with labeled nodes as start and end points

These days I'm typesetting a lot of trees (in the graph-theoretic sense) using pst-jtree, which is essentially a collection of macros over pstricks. So, I might have the following. \jtree \! = {A}!...
  • 883
3 votes
1 answer
220 views

plot and fit from pgfplottable

I would like to plot a graph from data created inside pgfplottable. I have one file of data data.dat: x,y 1,2 2,3 3,4 4,5 5,8 6,9 7,34 And this code : \documentclass{beamer} \usepackage{etex} \...
  • 243
6 votes
2 answers
4k views

Interpolation and curve fitting - Tikzpicture? Gnuplot? Pgfplot?

well, I am fairly new to LaTeX, but I tried my hardest do find a solution for my problem but I couldn't find a proper answer, so I hope someone here has the answer or another suggestion for me. I ...
  • 269
8 votes
5 answers
740 views

drawing two curved arrows with ellipse between them

how can I draw two curved arrows with two ellipses between them like attached image?
  • 289
1 vote
0 answers
391 views

Drawing knots with 8 crossings and labels [closed]

So for a project, I have to draw the knot diagrams of all alternating knots with up to 8 crossings and label the regions bounded by the knots. For knots with up to 7 crossings, I used PSTricks, pst-...
  • 43
5 votes
3 answers
1k views

Curves with Latex

How I can draw curves as : Any help would be appreciated.
  • 279
2 votes
1 answer
3k views

Edgeworth Box of Pareto efficiency

I would like to have a figure like the following image, but I can't find a way to make the red convex curves. My code so far contains: \begin{tikzpicture} \draw (1, 3.5) to[out=0,in=90] (3.5, 1); \...
  • 3,212
6 votes
1 answer
3k views

Draw curved arrows between nodes in tikz-qtree

Is there a "clever" way to draw curved lines between nodes without them to go all through the picture? Here is my MWE : \documentclass[11pt]{beamer} \usepackage{ulem} \usepackage{tikz-qtree} \...
  • 949
3 votes
0 answers
177 views

How to define a pgf curve with points instead of controls? [duplicate]

The syntax to produce a Bézier curve in pgf is \pgfpathcurveto{first control point}{second control point}{target} This defines the curvature by control points. Considering the degrees of freedom the ...
  • 2,913
10 votes
2 answers
8k views

Fitting a curve from a table! (Tikz/Pgfplots)

I ploted the data from the table below (first vs. fourth column), 3000 1.2970e+00 0.198956 0.258046 3100 8.6050e-01 0.18747 0.161318 3200 5.7970e-01 0....
  • 5,519
1 vote
1 answer
429 views

Legend entry with curve fits

I am plotting two data sets with curve fits added manually (by defining two functions). How can I edit my legend entry to combine the data points and lines into one icon? So instead of having four ...
  • 21
22 votes
3 answers
11k views

Smooth curve through points with pgfplots

I know that one can get smooth point connections with option smooth to \addplot that takes the previous and the next point into account, but this still connects all the points. How can I draw a ...
  • 12.8k
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 ...
83 votes
6 answers
8k views

Curve through a sequence of points with Metapost and TikZ

This question led to a new package: hobby I found Metapost best for drawing complex smooth curves (i.e., Bezier, splines), since you do not have to directly specify Bezier control points. ...
  • 2,692
12 votes
1 answer
6k views

What "smooth" plot interpolation algorithm does pgfplots use?

In the pgfplots manual it says: \addplot+[smooth] Smooth plots interpolate smoothly between successive points. In order to choose the right sampling of points from a function evaluation for plotting,...
  • 14.1k