View previous topic :: View next topic |
Author |
Message |
sciencegentoo n00b
Joined: 08 Feb 2014 Posts: 11
|
Posted: Fri Feb 28, 2014 6:36 pm Post subject: Matplotlib (no graph + no plot) window |
|
|
Hello,
I installed matplotlib through emerge and then tried to run a basic test
Code: |
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()
|
And nothing shows. No errors too. I tried changing the backend to others but they give errors asking pygtk, gobject etc. I installed those but the erros persist.
Substituting plt.show() with plt.savefig(`foo.png`) works.
Any suggestions?
Thanks in advance |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Fri Feb 28, 2014 9:31 pm Post subject: |
|
|
that code works for me.
What python version are you using? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
sciencegentoo n00b
Joined: 08 Feb 2014 Posts: 11
|
Posted: Sat Mar 01, 2014 4:05 pm Post subject: |
|
|
Hey, Thanks for replying!
Thats my python version:
Python 3.3.3 (default, Feb 28 2014, 13:00:44)
[GCC 4.7.3] on linux |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Tue Mar 04, 2014 12:55 pm Post subject: |
|
|
ok thats odd, works4me (tm).
I know that does help you but...
are you running that from a script or from a python shell? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
sciencegentoo n00b
Joined: 08 Feb 2014 Posts: 11
|
Posted: Sat Mar 22, 2014 4:28 pm Post subject: Matplolib - no graph window |
|
|
Hello,
I am working with matplotlib but when I call the show() function it doesn`t work, nor give errors.
It`s working if i save the graph to a file though. I tried changing the backend, but no success. Tried eselect for another python version, but still no luck. Any ideas?
Thanks in advance |
|
Back to top |
|
|
trendsetter37 n00b
Joined: 18 Mar 2014 Posts: 6 Location: United States
|
Posted: Tue Mar 25, 2014 12:26 pm Post subject: which Python |
|
|
Are you using the regular python shell, ipython, or the ipython notebook? |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Tue Mar 25, 2014 7:31 pm Post subject: |
|
|
Can you provide us more details? (Which package? Which version? Which USE flags? How would we reproduce this?) |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Wed Mar 26, 2014 10:36 pm Post subject: |
|
|
Havnt you asked this before? I'm sure I responded and asked for info _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Wed Mar 26, 2014 10:40 pm Post subject: |
|
|
Any more info? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sat Mar 29, 2014 6:56 pm Post subject: |
|
|
--Matplotlib no graph window + Matplotlib no plot window merged-- _________________
|
|
Back to top |
|
|
neyuru Apprentice
Joined: 21 Mar 2020 Posts: 191
|
Posted: Thu Apr 30, 2020 10:08 pm Post subject: |
|
|
If anyone lands on this old post like I did, try re-emerging matplotlib with support for a graphical front-end (USE flags gtk, gtk3, qt5,...). See this post |
|
Back to top |
|
|
|