I plotting some data using octave

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
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