Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3972
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2018-06-19 09:41 -0700 |
| Message-ID | <a7122b88-09e6-4e90-a094-09d175c8b66b@googlegroups.com> (permalink) |
| Subject | consistency of function .vs. data plotting |
| From | palme@kapott.org |
Hi all, I am quite new to gnuplot, so maybe I am just not knowing some basics. My understanding of the documentation is that something like "plot f(x)" is equivalent to "plot '+' using 1:(f($1))". Of course the former uses "set style function" as default plotting style, and the latter "set style data", but that's not my point... My issue is that if f(x)=asin(x) the result is different: plotting the pure function does NOT plot points for the complex results in the range outside [-1,1]. But the approach using the pseudo data file plots also points for the complex results outside the [-1,1] range. See yourself: print "using pure function" plot asin(x) pause -1 "press enter" print "using pseudo data file" plot '+' using 1:(asin($1)) with lines pause -1 "press enter" So I have two questions: 1) Where exactly is my misunderstanding of the documentation, regarding the way how data file plotting works in comparison to plotting pure functions? 2) How can I avoid these complex results to be plotted with the second approach? Thanks and regards -stefan-
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
consistency of function .vs. data plotting palme@kapott.org - 2018-06-19 09:41 -0700
Re: consistency of function .vs. data plotting Karl Ratzsch <mail.kfr@gmx.net> - 2018-06-25 16:06 +0200
Re: consistency of function .vs. data plotting Karl Ratzsch <mail.kfr@gmx.net> - 2018-06-25 23:55 +0200
Re: consistency of function .vs. data plotting palme@kapott.org - 2018-06-25 08:43 -0700
csiph-web