3

I would like to generate inline plot instead of plot that popping out in python3.x. All of the solution I found when browsing around is with IPython/jupyter notebook, however, I am running my script using terminal, i.e python3 <script>.py, and every time I run plt.show() it always popping a new window of the result.

How can I achieve inline plot in this scenario?

Any help would be appreciated.

6
  • stackoverflow.com/questions/20295646/… Commented Mar 19, 2019 at 2:48
  • 1
    You are asking how to render an image in an ascii terminal. That's not possible. I marked as duplicate of a Q&A showing how to produce ascii plots, which is the closest to what you can achieve. Commented Mar 19, 2019 at 3:23
  • 2
    @ImportanceOfBeingErnest To render an image in a terminal (and some terminal emulators) is perfectly possible, and matplotlib backends might exist already. This question should not be marked as duplicate. Commented Sep 13, 2019 at 14:05
  • @durum if you think matplotlib-sixel will answer this question, you can provide such answer in the duplicate. Commented Sep 13, 2019 at 14:07
  • @durum We could also mark as duplicate of this question instead? (That would also be a good place to tell people about matplotlib-sixel backend.) Commented Sep 13, 2019 at 14:19

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.