# How to Calculate and Plot Fit Residuals from Numerical Integration to High Precision

**URL:** <https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094>\
**Category:** General Usage\
**Created:** [June 9, 2020, 8:38pm UTC](https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094 "2020-06-09T20:38:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [June 9, 2020, 8:49pm UTC](https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094/2 "2020-06-09T20:49:47Z")

</div>

You can use `BigFloat`s to increase the precision and also use `setprecision()` to tweak it manually. To plot the results, you can use one of the many plotting libraries out there (PGFPlotsX.jl, Plots.jl, Gaston.jl, Makie.jl, UnicodePlots.jl, …).

I am not sure where you struggle to be honest, given that the code snippet you provide is neither working, nor is it self-descriptive. Anyways, I think both of your questions are answered now 😉

Btw. you can quote your code to make it more readable (here is a quick guide how to make it easier to help you: [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757))

---

_[View the full topic](https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094)._
