emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: missing header argument does not work any longer [8.3.4 (8.3.4-47-gaf853d-elpaplus @ c:/Users/harald/AppData/Roaming/.emacs.d/elpa/org-plus-contrib-20160502/)]
Date: Fri, 06 May 2016 14:37:52 -0400	[thread overview]
Message-ID: <87a8k3jam7.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 01ba2743-3517-4ae8-149e-c807672d6622@web.de

Harald Sanftmann <haraldsa@web.de> writes:

> I have some org-tables which contain empty fields. I specified :missing "?" to get the right results.
> When I try to plot them with Gnuplot the empty fields are not exported as '?' but just as empty strings
> ''. Gnuplot therefore just uses the next non empty field for the value and therefore shifts the columns
> of the given row.
>
> To make it more concrete:
>
>   #+TBLNAME: data-missing
>   | Comment    |    gnutime | milage/km | something else |
>   |------------+------------+-----------+----------------|
>   | JET        | 2012-01-01 |      1000 |                |
>   |            | 2012-02-01 |      2000 |            100 |
>   | DUMMY      | 2012-03-01 |      3000 |                |
>   |            | 2012-04-01 |      4000 |            100 |
>   | OMV        | 2012-05-01 |      5000 |                |
>   | OMV PETROM | 2012-06-01 |      6000 |                |
>   | OMV PETROM | 2012-07-01 |      7000 |                |
>   | OMV        | 2012-08-01 |      8000 |                |
>   | BP         | 2012-09-01 |      9000 |                |
>   #+begin_src gnuplot :var data=data-missing :exports both :file data-missing.svg :missing "?" :set
> "xtics nomirror rotate by -45 font \",8\""
>   reset
>   set xtics nomirror rotate by -45 font ",8"
>   set title "Fahr Plot"
>   set xdata time
>   set timefmt "%Y-%m-%d-%H:%M:%S"
>   set xlabel "Time"
>   set ylabel "Distance"
>   set format y "%.0s T%cm"
>   set key top left
>   FIT_LIMIT = 1e-36
>   m=100
>   c=-100000
>  
>   y(x) = m*x+c
>   fit y(x) data using 2:3 via c, m
>  
>   plot data u 2:3 w lp lw 1 title 'Distance', \
>        y(x) title "line fit"
>   #+end_src
>
> This is what I get:
> [cid]   
>
> When I fill out the empty fields in the first column of the table I get the right result:
> [cid]   
> I am using Org-mode version 8.3.4. With Org Version 8.2.5h everything works fine.
>
>
> Emacs  : GNU Emacs 24.5.1 (i686-pc-mingw32)
>  of 2015-04-11 on LEG570
> Package: Org-mode version 8.3.4 (8.3.4-47-gaf853d-elpaplus @ c:/Users/harald/AppData/Roaming/.emacs.d/
> elpa/org-plus-contrib-20160502/)

I use more-or-less latest org:

Org-mode version 8.3.4 (release_8.3.4-718-g634e12)
GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)

FWIW, I cannot reproduce this problem: the plot comes out fine.

--
Nick

      reply	other threads:[~2016-05-06 18:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05 17:49 Bug: missing header argument does not work any longer [8.3.4 (8.3.4-47-gaf853d-elpaplus @ c:/Users/harald/AppData/Roaming/.emacs.d/elpa/org-plus-contrib-20160502/)] Harald Sanftmann
2016-05-06 18:37 ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a8k3jam7.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).