From: Augusto Stoffel <arstoffel@gmail.com>
To: James Thomas <jimjoe@gmx.net>
Cc: 62783@debbugs.gnu.org
Subject: bug#62783: [PATCH] comint-mime: Add Matplotlib support in the standard interpreter
Date: Sun, 16 Apr 2023 12:55:59 +0200 [thread overview]
Message-ID: <87y1ms5c5c.fsf@gmail.com> (raw)
In-Reply-To: <871qkp1jdk.fsf@gmx.net> (James Thomas's message of "Wed, 12 Apr 2023 16:02:07 +0530")
On Wed, 12 Apr 2023 at 16:02, James Thomas wrote:
> Augusto Stoffel wrote:
>
>> Thanks, I will have a look at this soon.
>
> Please prefer this slightly modified patch. It makes it possible for
> users to switch backends at the beginning with matplotlib.use even if
> comint-mime is enabled.
Okay, I tested and it works for me, but I have a question: If I call
just call the plot function I get e.g
>>> plt.plot([1,2,1])
[<matplotlib.lines.Line2D object at 0x7ffb2cca0a10>]
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. 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.
Do you know if the mechanics here can be refined?
next prev parent reply other threads:[~2023-04-16 10:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-11 23:18 bug#62783: [PATCH] comint-mime: Add Matplotlib support in the standard interpreter James Thomas
2023-04-12 6:44 ` Augusto Stoffel
2023-04-12 10:32 ` James Thomas
2023-04-16 10:55 ` Augusto Stoffel [this message]
2023-04-20 5:17 ` James Thomas
2023-04-21 12:43 ` Augusto Stoffel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y1ms5c5c.fsf@gmail.com \
--to=arstoffel@gmail.com \
--cc=62783@debbugs.gnu.org \
--cc=jimjoe@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).