emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Suppress table when creating gnuplot on HTML export?
@ 2018-02-28  2:27 Lawrence Bottorff
  2018-02-28  2:45 ` John Kitchin
  0 siblings, 1 reply; 2+ messages in thread
From: Lawrence Bottorff @ 2018-02-28  2:27 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1472 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Suppress table when creating gnuplot on HTML export?
  2018-02-28  2:27 Suppress table when creating gnuplot on HTML export? Lawrence Bottorff
@ 2018-02-28  2:45 ` John Kitchin
  0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2018-02-28  2:45 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

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 <borgauf@gmail.com>
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
>

[-- Attachment #2: Type: text/html, Size: 2801 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-28  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28  2:27 Suppress table when creating gnuplot on HTML export? Lawrence Bottorff
2018-02-28  2:45 ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).