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


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

obtain a pdf graph from .cvs file

Started byRamon Yll Prous <ryllprous@gmail.com>
First post2014-03-19 15:42 -0700
Last post2014-04-04 12:35 -0700
Articles 9 — 3 participants

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


Contents

  obtain a pdf graph from .cvs file Ramon Yll Prous <ryllprous@gmail.com> - 2014-03-19 15:42 -0700
    Re: obtain a pdf graph from .cvs file Karl <mail.kfr@gmx.net> - 2014-03-20 02:48 +0100
      Re: obtain a pdf graph from .cvs file Ramon Yll Prous <ryllprous@gmail.com> - 2014-03-20 12:54 -0700
        Re: obtain a pdf graph from .cvs file Karl <mail.kfr@gmx.net> - 2014-03-21 18:34 +0100
    Re: obtain a pdf graph from .cvs file Olaf Schultz <o.schultz@enhydralutris.de> - 2014-03-20 20:59 +0100
      Re: obtain a pdf graph from .cvs file Ramon Yll Prous <ryllprous@gmail.com> - 2014-03-20 13:50 -0700
        Re: obtain a pdf graph from .cvs file Karl <mail.kfr@gmx.net> - 2014-03-21 18:25 +0100
          Re: obtain a pdf graph from .cvs file Karl <mail.kfr@gmx.net> - 2014-03-23 18:30 +0100
    Re: obtain a pdf graph from .cvs file Ramon Yll Prous <ryllprous@gmail.com> - 2014-04-04 12:35 -0700

#2356 — obtain a pdf graph from .cvs file

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-03-19 15:42 -0700
Subjectobtain a pdf graph from .cvs file
Message-ID<6ab80666-7313-4dfc-8dcc-2d0ddde2ce70@googlegroups.com>
Hello,

I'm new in using gnuplot and I'd like to obtain pdf graphs of a .csv file. Which would be commands I should use? I have read different tutorials but I'm having problems in knowing which terminal I should use. (I have used epslatex because I know a friend of mine uses it but without understanding why...)

What I have done is:
 
gnuplot> set terminal epslatex                                             #definir la terminal (crec qye es amb la que treballaves tu, no?)
Terminal type set to 'epslatex'
Options are '   leveldefault monochrome blacktext \
   dashed dashlength 1.0 linewidth 1.0 butt noclip \
   nobackground \
   palfuncparam 2000,0.003 \
   noheader "" 11  fontscale 1.0 '
gnuplot> set output "PROBA.eps"
gnuplot> set output "PROBA.tex"
gnuplot> plot "field-electrode.csv" using 1:2 
         warning: Skipping unreadable file "field-electrode.csv"
         No data in plot

Can somebody please help me? I would really appreciate it...

Ramon

[toc] | [next] | [standalone]


#2357

FromKarl <mail.kfr@gmx.net>
Date2014-03-20 02:48 +0100
Message-ID<lgdhc9$c8r$1@news.rz.uni-karlsruhe.de>
In reply to#2356
Am 19.03.2014 23:42, schrieb Ramon Yll Prous:
> Hello,
> 
> I'm new in using gnuplot and I'd like to obtain pdf graphs of a .csv file. Which would be commands I should use? I have read different tutorials but I'm having problems in knowing which terminal I should use. (I have used epslatex because I know a friend of mine uses it but without understanding why....)
> 

use the pdfcairo terminal

> What I have done is:
>  
> gnuplot> set terminal epslatex                                             #definir la terminal (crec qye es amb la que treballaves tu, no?)
> Terminal type set to 'epslatex'
> Options are '   leveldefault monochrome blacktext \
>    dashed dashlength 1.0 linewidth 1.0 butt noclip \
>    nobackground \
>    palfuncparam 2000,0.003 \
>    noheader "" 11  fontscale 1.0 '
> gnuplot> set output "PROBA.eps"
> gnuplot> set output "PROBA.tex"


   set output "pdffilename.pdf"

you have to

   set datafile separator ","

because gnuplot otherwise expects a space or tab between values



> gnuplot> plot "field-electrode.csv" using 1:2 
>          warning: Skipping unreadable file "field-electrode.csv"
>          No data in plot


after plotting, you have to close the output file with

   set output




[toc] | [prev] | [next] | [standalone]


#2360

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-03-20 12:54 -0700
Message-ID<b4de8399-aa07-4128-a323-78ebf83bf66e@googlegroups.com>
In reply to#2357
ok,

thanks for your response. It worked but now I get an error when trying to open the .pdf file which says:

"Unable to open document
File type document de text pla (text/plain)is not supported"

Any idea about what should I do? I think the problem appears because I'm using Linux (Ubuntu 12.04)


Thanks again,

Ramon

[toc] | [prev] | [next] | [standalone]


#2367

FromKarl <mail.kfr@gmx.net>
Date2014-03-21 18:34 +0100
Message-ID<lght5t$eq$1@news.rz.uni-karlsruhe.de>
In reply to#2360
Am 20.03.2014 20:54, schrieb Ramon Yll Prous:
> ok,
> 
> thanks for your response. It worked but now I get an error when trying to open the .pdf file which says:
> 
> "Unable to open document
> File type document de text pla (text/plain)is not supported"
> 
> Any idea about what should I do? I think the problem appears because I'm using Linux (Ubuntu 12.04)
> 

unlikely. you just haven´t set the correct terminal, and written the
output of that other terminal into a pdf file. Which of course cannot
work then.

You ubuntu is cleverer than windows, and also looks into the file to
detect it´s type, instead of relying on the extension.

 K


P.S. Please only reply to the newsgroup, unless you want to contact
someone personally. Mailboxes get cluttered up enough as is. ,-)

[toc] | [prev] | [next] | [standalone]


#2361

FromOlaf Schultz <o.schultz@enhydralutris.de>
Date2014-03-20 20:59 +0100
Message-ID<bp0vktFa0qlU1@mid.individual.net>
In reply to#2356
Ramon Yll Prous wrote:
> Hello,
> 
> I'm new in using gnuplot and I'd like to obtain pdf graphs of a .csv file. Which would be commands I should use? I have read different tutorials but I'm having problems in knowing which terminal I should use. (I have used epslatex because I know a friend of mine uses it but without understanding why....)
> 
> What I have done is:
>  
> gnuplot> set terminal epslatex                                             #definir la terminal (crec qye es amb la que treballaves tu, no?)
> Terminal type set to 'epslatex'
> Options are '   leveldefault monochrome blacktext \
>    dashed dashlength 1.0 linewidth 1.0 butt noclip \
>    nobackground \
>    palfuncparam 2000,0.003 \
>    noheader "" 11  fontscale 1.0 '
> gnuplot> set output "PROBA.eps"
> gnuplot> set output "PROBA.tex"
> gnuplot> plot "field-electrode.csv" using 1:2 
>          warning: Skipping unreadable file "field-electrode.csv"
>          No data in plot
> 
> Can somebody please help me? I would really appreciate it...

ps2pdf

> Ramon

[toc] | [prev] | [next] | [standalone]


#2362

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-03-20 13:50 -0700
Message-ID<1825909b-193e-4457-9b88-607ff0b2b291@googlegroups.com>
In reply to#2361
I don't have it either... These are the available terminal types I have:

Available terminal types:
           canvas  HTML Canvas object
              cgm  Computer Graphics Metafile
          context  ConTeXt with MetaFun (for PDF documents)
            corel  EPS format for CorelDRAW
             dumb  ascii art for anything that prints text
              dxf  dxf-file for AutoCad (default size 120x80)
            eepic  EEPIC -- extended LaTeX picture environment
              emf  Enhanced Metafile format
            emtex  LaTeX picture environment with emTeX specials
         epslatex  LaTeX picture environment using graphicx package
              fig  FIG graphics language for XFIG graphics editor
             gpic  GPIC -- Produce graphs in groff using the gpic preprocessor
          hp2623A  HP2623A and maybe others
           hp2648  HP2648 and HP2647
             hpgl  HP7475 and relatives [number of pens] [eject]
           imagen  Imagen laser printer
            latex  LaTeX picture environment
               mf  Metafont plotting standard
              mif  Frame maker MIF 3.00 format
               mp  MetaPost plotting standard
             pcl5  HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
Press return for more: 
       postscript  PostScript graphics, including EPSF embedded files (*.eps)
          pslatex  LaTeX picture environment with PostScript \specials
            pstex  plain TeX with PostScript \specials
         pstricks  LaTeX picture environment with PSTricks macros
              qms  QMS/QUIC Laser printer (also Talaris 1200 and others)
            regis  REGIS graphics language
              svg  W3C Scalable Vector Graphics driver
          tek40xx  Tektronix 4010 and others; most TEK emulators
          tek410x  Tektronix 4106, 4107, 4109 and 420X terminals
          texdraw  LaTeX texdraw environment
             tgif  TGIF X11 [mode] [x,y] [dashed] ["font" [fontsize]]
         tkcanvas  Tk/Tcl canvas widget [perltk] [interactive]
             tpic  TPIC -- LaTeX picture environment with tpic \specials
          unknown  Unknown terminal type - not a plotting device
            vttek  VT-like tek40xx terminal emulator
              x11  X11 Window System
             xlib  X11 Window System (gnulib_x11 dump)
            xterm  Xterm Tektronix 4014 Mode

If noone of these works, how can I install another terminal? (I'm using gnuplot 4.6.5)


Ramon

[toc] | [prev] | [next] | [standalone]


#2366

FromKarl <mail.kfr@gmx.net>
Date2014-03-21 18:25 +0100
Message-ID<lghsko$vua$1@news.rz.uni-karlsruhe.de>
In reply to#2362
Am 20.03.2014 21:50, schrieb Ramon Yll Prous:
> I don't have it either... These are the available terminal types I have:
> 
> Available terminal types:

...

You seem to have installed the 4.6.5-rc1 that was available on
gnuplot.info a few weeks ago. It missed all the cairo/pango based terminals.

Just reinstall the now released official binary, then you can use cairopdf.

  K


[toc] | [prev] | [next] | [standalone]


#2368

FromKarl <mail.kfr@gmx.net>
Date2014-03-23 18:30 +0100
Message-ID<lgn5lv$vak$1@news.rz.uni-karlsruhe.de>
In reply to#2366
Am 21.03.2014 18:25, schrieb Karl:
> Am 20.03.2014 21:50, schrieb Ramon Yll Prous:
>> I don't have it either... These are the available terminal types I have:
>>
>> Available terminal types:
> 
> ....
> 
> You seem to have installed the 4.6.5-rc1 that was available on
> gnuplot.info a few weeks ago. It missed all the cairo/pango based terminals.
> 
> Just reinstall the now released official binary, then you can use cairopdf.
> 

Oops, is just saw there is no final 4.6.5 yet. But the -rc2 works fine.

http://sourceforge.net/projects/gnuplot/files/gnuplot/testing%20%28pre-release%29%20binaries/gp465-win32-mingw-rc2.exe/download

[toc] | [prev] | [next] | [standalone]


#2395

FromRamon Yll Prous <ryllprous@gmail.com>
Date2014-04-04 12:35 -0700
Message-ID<7537d113-0233-4ad1-bd6d-d4f2846fa590@googlegroups.com>
In reply to#2356
Karl:

i am using ubuntu so I downloaded the 4.6.5-rc2.zip file but when I unzip it and install it, I get the version 4.4.3 installed in my computer. Is this a problem related to synaptics? I don't know how to get the pdfcairo terminal installed..!

Ramon

[toc] | [prev] | [standalone]


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


csiph-web