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 yGszKi7Fj2aYKQEAqHPOHw:P1 (envelope-from ) for ; Thu, 11 Jul 2024 11:42:38 +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 yGszKi7Fj2aYKQEAqHPOHw (envelope-from ) for ; Thu, 11 Jul 2024 13:42:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HCIxtU9s; 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=1720698158; 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=KpM8YIdhWJmL3ICPJl76xxIDYPLfcNE45Rs+Wi4bOCU=; b=UQ0sKZksxLkwBd2lrM9Z9xrxMwyTkBCtwMB5yv53AvHI/f0RAMV09sXI8AED5JpwdRgbZR EEcTcaKmwzbwg7cgFytf845isHpmLCZnzqWtSCPJOVXeUBl0V4igFZ3RGfm9nlCqb0rxB6 33xp3JnxSwIcqWVDsn5f21qyOyQtlhVz4veM2xzBsiLik5PdwTDrAzhqfNmHQU72DCN74O E1PIQbk96kSqnFQI4116ryaqbuSaH2dMj/UsijAbDNP0LFgdh4r84w4/AC0SwkXP1rDH3D Mah7JKNPHagdVdCTSXnxHuW94/P/mmQ+A1vlLBdaHdCG0LdnrH3GWqOlAoediQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720698158; a=rsa-sha256; cv=none; b=HDJH1/Tx2/6MmDRWWjtIhQQQn0wEfq9HrYKzHQt2M0ttC/t3qSuSIx6q++585iA5eSg5xz x6KZDDEgxK085q0YMQ6Txh4d+9D/W9c4XFEn7zeq2rxiuiT6GsdTTgbfgpchEOzXte7qgO T8uDmA9aPvHoZ9rcNNu9Wtju0bwoGVCOM/ncGWfLMB1SuJZeOcxKu8cpW/viPRKsnONqTn SmZCqXokSwAziWRVR27LrWvWGRjxJSILdoGTcRDAiwVpKjabXaL1C3YP7xFEMOqs35YI/S Jx/U2qHcpsgGKTm+2B92JMZBFkTOADb7R9AAmd6fknnJ17war5i4Dl3Q9AiDQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HCIxtU9s; 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 531056AFC5 for ; Thu, 11 Jul 2024 13:42:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRsB9-0005Ib-1w; Thu, 11 Jul 2024 07:41:39 -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 1sRsB4-0005Gj-Ud for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 07:41:34 -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 1sRsB2-0000BH-E2 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 07:41:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 567F8240028 for ; Thu, 11 Jul 2024 13:41:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720698087; bh=yxH/PU5jnvfK1oaKjKxqMwUDQEfXr32UuHW/SdE7ZrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=HCIxtU9s5TtAoMqzbwvD8aN96pE6IxXavM/vfTbp7m/QB/NJA6P+W5M4JDm3wzOVj skhLlHXPw7Sz+liZWR2N+5woGpTFtriwjFpdRm2oLWe4tLoa199lHVWAWE1qbHNT4e mc6+1W5qLDNR+LZux6pD0hl/zfNYnY89gnaZfpIlG1KWKw6ojzJZyel9kLoL8HSgeW zbER2q+22tvZ1AjPPB+BiQO0Lb1IWAq4WVkDl7ZlLBWwUZ2aH5NDZ9By87KbH7qdoR VGFz4d6I9sKyTEqRGdEk6UjdD02pxP+bx9hEJz8x5G0yDi9coFYdJ+0ZL0o0Q17G3e iiOzMITAZNBCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WKXqp4ggJz6tvl; Thu, 11 Jul 2024 13:41:26 +0200 (CEST) From: Ihor Radchenko To: Brice Waegenire , orgmode@tec.tecosaur.net Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org--plot/sensible-tick-num when range is a power of 10 In-Reply-To: References: Date: Thu, 11 Jul 2024 11:43:00 +0000 Message-ID: <87ttgw5f3v.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 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-Queue-Id: 531056AFC5 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.63 X-Spam-Score: -9.63 X-TUID: q0WMfFSqkvfg Brice Waegenire writes: > I've found a bug in =org--plot/sensible-tick-num=, when a plot has a > range of a power of 10 (1, 10, 100, ...). > > To reproduce, run =org-plot/gnuplot= on the following plot: > #+plot: type:radar min:0 max:10 > | Metric | Value | > |---------+-------| > | alpha | 2 | > | beta | 4 | > | gamma | 6 | > | delta | 8 | > | epsilon | 10 | > > It produce the error: =let*: Wrong type argument: number-or-marker-p, nil=. Confirmed. I am completely lost in the intended logic of how the tics are determined. CCing the author. Timothy, I feel that the logic is pretty much off for ranges with powers of 10 and for single value column. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at