From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?b?QW5kcsOhcw==?= Major Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Mon, 29 Aug 2011 09:12:11 +0000 (UTC) Message-ID: References: <20110829080003.GA12790@discus> <87hb50li4b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxxtJ-00035Q-9G for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:12:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QxxtI-0001Qu-9a for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:12:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:58358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QxxtI-0001Qk-1M for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 05:12:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QxxtH-0002jr-6S for emacs-orgmode@gnu.org; Mon, 29 Aug 2011 11:12:23 +0200 Received: from ip4e8b0e39.rubicom.hu ([78.139.14.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 11:12:23 +0200 Received: from andras.g.major by ip4e8b0e39.rubicom.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Aug 2011 11:12:23 +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: emacs-orgmode@gnu.org Hi Nicolas, > > 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 | This isn't what I need. What I want is to make a graph of certain columns of a table which contains both ints and strings. Ideally, there should be no constraint about which columns contain ints and which contain strings. Since the table usually comes first (you collect your research in such, for instance), reformatting afterwards only so that asymptote works is not an option. Why isn't it possible to force ob-asymptote to make all cells strings? Then one could easily convert the strings back to floats or so within asymptote as needed. AndrĂ¡s