From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Suppress table when creating gnuplot on HTML export? Date: Tue, 27 Feb 2018 18:45:54 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11468de6120c8c05663cbe29" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqrkl-0007ed-Gw for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 21:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqrkk-0007AW-Cu for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 21:45:59 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqrkk-00079t-0y for emacs-orgmode@gnu.org; Tue, 27 Feb 2018 21:45:58 -0500 Received: by mail-wm0-x232.google.com with SMTP id x7so2237998wmc.0 for ; Tue, 27 Feb 2018 18:45:57 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Lawrence Bottorff Cc: emacs-orgmode Mailinglist --001a11468de6120c8c05663cbe29 Content-Type: text/plain; charset="UTF-8" Can you just put the table in a section tagged noexport, e.g. * data :noexport: #+tblname: mydata | -2 | 0 | | -0.015 | 0 | | | | | 0.015 | 1 | | 2 | 1 | John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Feb 27, 2018 at 6:27 PM, Lawrence Bottorff wrote: > I've got this: > > #+tblname: mydata > | -2 | 0 | > | -0.015 | 0 | > | | | > | 0.015 | 1 | > | 2 | 1 | > > ##+begin_src gnuplot :var data=mydata :exports results :file > images/gap1.png > #+begin_src gnuplot :var data=mydata :results output :file images/gap1.png > reset > set terminal png size 350,262 > set border linewidth 1.5 > # set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 6 ps 1.25 # --- blue > set style line 1 lc rgb '#0060ad' lt 1 lw 2 # --- blue > set data missing > > unset key > > set ytics 1 > set tics scale 0.75 > > set xrange [-2:2] > set yrange [-0.5:1.5] > set xzeroaxis linetype 2 linewidth 1 > set yzeroaxis linetype 2 linewidth 1 > set tics scale 0.75 > set xtics 1 > set ytics 0.5 > > # Defining a step function > #s(x) = x<0 ? 0.0 : 1.0 > > plot data with lines ls 1 > #+end_src > > which works fine producing exactly the image I want. However, I don't > really need the table showing up on an export (to html at the moment). Is > there a way to suppress the table `mydata` from being shown? > > LB > --001a11468de6120c8c05663cbe29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can you just put the table in a section tagged noexport, e= .g.


* data=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:noexport:

#+tblname: mydata
|=C2=A0 =C2=A0 =C2=A0-2 | 0 |
|= -0.015 | 0 |
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0|
<= div>|=C2=A0 0.015 | 1 |
|=C2=A0 =C2=A0 =C2=A0 2 | 1 |
=

John

-----------------------------------
Professor Joh= n Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engineering=
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803<= /div>

On Tue, Feb 27, 2018 at 6:27 PM, Lawrence Bo= ttorff <borgauf@gmail.com> wrote:
I've got this:

#+tblna= me: mydata=C2=A0
|=C2=A0 =C2=A0 =C2=A0-2 | 0 |
| -0.015= | 0 |
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0|
|= =C2=A0 0.015 | 1 |
|=C2=A0 =C2=A0 =C2=A0 2 | 1 |

##+begin_src gnuplot :var data=3Dmydata :exports results :file ima= ges/gap1.png
#+begin_src gnuplot :var data=3Dmydata :results outp= ut :file images/gap1.png
reset
set terminal png size 35= 0,262
set border linewidth 1.5
# set style line 1 lc rg= b '#0060ad' lt 1 lw 2 pt 6 ps 1.25 # --- blue
set style l= ine 1 lc rgb '#0060ad' lt 1 lw 2 # --- blue
set data miss= ing

unset key

set ytics 1=
set tics scale 0.75

set xrange [-2:2]
set yrange [-0.5:1.5]
set xzeroaxis linetype 2 linewidth= 1
set yzeroaxis linetype 2 linewidth 1
set tics scale = 0.75
set xtics 1
set ytics 0.5

# Defining a step function
#s(x) =3D x<0 ? 0.0 : 1.0=C2=A0

plot data with lines ls 1
#+end_src
<= /div>

which works fine producing exactly the image I wan= t. However, I don't really need the table showing up on an export (to h= tml at the moment). Is there a way to suppress the table `mydata` from bein= g shown?

LB

--001a11468de6120c8c05663cbe29--