<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Try <br>
</p>
<p><br>
</p>
<p>ipython --pylab <br>
</p>
<p><br>
</p>
<p>in a shell terminal.</p>
<p><br>
</p>
<p>/gostal<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Från:</b> Matplotlib-users <matplotlib-users-bounces+gostal=foi.se@python.org> för Raphael Raccuia <rafael.raccuia@blindekinder.com><br>
<b>Skickat:</b> den 18 maj 2020 10:33:53<br>
<b>Till:</b> matplotlib-users@python.org<br>
<b>Ämne:</b> [Matplotlib-users] matplotlib interactive in a shell terminal?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
Any chance to use matplotlib in a linux shell terminal?<br>
<br>
if I make 'python3 my/script.py', it displays the plot but I have no <br>
prompt >>>.<br>
It works in Idle.<br>
That would be my test script:<br>
<br>
#!/usr/bin/env python3 #otherwise loads a 'ghost': cursor turn to cross, <br>
but no window.<br>
<br>
import matplotlib<br>
print(matplotlib.get_backend()) #print TkAgg in the terminal<br>
<br>
import matplotlib.pyplot as plt<br>
<br>
plt.ion()<br>
<br>
<br>
plt.plot([1, 2, 3, 4], [1, 4, 2, 3])<br>
<br>
plt.show(block=True) #block=True: othewise it close immediately plot and <br>
terminal<br>
<br>
thank you!<br>
<br>
rph-r<br>
<br>
<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
Matplotlib-users@python.org<br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</div>
</span></font>
</body>
</html>