From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GPw/HwKZbWaGzwAAqHPOHw:P1 (envelope-from ) for ; Sat, 15 Jun 2024 13:37:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GPw/HwKZbWaGzwAAqHPOHw (envelope-from ) for ; Sat, 15 Jun 2024 15:37:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jyKyyYx+; 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=1718458626; 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=joq0JHbOxZlBQALfy1mqDj3n0K6+JW6UqHJatkL56Nk=; b=Ex8m2jmXPFKiK99hVy9nPw0c/7fSaAxaoSpZm4pRB9eVS3r5pMI69oLmD1J1l+4NKi1Xjb 78wHWVX+sUjYsenxQgYrFeLxy+w7d/uADpyCTwf/H8v5roaGPPDdnSJJYO2v+sYRuFbZr0 kAj5MCRHh8OjSOXQSDU77lu1woyK1Xp5/f49zDZxVgaRUQQHxPlsivvOmSY60jMYbuoLd6 wM8fibGrFlrnvTLFx7CbyN5PcR61uGVLKz++VqCelxUSWcWlklmr1OtsmwOqn8us8Smo9X vYzCsq/6QHymLUv84SMk8fEEQOvy5oVFasgOa018nkoOioGE+TiBctKWJcq4UA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718458626; a=rsa-sha256; cv=none; b=ISdA/ZvdE1x3NdUo80HtGLRh66+eQ/BtguPgWGXAll4TgNW7fqkI/+D8KAzB89x3ZXeeOJ 6DvBKk677TPxAsbbzxZC3wIHneXGPPzn2ZSwP7PvT5ebcP4rxgOYAj+3veEQWx2ulEYxJW nKtKum/fD6EYRXh5QbCyt57iTp9mvzkMHlV4kWD7FMKXgQPEKTUjgMDPeCt7VeF6y+lsH2 PtFkcHy4myHoKPn3wT2TBh0nBCMHLfwNGrrSUncPDYkiZ+axT5IEzN2B8YO4LP/A+duKk0 FesO6TEA4n+xGIj3vchFuwVoUr+PQVpZLJd9t92eswCiT8jZh+AePiWBnGd5oA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jyKyyYx+; 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" 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 5FF267CE45 for ; Sat, 15 Jun 2024 15:37:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sITZm-0005ML-6W; Sat, 15 Jun 2024 09:36:14 -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 1sITZf-0005LD-PF for emacs-orgmode@gnu.org; Sat, 15 Jun 2024 09:36:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sITZd-0006L2-S0 for emacs-orgmode@gnu.org; Sat, 15 Jun 2024 09:36:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 164EF240103 for ; Sat, 15 Jun 2024 15:36:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1718458562; bh=WdqSktj+zhfC8riZRr9hdYz/QMDpkKllt54DPlPj0aA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jyKyyYx+ixd5lWR69sfAILw0eMWue2Ft5UwBVjZvXthY2kT2HbMvTe3gR+fuDhVUr QCO/x5Ovswem5ckBG0/dCX2T7te/4mtKeVoETOiwF5qaaRbwuS+x3pahtw/KF45kuA VBxdXOnqr/cJU77xZYi59BD/auDguyFtFPOrBD1zBuGea/5aAaV2Q8hnOulhJ1NDD8 J/l1Y0yM6ZT9PAxP961ArpB5TVj+eN8ETQQMdN2xUqBosfxDXW0dBvJcyUrtHtgDz4 Zq4Ho8Wq0/dGZ7Px3GSl6o9K3QEFPAQxEaCleJiqSyQg3yTQx77sc/KS0/KgRagpES XW29a1gnUo+NQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W1cc14m4vz9rxM; Sat, 15 Jun 2024 15:36:01 +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: <87a5jm6bz1.fsf@gmail.com> References: <87mso7sl6g.fsf@gmail.com> <87cyowua5n.fsf@localhost> <87v82d48wb.fsf@gmail.com> <87o783k4v9.fsf@localhost> <87a5jm6bz1.fsf@gmail.com> Date: Sat, 15 Jun 2024 13:37:44 +0000 Message-ID: <87frtegwd3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: 5FF267CE45 X-Migadu-Scanner: mx11.migadu.com X-TUID: gihkvrP9lEX0 Visuwesh writes: >> So, you can set DATA to (list (or dump-func 'org-plot/gnuplot-to-data) table num-cols params) > > Done in the attached patch. Thanks! > ;; Dump table to datafile > - (let ((dump-func (plist-get type :data-dump))) > + (let* ((dump-func (plist-get type :data-dump))) Why let*? > + (setq data-file (org-babel-temp-stable-file > + (list (or dump-func 'org-plot/gnuplot-to-data) > + table num-cols params) > + "org-plot")) Please add in-code comment explaining why we need `org-babel-temp-stable-file'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at