From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EGT2OsOk42MCkAAAbAwnHQ (envelope-from ) for ; Wed, 08 Feb 2023 14:33:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OPL5OsOk42NiKgEA9RJhRA (envelope-from ) for ; Wed, 08 Feb 2023 14:33:55 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5853799D3 for ; Wed, 8 Feb 2023 14:33:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPkZZ-0005rW-5x; Wed, 08 Feb 2023 08:33:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPkZS-0005ol-34 for emacs-orgmode@gnu.org; Wed, 08 Feb 2023 08:33:11 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPkZP-0001KN-Eu for emacs-orgmode@gnu.org; Wed, 08 Feb 2023 08:33:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 301DE24044A for ; Wed, 8 Feb 2023 14:33:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1675863185; bh=nlC6tOHYwBqJcoXKY1TyumybUcMo1zTi5BAbwMBrDSw=; h=From:To:Cc:Subject:Date:From; b=I10GFWQk+jpv6wy68NaLMhXKiEdUp1lhCI3l1S8Mr72VVrk+0mxPc+Xs3v+G3PDRB Ge6be+PjdEr2P/2cZvbtl2j/vaJliEShAd4MGYU9OygnN+JPjPINKo6kvjc5ubPW5L XgXxhGhocKqjLDVvL5rS4woKnn41VlwrOb4cy4ztPOg3GxxSY6dAnoGDqx0NLWs1Ul pJw925erCt1rYivm3P3mPpGFB116iXAhJ1/cCjk33Xu/BBoHrGgMOj2WyTj1uuSqHn K1em/IMYOQ4y1o3Xc0dZgNm7NuVFux5Ximm3ozigNelGWdH/ZPwCRlzCGTXp7bDdu7 nfWJsXuYRjClw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PBgt74HKtz9rxH; Wed, 8 Feb 2023 14:33:03 +0100 (CET) From: Ihor Radchenko To: Thomas Worthington Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] ob-gnuplot.el can't handle importing more than one table from the current file [9.6.1 ( @ /home/thomas/.emacs.d/elpa/org-9.6.1/)] In-Reply-To: <87edr1v0dj.fsf@london.ac.uk> References: <87edr1v0dj.fsf@london.ac.uk> Date: Wed, 08 Feb 2023 13:33:41 +0000 Message-ID: <87r0v0cmdm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I10GFWQk; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675863235; a=rsa-sha256; cv=none; b=qtL/czZN+kwjklqjzgtt7EPSG5zqOWnR2cjZ8pv0dM1KfMjPBP+9CsgDcKUbnTkCNWEG1H KKtHfKJ6BHl3dd3NCn7Cr7WlBiw2mNTGejrjjFR+VQi97uAwE7pmsXu6LeVhvRrXi0TDcg iBMIODQmo0VMtHmDm7x5Vcj5UORtxXgzk+j5FISYkCVkcVSWYgfcUIvpeXlsGSUcrO31VB +0rIJ59a7k7B+OLSWNdysvZDHIiGVmvn+H1A+XIXDf0X+4bkDqEcQ5x1jI2JWYqGk6VHt/ geCFMVBWsnGzl6Cf7sqUP4OFd04WR5+ayoo446SjW2FNShUwMKcEjXttr2u5vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675863235; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+DpC46Hw8Z98FiEcklQi8v+8+5HgbUH+7S4ytf4JaTg=; b=sArCTNLJMgvblxvwAHfWOw7mHTQ0MrM6EUNUEesbKNRxa38hGbO2MdoVe1deH3qvf52Q0z lQ0Jl50HiM+Nw481ppIdcTgCRcU7s9IO7uWp8M+SZ8sKcECGxh3Ltw3COCXma/TEEK6nOo ljhPr19gVE/WrN6FqdKYf7o1of7GtIrRxeXGybzvePpzCMyuOh64Y8MNNYDH20CU578Ftf e7Fp97FJGgd6wvY6sfh2wV+DX2IxijBvr43JU+DItla3QNbMyq0yLobOnSJxvbbY5Yzrlr LeJMIhx12F8rKDDhtoAvM+7KSeCrz0AfWnBVMjjyxQeOT6VXb2s4t1xlziEjuw== X-Migadu-Queue-Id: 5853799D3 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I10GFWQk; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Spam-Score: -8.17 X-Spam-Score: -8.17 X-TUID: LDB+kzwvfVby Thomas Worthington writes: > org-babel-gnuplot-process-vars in ob-gnuplot.el makes a temporary file to store a table imported from the current org file using :var > > However, the name of this file does not include the name of the variable or any similar field unique to the data. This means that if you want to plot data from two tables, they both get the same filename and consequently the second overwrites the first and the data is incorrect. May you provide an example of such problem? I just tried #+name: table1 | 1 | 1 | | 2 | 2 | | 3 | 3 | | 4 | 4 | | 5 | 5 | #+name: table2 | 1 | -1 | | 2 | -2 | | 3 | -3 | | 4 | -4 | | 5 | -5 | #+begin_src gnuplot :var x=table1 y=table2 :cache no plot x, y w l #+end_src And both the tables are correctly plotted. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at