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


Groups > comp.graphics.apps.gnuplot > #870

Re: Plotting data from an SQL

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.x-privat.org!diesel.cu.mi.it!not-for-mail
From pg <picanog@yahoo.it>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plotting data from an SQL
Date Wed, 25 Jan 2012 15:43:20 +0100
Organization C.U. srl News Server
Lines 38
Message-ID <jfp4e3$q8a$1@tdi.cu.mi.it> (permalink)
References <jfhc4v$ef8$1@tdi.cu.mi.it> <jfmr05$81b$1@dont-email.me>
NNTP-Posting-Host deibp9eh1--blueice1n2.emea.ibm.com
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace tdi.cu.mi.it 1327502595 26890 195.212.29.164 (25 Jan 2012 14:43:15 GMT)
X-Complaints-To abuse@diesel.cu.mi.it
NNTP-Posting-Date Wed, 25 Jan 2012 14:43:15 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
In-Reply-To <jfmr05$81b$1@dont-email.me>
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:870

Show key headers only | View raw


Tks Michael,

from your answer I understand there is no way to do the same directly 
from  Gnuplot command line under Windows.
This way needs to pre-prepare data so that you lost the power of the 
interaction.

Under Linux piped input helps, so tath from Gnuplot command line you ca 
do the same you well eplained staying into the application.

I don't know if under windows, customizing something, could be possible 
enable the piped input.

In any case thanks for your answer.

Il 24/01/2012 18.50, Michael ha scritto:
> 22.01.2012 23:05, pg пишет:
>> Is it possible to pass to the load command an SQL string to read data
>> from an SQL db?
>>
>> I read this is possible (piped input) under Linux but I'm not be able to
>> found the same (also with a package) under Windows environment.
>>
>> Any help will be appreciated.
>
> For example, if you have a SQLite database.
>
> plot.gp:
> plot "data.dat" using 1:2 w linesp
>
> plot.bat:
> sqlite3 base.db "select x,y from tbl" >data.dat
> gnuplot -persist plot.gp
>
>
> You can change the first command if the batch file according to your
> database.
>

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Plotting data from an SQL pg <picanog@yahoo.it> - 2012-01-22 17:05 +0100
  Re: Plotting data from an SQL Michael <proximum@land.ru> - 2012-01-25 00:50 +0700
    Re: Plotting data from an SQL pg <picanog@yahoo.it> - 2012-01-25 15:43 +0100
      Re: Plotting data from an SQL Michael <proximum@land.ru> - 2012-01-26 04:01 +0700

csiph-web