From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 10:47:00 +0200 Message-ID: <87hb50li4b.fsf@gmail.com> References: <20110829080003.GA12790@discus> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:56358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxxVN-0006LR-0L for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 04:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxxVL-00065n-Pl for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 04:47:40 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxxVL-00065c-Ic for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 04:47:39 -0400 Received: by wyi11 with SMTP id 11so4316084wyi.0 for ; Mon, 29 Aug 2011 01:47:38 -0700 (PDT) In-Reply-To: <20110829080003.GA12790@discus> (Major A.'s message of "Mon, 29 Aug 2011 10:00:05 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Major A Cc: emacs-orgmode@gnu.org Hello, Major A writes: > I'd like to use asymptote to plot the values in an Org table. The table > has cells with numbers but also cells with strings in them. This table > gets converted to an array of strings in the resulting asymptote file, > with the strings escaped with double-quotes but not the numbers. In > asymptote, this is an error, so that no plot is produced. I'm not sure to understand. Your array must have all its elements of the same type. In this case, it detects that common type should be "string". What else should it do in that case? That being said, you can have rownames and colnames even in an array of ints (see :rownames and :colnames headers arguments for your source block). In others words, you can plot, for example, the following table without any problem: | x | 1 | 2 | 3 | | y | 1 | 4 | 9 | Regards, -- Nicolas Goaziou