Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1394 > unrolled thread

A problem with generating graphs

Started byVin <pvinod1973@gmail.com>
First post2012-10-01 04:32 -0700
Last post2012-10-02 04:16 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  A problem with generating graphs Vin <pvinod1973@gmail.com> - 2012-10-01 04:32 -0700
    Re: A problem with generating graphs James <jjpuzzles@wowway.com> - 2012-10-02 04:16 -0700

#1394 — A problem with generating graphs

FromVin <pvinod1973@gmail.com>
Date2012-10-01 04:32 -0700
SubjectA problem with generating graphs
Message-ID<004758a9-5cd3-4e24-bfe0-f710a91b7b38@googlegroups.com>
Hi,

I a really new to gnuplot and started using it recently. 
When I use the following script to generate a graph:


# Gnuplot script file for plotting data in file "result_standard.dat"
  2 # This file is called script_standard.gpl
  3 #
  4    set   autoscale                        # scale axes automatically
  5    unset log                              # remove any log-scaling
  6    unset label                            # remove any previous labels
  7    set xtic auto                          # set xtics automatically
  8    set ytic auto                          # set ytics automatically
  9    #set key right nobox
 10    set title "Optimum number of coils (nopt) with constant Pt and Pth and va    riable d"
 11    set xlabel "d (meters)"
 12    set ylabel "nopt"
 13    #set size 0.5, 0.5
 14    #set term png size 600, 400
 15    set term png
 16    set output "graph_standard.png"
 17    plot "result_standard.dat" using 1:2 with linespoints


I see the that the string "result_standard.dat" using 1:2 with linespoints
 appears on the graph. I took this script from a google search, and the output shown therein has no such problem.

I am naming my script file with .gpl extension. In the original case, the extension .p had been used to name the file. 

Please point out what is wrong with my script.

Really appreciate your comments.

thanks
Vinod

[toc] | [next] | [standalone]


#1397

FromJames <jjpuzzles@wowway.com>
Date2012-10-02 04:16 -0700
Message-ID<895209f7-c691-461e-bc80-25e987675d58@i14g2000yqe.googlegroups.com>
In reply to#1394
On Oct 1, 7:32 am, Vin <pvinod1...@gmail.com> wrote:
>  17    plot "result_standard.dat" using 1:2 with linespoints
>
> I see the that the string "result_standard.dat" using 1:2 with linespoints
>  appears on the graph. I took this script from a google search, and the output shown therein has no such problem.
> thanks
> Vinod

Hi Vinod,

Try
plot "result_standard.dat" using 1:2 notitle with linespoints
or
plot "result_standard.dat" using 1:2 title "sample curve title" with
linespoints

Regards,
James

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web