[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    Re: Question
From:       "Dick Crawford" <crawford () arete ! com>
Date:       2000-05-17 15:53:36
[Download RAW message or body]

OnTuesday, May 16, 2000 Connie A. Logg wrote:

  >I have two data sets (dsn1 and dsn2) that I would like to do some =
simple >arithmetic on when I plot them.  I want to plot the following:
  >

  >(dsn1 column(6)) + (dsn1 column(7)) - (dsn2 column (7))
  >

  >I know I can do column(6)+column(7), but I can't figure out how to =
subtract >column 7 of dsn2.\

  gnuplot can't do this by itself -- it can have only one data file open =
at a time.

  You'll have to prepare your data outside of gnuplot.  But you may be =
able to run whatever process you concoct from within gnuplot.  For =
example, if the routine "blah" reads your data and writes out the data =
to be plotted to SYSOUT (or STDOUT or whatever your system calls it), =
you can redirect the output to gnuplot with
      plot "< blah"
  -- if your system supports redirection, that is.

  Dick Crawford, aka crawford@arete.com

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; \
PADDING-LEFT: 5px; PADDING-RIGHT: 0px">  <DIV style="FONT: 10pt arial">OnTuesday, May \
16, 2000 <A   href="mailto:cal@slac.stanford.edu" title=cal@slac.stanford.edu>Connie \
A.   Logg</A>&nbsp;wrote:</DIV>
  <DIV><BR>&gt;I have two data sets (dsn1 and dsn2) that I would like to do some 
  simple &gt;arithmetic on when I plot them.&nbsp; I want to plot the 
  following:</DIV>&gt;<BR>
  <DIV>&gt;(dsn1 column(6)) + (dsn1 column(7)) - (dsn2 column (7))</DIV>&gt;<BR>
  <DIV>&gt;I know I can do column(6)+column(7), but I can't figure out how to 
  subtract &gt;column 7 of dsn2.\</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>gnuplot can't do this by itself -- it can have only one data file open at 
  a time.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>You'll have to prepare your data outside of gnuplot.&nbsp; But you may be 
  able to run whatever process you concoct from within gnuplot.&nbsp; For 
  example, if the routine "blah" reads your data and writes out the data to be 
  plotted to SYSOUT (or STDOUT or whatever your system calls it), you can 
  redirect the output to gnuplot with</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; plot "&lt; blah"</DIV>
  <DIV>-- if your system supports redirection, that is.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Dick Crawford, aka <A 
  href="mailto:crawford@arete.com">crawford@arete.com</A></DIV></BLOCKQUOTE></BODY></HTML>



 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic