I plotting some data using octave

Click For Summary
The discussion centers on using Octave to plot a dataset from a text file as an XY scatter plot, specifically for creating polar plots. The user expresses difficulty in finding tutorials that address plotting datasets rather than functions. They seek a method to convert their data, which includes measurement errors in both angle and intensity, into a format suitable for plotting with error bars. A solution is suggested for using GNUPlot, recommending the command "plot 'gnudem.txt' using 1:2:3:4 with xyerrorbars" to display the data along with error bars. This indicates a potential workaround for users who may also be struggling with similar plotting challenges in Octave or GNUPlot.
richyw
Messages
179
Reaction score
0
Hi, I'm having a lot of trouble finding a tutorial that would allow me to plot a set of data using octave. Everything seems to be teaching me how to plot functions.

but say I have a list of data saved in a text file. How do I turn this into an xy scatter? Is this possible using octave?

I can do this easily using other programs, but they do not have built in polar plot functions, so I always have to convert them to cartesian graphs. I know how to plot polar functions in octave, so was hoping that if I learned how to plot datasets I could turn them into polar plots easily.

thanks!
 
Physics news on Phys.org
alright I have figured out everything EXCEPT how to get in error bars. I have my measurement error values in both the angle, and intensity. They are in this format in my .dat file

angle intensity angle-error intensity-error

any thoughts on how to get these showing? I can't get them showing in gnuplot either...
 
You should have some success with GNUPlot using:

Code:
plot "gnudem.txt" using 1:2:3:4  with xyerrorbars
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K