a little bit simpler:
p [0.85:6.5] [0:1.2] 1/x,'-' using 1:(1./$1) with points
1
2
3
4
5
6
e
or a little bit more difficult:
set xrange [1:4]
set samples 4
set table 'temp.dat'
plot 1./x
unset table
set xrange [0.85:6.5]
set yrange [0:1.2]
set samples 100
plot 1./x, 'temp.dat' with points
bsmile wrote:
>
> Thanks, really wonderful!
>
> I did something like this, (of course very awkward one)
>
> p [0.85:6.5] [0:1.2] 1/x,'-' w p
> 1 1
> 2 0.5
> 3 0.333
> 4 0.25
> 5 0.2
> 6 0.166
> e
>
> just to share with others ..
>
> Sincerely,
> Jon
>
>
> On Fri, Feb 25, 2011 at 3:42 PM, Thomas Sefzick
> <t.sefzick@...:
>
>>
>> if the y-values can be described using a function (like in your example):
>>
>> set samples 4
>> f(x)=1./x
>> set xrange [1:4]
>> plot f(x) with linespoints
>>
>>
>> bsmile wrote:
>> >
>> > Hi,
>> >
>> > I would like to draw a very simple plot composed of a list of
>> disconnected
>> > points, I am wondering whether there is anything like
>> >
>> > plot {1,2,3,4} {1/1,1/2,1/3,1/4}
>> >
>> > where the first list is for x while the second list is for y.
>> >
>> > What I know to plot this is to set up a file containing two columns,
>> but
>> > to
>> > such a simple plot, I hope there were more straightforward ways
>> >
>> > Thanks,
>> >
>> > Sincerely,
>> > Jon
>> >
>> ------------------------------------------------------------------------------
>> > Free Software Download: Index, Search & Analyze Logs and other IT data
>> in
>> > Real-Time with Splunk. Collect, index and harness all the fast moving
>> IT
>> > data
>> > generated by your applications, servers and devices whether physical,
>> > virtual
>> > or in the cloud. Deliver compliance at lower cost and gain new business
>> > insights. http://p.sf.net/sfu/splunk-dev2dev
>> > _______________________________________________
>> > gnuplot-info mailing list
>> > gnuplot-info@...
>> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/is-there-easy-way-to-draw-a-simple-plot--tp31015580p31016631.html
>> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Free Software Download: Index, Search & Analyze Logs and other IT data in
>> Real-Time with Splunk. Collect, index and harness all the fast moving IT
>> data
>> generated by your applications, servers and devices whether physical,
>> virtual
>> or in the cloud. Deliver compliance at lower cost and gain new business
>> insights. http://p.sf.net/sfu/splunk-dev2dev
>> _______________________________________________
>> gnuplot-info mailing list
>> gnuplot-info@...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> gnuplot-info mailing list
> gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/is-there-easy-way-to-draw-a-simple-plot--tp31015580p31017132.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|