From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas Newsgroups: gmane.emacs.bugs Subject: bug#62783: [PATCH] comint-mime: Add Matplotlib support in the standard interpreter Date: Thu, 20 Apr 2023 10:47:58 +0530 Message-ID: <875y9rdtdl.fsf@gmx.net> References: <873556t3db.fsf@outlook.com> <87fs95ob04.fsf@gmail.com> <871qkp1jdk.fsf@gmx.net> <87y1ms5c5c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 62783@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 20 07:19:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppMhO-0006uO-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Apr 2023 07:19:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppMhE-0000wA-Nw; Thu, 20 Apr 2023 01:19:04 -0400 Original-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 1ppMhC-0000vz-PE for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 01:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppMhC-0005pt-FD for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 01:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppMhB-0004n2-UY for bug-gnu-emacs@gnu.org; Thu, 20 Apr 2023 01:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Apr 2023 05:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug patch Original-Received: via spool by 62783-submit@debbugs.gnu.org id=B62783.168196789418351 (code B ref 62783); Thu, 20 Apr 2023 05:19:01 +0000 Original-Received: (at 62783) by debbugs.gnu.org; 20 Apr 2023 05:18:14 +0000 Original-Received: from localhost ([127.0.0.1]:36265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppMgQ-0004lv-2r for submit@debbugs.gnu.org; Thu, 20 Apr 2023 01:18:14 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:35617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppMgK-0004le-QX for 62783@debbugs.gnu.org; Thu, 20 Apr 2023 01:18:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1681967882; i=jimjoe@gmx.net; bh=vepUq0CptuKhv9T6bhN44YfLKobVrdkDMMfZBa/R04M=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=icv9G4w3bCnWS144bJXReYpuUHr6T1BCL9RbYDya1fwNbU9/cOLNfsqtcPLlWbWo0 SuwnNJRsVS+eGYndzGuAM0RicUsbQh/0/wgLyT+PPk46jBhOwTSy4OOLlmryjpRHAo U54ebame+THkBNK2f82HaLgdXPv3nedwvPjmHjFEFYAR5WLnIOQN2tlYL63U2lyOdr WbsVYZWAhlp5kBR7NlsBNLsWJVSNiu/4gPziKByXj1lGSnW+hzaPfAXZRVhfJvagW+ 1ChpwxMu4EdhJNpYK7batTN3HZrou2AYpgR4xNwDo3GqMNEV6jENoZpcrIc4G3z5eU yYUvvZZQ3oblQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-15-5518 ([59.92.161.79]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MmUHp-1qXX8S1dKr-00iS1D; Thu, 20 Apr 2023 07:18:02 +0200 In-Reply-To: <87y1ms5c5c.fsf@gmail.com> (Augusto Stoffel's message of "Sun, 16 Apr 2023 12:55:59 +0200") X-Provags-ID: V03:K1:rVhQgatmcZZrW+hK44+Dh3mCGxZbJQRjsXQGRHCySDk4qRhXZXh FpzUEh4Tzr1K/IAn1ezRbhkb+A0Xt7zzDN4sLOnKXNJ11AN5X2OLajXxkUWZynYbo619Dnd AR2QpiLRnv9WKt+EpGyIY1bmaq08pA7xwVhyKggUeSnRTWqtNSAARSrPx58GLjGZOEdwPFa PS7vpCysG6V4BXdT2/D+w== UI-OutboundReport: notjunk:1;M01:P0:a5hqyyNSJXQ=;RATeQlCU57z/M/ZfGOZYwRtcnNx +BBUDlPorylUN8glpN+F4CqQy1tt2ztoIPeqTgzkXsVV2VN3c1LwoUWY3A3iIMWIN0/WjdhmQ b9+uP+h+BzSwRjb4G0l2tk0iAQtyIG99U6X5ej2dYn7SV6vn+c/QCgZcmx6+uF5xY9E6r8o2x QZrKDhaPSKYODnXPmXFEYx//2gWL7YYex3n9XBto2EQ1rDi2nq/HAp70PX0ixb2APUw2x/3ug jo0Ka92X0Zzn446C9b28EzpWMHMbI4QKXWvwvalf44osuPo+taGw6ZrGQIi6ROlMtlbG9pJ08 pczyLsA1ogCNbKAhOcjnvX8daxoH9tXbB05Xt14KSdRBIGy1WighUTOiXnEsUm7sn4G8qHASX v45jlN9qnXXbNyouSCPfRc81gjY5rbzSb2DYL0LWy//rB5EDX2TTNk8MI68M+HKrxOA64Nce1 tLMLu6YCvCG+cLzCi7SSfJ1YzexDR9ryZQHrwsm6ZjG3OjGN+VsxnG+NJqu02Iy1joapEiIHF S4OlMJpy9eD9372aTkxnsrLWYoldG0fmLIb/Wc0NCk1WcaM5U+CLudI8EpTxCEOFBlGR6c5Uk 7RVQFtxqh4ppzfUcFCjKujSiWx1NJGmBVfOZzEGBeAmzBV8HBCJcMtmdyr7FXOYJdZElLK0nN r7ZUw6q5S0zJbY/oEaxc2qkLFlTxAwEWJ2aqWPT4hUS1DjouZmcGJkBMuQSvBgnmGzQY9mZMe Q4NDsPBb7c0I0IxnNIHcEphXz/36qS7UFAPUHiGdgPkVtRJ3ur1OaXCeVtjnLB7M0UJXvl2o X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260305 Archived-At: Augusto Stoffel wrote: > Also, it seems I also need to call plt.close() manually, otherwise > subsequent calls to plt.plot add to the figure instead of starting a > new one. pyplot.show displays _all_ open 'figure's. If you want to display a particular figure, fig.show() can be used. Also, pyplot.close can close figures selectively. Subsequent calls of pyplot.plot add to the 'current' figure which it keeps track of (and that can be switched). > >>> plt.plot([1,2,1]) > [] > > I still need to call plt.show() afterwards to see the image. This is > better than nothing, but would be nice if the extra step wasn't > necessary. I guess it would be straightforward to implement a pretty-printer for the Line2D object that would call its figure.show, but for the sake of completeness this would have to be done also for every kind of element in a figure other than lines - like axes or legends. Also, personally, I would find it annoying if every change I make to a figure would result in a redisplay. Sometimes I want to accumulate changes before showing the result. (I'm rather new to all this myself and the above is only to the best of my knowledge) =2D-