From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KC54BChLbGb8BAEAqHPOHw:P1 (envelope-from ) for ; Fri, 14 Jun 2024 13:52:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KC54BChLbGb8BAEAqHPOHw (envelope-from ) for ; Fri, 14 Jun 2024 15:52:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rUjE2UCJ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718373159; a=rsa-sha256; cv=none; b=kJcrfiQKpyDVZJgCf9wJRc73GxJNLNRI9pvybcsa7rsuqEd9yVhPQRbxD/3nUNHmt2oadR TmGRywTmK0krm0ociLkTUnqyulz7LlFpZjnzMHRjPhVVnwNS17CXqjI1HXzgMGnVLEsh33 fUhrJ4VFnmqWMWLhTd7ISgejgLK44SwHE443ZtYoZiGfqCEmc3xM+oYxb/aZ6CwpBgiBfs AvgjOY1J2VFVS85mj/K6FsgO4oGOhc6Y9bQiTVcusOIbWfm+iNWkHidYNnBR6DmyJiek4J 6O3kGtRquEZtalZRgTRSnTL6gAG6izAJdFzq3VBLWLpR/j4WVgbmDFv1n/tRcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rUjE2UCJ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718373159; 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=tikZBysD1XSVAN/VpEFKxUoiwZrKhQ4up+mg0aGrLPE=; b=nmvFq0OoRkgQnfmUezCl14LXYjvB7iTn+OffesqswS3UPTeHp32vtc+y8THxq9GPmbjXN/ jPdJ9iVkvnCpiUwrTUV05zuLUWPtEQjP6XxuOBBhhDOEhIkSm/xse3EhOx36GZU1dgAdx4 xW4euNGkxgUvsEqnSPU1UNq4y1ngDXzGXTOn/WJBw+NGPUqO9AaF2TF8b79xf9qmhwfI/M 9QLRt63GaG5WysurF6DBT3AubMKe40T4s6SUt3aZ6jJ4R4FzgvAslShgPQA5y8RRc+Tgez pMNRkKhdzYzcYUa/3bI9nJHuQyQrNnmXzh8y2Ujrx4JTE8rbLXvP+OIJOhb/og== 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 E86B4673FF for ; Fri, 14 Jun 2024 15:52:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI7LS-0001cu-Op; Fri, 14 Jun 2024 09:51:58 -0400 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 1sI7LP-0001c2-R8 for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 09:51:56 -0400 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 1sI7LM-0006Ku-Le for emacs-orgmode@gnu.org; Fri, 14 Jun 2024 09:51:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E8A8D24002A for ; Fri, 14 Jun 2024 15:51:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718373110; bh=wCK750ppXV8NRCZ1x3Gag6luL89MUcfH9j0uG26Fgcs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=rUjE2UCJbj575Zxo1QydXd4/u+doP6MoUIwRrBt2DyxEcxwSHi8pWS40f3fM+tElc 7Q5rnu7bN2AG5PmN8RLs0s9BbUIl3LttB+4gQPA9kcFusUV6YOXouMtwehyBI5hQLI GVJ0iJPaPJ6YMP6MXKNP/yql5WY8LV4GWXSOq0QgIHfwVkUTqDjhsyl1j3EkEccI/V aeeRnTMvMEuZK6uwQvNU/sz4fIDS+W32nJQJf2IiEZ7y5IY5c4o8kynPyQCwkz8Dqf JubdBHoHl77eiD0IPnNnOuY7aiGWxU1Ui4wEC1jPKsG435Wpzn/ApxtpCgsJLgXQUf aVQg6mAWlMoPg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W110h6fvgz9rxB; Fri, 14 Jun 2024 15:51:48 +0200 (CEST) From: Ihor Radchenko To: Visuwesh Cc: emacs-orgmode@gnu.org Subject: Re: [BUG/FR] org-plot: replot on resize [9.7-pre (N/A @ /home/viz/lib/emacs/straight/build/org/)] In-Reply-To: <87v82d48wb.fsf@gmail.com> References: <87mso7sl6g.fsf@gmail.com> <87cyowua5n.fsf@localhost> <87v82d48wb.fsf@gmail.com> Date: Fri, 14 Jun 2024 13:53:30 +0000 Message-ID: <87o783k4v9.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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Queue-Id: E86B4673FF X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.56 X-Spam-Score: -9.56 X-TUID: 9vF0pF9J9RnC Visuwesh writes: >>> This is more of a FR than a bug but it would be nice to have working >>> replot-on-resize when the gnuplot terminal is qt, x11, etc. To have >>> this functional, the data-file needs to be not deleted. >> >> It should be doable. >> We can simply use `org-babel-temp-stable-file' and leave cleaning up to >> `org-babel-remove-temporary-stable-directory'. > > The data writing functions themselves require a filename so the file > content cannot be used as DATA to org-babel-temp-stable-file. What > should be DATA instead? (list table params)? All the things that contribute to what is written to the data file: ;; Dump table to datafile (let ((dump-func (plist-get type :data-dump))) (if dump-func (funcall dump-func table data-file num-cols params) (org-plot/gnuplot-to-data table data-file params))) So, you can set DATA to (list (or dump-func 'org-plot/gnuplot-to-data) table num-cols params) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at