Building Graph Bands with Errors

Click For Summary
SUMMARY

The discussion focuses on creating graph bands to represent error margins in data visualizations. Users recommend using Python's Matplotlib library, specifically the "fill_between" function, to achieve this effect. While ROOT is capable of generating such graphs, participants express a preference for alternative, free software solutions. The conversation highlights the need for tools that can effectively visualize error margins in mathematical expressions like y = bx + (c ± δc).

PREREQUISITES
  • Familiarity with Python programming
  • Understanding of data visualization concepts
  • Knowledge of Matplotlib library (version 3.4 or later)
  • Basic grasp of error analysis in mathematical functions
NEXT STEPS
  • Research how to use Matplotlib's "fill_between" function for error bands
  • Explore alternative data visualization libraries like Seaborn or Plotly
  • Learn about error propagation in mathematical modeling
  • Investigate other free software options for graphing, such as Gnuplot or R's ggplot2
USEFUL FOR

This discussion is beneficial for data scientists, researchers, and anyone involved in data visualization who needs to represent error margins in their graphs effectively.

ChrisVer
Science Advisor
Messages
3,372
Reaction score
465
I'm not really sure where this thread belongs...

Do you know any (free) program that can allow to build bands (instead of just line curves) to take into consideration the errors of a graph?

eg if I want to draw:
[itex]y= bx + (c \pm \delta c)[/itex] to get something like the yellow band in this (of course it's just an example for what I'm looking):
Χωρίς τίτλο2.jpg
 
Physics news on Phys.org
Looks like a science software question.

ROOT can do it, but I would avoid it if possible...
 
There probably are several programs that do it and probably several ways to do it...a quick search reveals that you should be able to do it using python/matplotlib with the "fill_between" plotting funtion; see this example.
 
  • Like
Likes   Reactions: ChrisVer

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 56 ·
2
Replies
56
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K