Tuesday, 15 June 2010

Gnuplot not plot on function domain -



Gnuplot not plot on function domain -

i have problem, believe bug on gnuplot.

i seek plot this

here code im using

set yrange [0:1] set xrange [0:10] pl sqrt(1-1/x)

but fit curve start around [1:0.1] , want create start @ [1:0] cant, know simple fit , cannot find can this. on gnuplot got problem, utilize chrome plot function plot ok, , after want manage plot function external data.

i glad if help me.

that's matter of sampling. utilize 101 sample points (or high sampling rate), includes 1 sampling point , you're fine:

set yrange [0:1] set xrange [0:10] set samples 101 pl sqrt(1-1/x)

result 4.6.5:

gnuplot

No comments:

Post a Comment