# Intersection of two plots

**URL:** https://discourse.julialang.org/t/intersection-of-two-plots/98687
**Category:** General Usage
**Tags:** question, plotting
**Created:** [May 11, 2023, 3:40pm UTC](https://discourse.julialang.org/t/intersection-of-two-plots/98687 "2023-05-11T15:40:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [May 11, 2023, 3:44pm UTC](https://discourse.julialang.org/t/intersection-of-two-plots/98687/2 "2023-05-11T15:44:14Z")

</div>

see

> [@Mark the Intersection Points on a Plot Graph](https://discourse.julialang.org/t/mark-the-intersection-points-on-a-plot-graph/90828/8):
>
> Some example code for computing the intersection of curves from discrete data points using polynomial fits. This code blocks creates some artificial data. using Polynomials, Plots # two functions that intersect on an interval (a,b) f1(x) = 2x + 12 f2(x) = x^2 (a,b) = (2,7) # the interval of interest n = 10 # number of data points ynoise = 0.3 # noise level, absolute # create some noisy data from those two functions x = range(a, b, length=n) y1 = f1.(x) + ynoise\*randn(n) y2 …

---

_[View the full topic](https://discourse.julialang.org/t/intersection-of-two-plots/98687)._
