SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(9)
2
(11)
3
(13)
4
(1)
5
6
(1)
7
(1)
8
(3)
9
10
(13)
11
(6)
12
(3)
13
(1)
14
(14)
15
(2)
16
17
(7)
18
(16)
19
(2)
20
21
(3)
22
23
24
(1)
25
(1)
26
(1)
27
28
(7)
29
(6)
30
(9)
31
(5)


Showing results of 136

<< < 1 .. 3 4 5 6 > >> (Page 5 of 6)
From: Yoshi R. <yo...@ro...> - 2013年10月07日 11:51:39
Sun, 6 Oct 2013 15:41:07 -0500 Tony Yu <ts...@gm...>:
> The return value for streamplot is a bit hacked together. Its just a
> simple object containing a line collection and an arrow collection.
> Instead of passing the set of collections, just pass one of the
> collections to the colorbar. For example:
> 
> sset = grid[i].streamplot(XPTS, YPTS, zx, zy, color=zr)
> grid.cbar_axes[i].colorbar(sset.lines)
> 
> Does that work for you?
works like a charm - thank you!
best regards,
Yoshi
From: Tony Yu <ts...@gm...> - 2013年10月06日 20:41:54
On Thu, Sep 26, 2013 at 10:37 AM, Yoshi Rokuko <yo...@ro...> wrote:
> Hey,
>
> I'm trying to plot streamplots into an axesgrid object with something
> like:
>
> fig = pl.figure(1, (13, 20))
> grid = AxesGrid(fig, 111,
> nrows_ncols = (3, 2),
> axes_pad = 0.6,
> cbar_location = 'top',
> cbar_mode = 'each',
> cbar_size = '2%',
> cbar_pad = '1%',
> )
> [...]
> norm = mpl.colors.LogNorm(vmin=1, vmax=5000)
> im = grid[i].streamplot(XPTS, YPTS, zx, zy,
> color=zr,
> arrowsize=.001,
> norm=norm)
> grid.cbar_axes[i].colorbar(im)
> [...]
>
> and then it failes with:
>
> Traceback (most recent call last):
> File "./results.py", line 96, in <module>
> grid.cbar_axes[i].colorbar(im)
> File
> "/usr/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/axes_grid.py",
> line 85, in colorbar cb = Colorbar(self, mappable,
> orientation=orientation, **kwargs) File
> "/usr/lib/python2.7/site-packages/mpl_toolkits/axes_grid1/colorbar.py",
> line 706, in __init__ mappable.autoscale_None() # Ensure
> mappable.norm.vmin, vmax AttributeError: 'StreamplotSet' object has no
> attribute 'autoscale_None'
>
> can't I use streamplots in axesgrid? If I comment out the colorbar for
> the streamplot colors it works ...
> Is this a bug? Is there a right way to do it? Is there a work around?
>
Hi Yoshi,
The return value for streamplot is a bit hacked together. Its just a simple
object containing a line collection and an arrow collection. Instead of
passing the set of collections, just pass one of the collections to the
colorbar. For example:
 sset = grid[i].streamplot(XPTS, YPTS, zx, zy, color=zr)
 grid.cbar_axes[i].colorbar(sset.lines)
Does that work for you?
Best,
-Tony
>
> Many thanks in advance!
>
> Regards, Yoshi
From: ajdcds <aj...@ho...> - 2013年10月04日 07:28:28
Thank you Mike, Werner and Benjamin for the good, and very fast, support.
Kind regards,
Antonio
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42178.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Matthew B. <mat...@gm...> - 2013年10月03日 20:34:17
Hi,
On Thu, Oct 3, 2013 at 1:29 PM, Russell E. Owen <ro...@uw...> wrote:
> In article
> <CAH6Pt5q=Z_m...@ma...>,
> Matthew Brett <mat...@gm...>
> wrote:
>
>> Hi,
>>
>> On Thu, Oct 3, 2013 at 5:59 AM, Michael Droettboom
>> <md...@st...> wrote:
>> > Matthew Terry, as part of his Mac testing project, has done a great deal of
>> > reconnaissance on this.
>> >
>> > https://github.com/matplotlib/mpl_mac_testing
>> >
>> > I know he was looking into statically linking some of the C dependencies
>> > (freetype, libpng etc.) as a way to make the installer more robust to
>> > different environments.
>>
>> Thanks - that looks like a useful testing grid.
>>
>> Are there any near-term plans for something like a .dmg or .mpkg or
>> .pkg installer?
>
> Building a binary installer with statically linked libraries is not
> terribly hard (see
> <http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.htm
> l>). There are two problem:
> - As of 1.3.0 mpl does not include python-dateutil, pytz or six (for
> good reasons) and that makes it harder to make a really usable binary
> installer. This interacts with the next problem:
> - For unknown reasons running the 1.3.0 installer breaks existing
> installations of python-dateutil if those packages were installed using
> an older mpl binary installer.
>
> The missing packages can be added to the binary installer after it is
> produced by bdist_mpkg by post-processing the mpkg. That would take care
> of the second issue for most users (who would use the default
> installation and get everything). I have not had time to deal with that.
> Thus I never uploaded an official binary installer for 1.3.0 and stopped
> providing them. Matthew Terry has taken over that task.
Aha - yes - postprocessing the mpkg would be pretty easy.
So - I guess I should just build the installer myself and post it for
testing? Is that the best way forward?
Cheers,
Matthew
From: Russell E. O. <ro...@uw...> - 2013年10月03日 20:30:16
In article 
<CAH6Pt5q=Z_m...@ma...>,
 Matthew Brett <mat...@gm...> 
 wrote:
> Hi,
> 
> On Thu, Oct 3, 2013 at 5:59 AM, Michael Droettboom 
> <md...@st...> wrote:
> > Matthew Terry, as part of his Mac testing project, has done a great deal of
> > reconnaissance on this.
> >
> > https://github.com/matplotlib/mpl_mac_testing
> >
> > I know he was looking into statically linking some of the C dependencies
> > (freetype, libpng etc.) as a way to make the installer more robust to
> > different environments.
> 
> Thanks - that looks like a useful testing grid.
> 
> Are there any near-term plans for something like a .dmg or .mpkg or
> .pkg installer?
Building a binary installer with statically linked libraries is not 
terribly hard (see 
<http://www.astro.washington.edu/users/rowen/BuildingMatplotlibForMac.htm
l>). There are two problem:
- As of 1.3.0 mpl does not include python-dateutil, pytz or six (for 
good reasons) and that makes it harder to make a really usable binary 
installer. This interacts with the next problem:
- For unknown reasons running the 1.3.0 installer breaks existing 
installations of python-dateutil if those packages were installed using 
an older mpl binary installer.
The missing packages can be added to the binary installer after it is 
produced by bdist_mpkg by post-processing the mpkg. That would take care 
of the second issue for most users (who would use the default 
installation and get everything). I have not had time to deal with that. 
Thus I never uploaded an official binary installer for 1.3.0 and stopped 
providing them. Matthew Terry has taken over that task.
I did put an unofficial binary installer for 1.3.0 here:
<http://www.astro.washington.edu/users/rowen/python/>
just be prepared to reinstall python-dateutil after you use it.
-- Russell
From: Matthew B. <mat...@gm...> - 2013年10月03日 20:04:05
Hi,
On Thu, Oct 3, 2013 at 5:59 AM, Michael Droettboom <md...@st...> wrote:
> Matthew Terry, as part of his Mac testing project, has done a great deal of
> reconnaissance on this.
>
> https://github.com/matplotlib/mpl_mac_testing
>
> I know he was looking into statically linking some of the C dependencies
> (freetype, libpng etc.) as a way to make the installer more robust to
> different environments.
Thanks - that looks like a useful testing grid.
Are there any near-term plans for something like a .dmg or .mpkg or
.pkg installer?
Cheers,
Matthew
From: dilpreet s. <gig...@gm...> - 2013年10月03日 17:05:27
Hi
I am plotting a scatter plot where y axis has a log scale but in the graph
the y axis always starts from 10 to the power -1 . I tried setting the
limit with set_ylim() but i am not sure what value to give within this
method since its a log scale . Is there a way i can start y axis from 10 to
the power -0.25 .
Thanks
Dilpreet
From: Stephane R. <ste...@gm...> - 2013年10月03日 17:02:58
Hi,
I would like to make Patch class (a compass) and be able to set its size in
points and its position finally interpeted in data coordinates once the
patch is added add to axes.
I tried start from a mix of existing patch classes (Patch, Polygon,
Shadow), but they all deal with transforms in a different way.
So, how to code it in a proper way ?
Thank for your help.
-- 
Stephane Raynaud
From: Benjamin R. <ben...@ou...> - 2013年10月03日 14:46:19
On Thu, Oct 3, 2013 at 9:22 AM, ajdcds <aj...@ho...> wrote:
> Benjamin, thank you very much for the tip!
>
> If I do
>
> import matplotlib
> matplotlib.use("TkAgg")
>
> This is only valid for the current script that is running, the matplotlibrc
> remains the same, right?
>
>
Yes, that is correct.
From: ajdcds <aj...@ho...> - 2013年10月03日 13:22:14
Benjamin, thank you very much for the tip!
If I do
import matplotlib
matplotlib.use("TkAgg")
This is only valid for the current script that is running, the matplotlibrc
remains the same, right?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42170.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2013年10月03日 13:16:42
On Thu, Oct 3, 2013 at 6:35 AM, ajdcds <aj...@ho...> wrote:
> Sorry, of course it does not work, the import is incorrect!
>
> It should be
>
> import matplotlib as plt
> plt.rcParams['backend'] = 'TkAgg'
>
> or simply
> import matplotlib
> matplotlib.rcParams['backend'] = 'TkAgg'
>
>
Errr... no, don't do "import matplotlib as plt". That is just confusing.
To change backends, do the following:
import matplotlib
matplotlib.use("TkAgg")
Because backends are loaded upon import of matplotlib, changing the rcParam
after importing matplotlib is too late. You force a switch of the backend
via the "use()" function.
From: Michael D. <md...@st...> - 2013年10月03日 13:02:20
Matthew Terry, as part of his Mac testing project, has done a great deal 
of reconnaissance on this.
https://github.com/matplotlib/mpl_mac_testing
I know he was looking into statically linking some of the C dependencies 
(freetype, libpng etc.) as a way to make the installer more robust to 
different environments.
Mike
On 10/02/2013 04:15 PM, Matthew Brett wrote:
> Hi,
>
> Anything I can do to help get a binary installer for OSX?
>
> If I wanted to build one myself - is there a good place to start
> looking to understand the problems?
>
> Cheers,
>
> Matthew
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
 _
|\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _
| ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
http://www.droettboom.com
From: ajdcds <aj...@ho...> - 2013年10月03日 10:35:30
Sorry, of course it does not work, the import is incorrect!
It should be
import matplotlib as plt 
plt.rcParams['backend'] = 'TkAgg' 
or simply 
import matplotlib
matplotlib.rcParams['backend'] = 'TkAgg' 
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42167.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: ajdcds <aj...@ho...> - 2013年10月03日 10:09:18
We were able to find the difference when installing Matplotlib via
Python(x,y) or as a separate package.
The difference is on paramater /backend/ on /matplotlibrc/ file.
/Python(x,y)-2.6.6.2.exe/ set the parameter to *Qt4Agg*
/matplotlib-1.0.1.win32-py2.6.exe/ sets the parameter to *TKAgg*
if backend : TKAgg
then the error
/ File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 51, in <module>
 raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"
ImportError: Warning: formlayout requires PyQt4 >v4.3/ 
Does not appear anymore.
Now looking how to use TKAgg without changing the matplotlibrc.
I've tried:
import matplotlib.pyplot as plt
plt.rcParams['backend'] = 'TkAgg'
But doesn't see to work.
Any suggestions?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42166.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Werner F. B. <wer...@fr...> - 2013年10月03日 08:00:22
Hi,
On 03/10/2013 09:31, ajdcds wrote:
> If doing
>
> c:\Python26\python.exe file.py
>
> Then the error is on import private files, stated on my first post as
> /import <something>/
I didn't see a response from you on this:
c:\Python26\python.exe
from PyQt4.QtGui import QFormLayout
Does this give an import error?
If above does not give an import error can you try:
c:\Python26\python.exe 
folder_with_matplot_examples/user_interfaces/embedding_in_qt4.py
If this works then I am guessing that your 'file.py' does somehow 
manipulate the sys.path.
Werner
From: ajdcds <aj...@ho...> - 2013年10月03日 07:31:50
If doing
c:\Python26\python.exe file.py
Then the error is on import private files, stated on my first post as
/import <something>/
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42164.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Matthew B. <mat...@gm...> - 2013年10月02日 20:16:26
Hi,
Anything I can do to help get a binary installer for OSX?
If I wanted to build one myself - is there a good place to start
looking to understand the problems?
Cheers,
Matthew
From: pymilo <cam...@gm...> - 2013年10月02日 17:34:15
Hello,
I don't know what exactly happened but after upgrade my python from 2.7.3 to
2.7.5 and uninstall and install again the matplotlib using pip, the pylab
worked well... Thank you in advance for your help.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/import-matplotlib-pyplot-does-not-work-tp42155p42160.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Sterling S. <sm...@fu...> - 2013年10月02日 16:50:02
I highly recommend macports[1] as the method to install matplotlib, as I have never had issues.
-Sterling
[1] http://www.macports.org/install.php
On Oct 2, 2013, at 7:39AM, pymilo wrote:
> Hello everyone,
> 
> I want to work whit matplotlib and I installed it using pip command.
> Apparently the installation was successful and when I open ipython and
> import matplotlib everything works well. Nevertheless when I try to import
> pyplot using: import matplotlib.pyplot I obtain this:
> 
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
> <ipython-input-11-6f467123fe04> in <module>()
> ----> 1 import matplotlib.pyplot
> 
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py
> in <module>()
> 22 
> 23 import matplotlib
> ---> 24 import matplotlib.colorbar
> 25 from matplotlib import _pylab_helpers, interactive
> 26 from matplotlib.cbook import dedent, silent_list, is_string_like,
> is_numlike
> .
> .
> .
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py
> in <module>()
> 60 
> 61 import matplotlib.colors as mcolors
> ---> 62 import matplotlib._png as _png
> 63 ####################
> 64 
> 
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so,
> 2): Symbol not found: _png_set_longjmp_fn
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
> Expected in: flat namespace
> in
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
> ---------------------------------------------------------------------------
> 
> I have installed the libpng library as was suggested in other post but
> nothing worked. I am working with a Mac OS X 10.7.5 and I have installed the
> XQuartz 2.7.4. I really do not have a clue about what is happening with
> that, I would appreciate so much if you can help me figure this problem out.
> 
> 
> All the best!
> Milo.
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://matplotlib.1069221.n5.nabble.com/import-matplotlib-pyplot-does-not-work-tp42155.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Helm, A. <a....@hz...> - 2013年10月02日 16:17:32
Hello everyone,
I have a small problem installing the latest release of matplotlib. The 
following problem occurs during building (I just used 'pip install 
matplotlib' for it):
 /opt/pkg/compiler/gnu/gcc/4.7.1/bin/g++-4.7.1 -pthread -shared
 build/temp.linux-x86_64-2.7/src/_image.o
 build/temp.linux-x86_64-2.7/src/mplutils.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o
 build/temp.linux-x86_64-2.7/agg24/src/agg_vpgen_segmentator.o
 build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o
 build/temp.linux-x86_64-2.7/CXX/cxxsupport.o
 build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o
 build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib
 -L/usr/lib -L/usr/lib64 -lstdc++ -lm -o
 build/lib.linux-x86_64-2.7/matplotlib/_image.so
 /usr/bin/ld: /usr/lib/libm.a(s_sin.o): relocation R_X86_64_32S
 against `__sincostab' can not be used when making a shared object;
 recompile with -fPIC
I don't really understand the problem. Is it possible that the libary is 
to old or the standard libm.a isn't compiled the right way?
I'm trying to build it on a server:
 Distributor ID: Ubuntu
 Description: Ubuntu 12.04.2 LTS
 Release: 12.04
 Codename: precise
Do you know a way how to avoid it and not trying to build a new libm or 
something similar?
Thank you.
Best regards,
Anton
From: Werner F. B. <wer...@fr...> - 2013年10月02日 15:30:38
Hi Antonio,
(forgot to copy list - for archive)
On 02/10/2013 17:05, António de Sousa wrote:
> Hi Werner,
>
> thank you for your reply.
>
> Yes, the path is C:\Python26\lib\
>
> Can it be that the error message is coming from a different location?
> Meaning that there may be duplicate files (e.g. python related 
> DLLs) in the system?
I am guessing/suspecting that you don't always run the Python version 
you think you are running.
So, just to double check, if you do:
c:\Python26\python.exe
from PyQt4.QtGui import QFormLayout
You get no error?
'file.py' is your script which runs matplotlib, yes?
if above gives no error what happens if you do:
c:\Python26\python.exe file.py
Werner
From: pymilo <cam...@gm...> - 2013年10月02日 14:39:54
Hello everyone,
I want to work whit matplotlib and I installed it using pip command.
Apparently the installation was successful and when I open ipython and
import matplotlib everything works well. Nevertheless when I try to import
pyplot using: import matplotlib.pyplot I obtain this:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-11-6f467123fe04> in <module>()
----> 1 import matplotlib.pyplot
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py
in <module>()
 22 
 23 import matplotlib
---> 24 import matplotlib.colorbar
 25 from matplotlib import _pylab_helpers, interactive
 26 from matplotlib.cbook import dedent, silent_list, is_string_like,
is_numlike
.
.
.
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py
in <module>()
 60 
 61 import matplotlib.colors as mcolors
---> 62 import matplotlib._png as _png
 63 ####################
 64 
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so,
2): Symbol not found: _png_set_longjmp_fn
 Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
 Expected in: flat namespace
 in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
---------------------------------------------------------------------------
I have installed the libpng library as was suggested in other post but
nothing worked. I am working with a Mac OS X 10.7.5 and I have installed the
XQuartz 2.7.4. I really do not have a clue about what is happening with
that, I would appreciate so much if you can help me figure this problem out.
All the best!
Milo.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/import-matplotlib-pyplot-does-not-work-tp42155.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: ajdcds <aj...@ho...> - 2013年10月02日 13:53:30
No error message:
>>> from PyQt4.QtGui import QFormLayout
>>>
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42154.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Michael D. <md...@st...> - 2013年10月02日 13:35:40
It looks like the PyQt4 installation in python(x,y) is somehow broken. 
If you just open up the python(x, y) interpreter and type
>>> from PyQt4.QtGui import QFormLayout
or
>>> from PyQt4 import QtGui
what happens? If that fails too, I'd say the bug is in python(x, y) (or 
however PyQt4 got installled there).
Mike
On 10/02/2013 09:19 AM, ajdcds wrote:
> Hi Mike,
>
> thank you for your interest.
>
> If I replace the following statement on formlayout.py:
>
> /try:
> from PyQt4.QtGui import QFormLayout
> except ImportError:
> raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/
> 	
> With this one:
>
> /from PyQt4.QtGui import QFormLayout/
>
> Then the error is the following:
>
> /Traceback (most recent call last):
> File "file.py", line 83, in <module>
> import <something>
> File "includes\something.py", line 31, in <module>
> import matplotlib.pyplot as plt
> File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in
> <module>
> new_figure_manager, draw_if_interactive, show = pylab_setup()
> File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line
> 25, in pylab_setup
> globals(),locals(),[backend_name])
> File
> "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line
> 12, in <module>
> from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
> File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py",
> line 18, in <module>
> import matplotlib.backends.qt4_editor.figureoptions as figureoptions
> File
> "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py",
> line 11, in <module>
> import matplotlib.backends.qt4_editor.formlayout as formlayout
> File
> "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
> line 53, in <module>
> from PyQt4.QtGui import QFormLayout
> ImportError: DLL load failed: The specified procedure could not be found./
>
>
>
> --
> View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42152.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
 _
|\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _
| ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
http://www.droettboom.com
From: ajdcds <aj...@ho...> - 2013年10月02日 13:19:28
Hi Mike,
thank you for your interest.
If I replace the following statement on formlayout.py:
/try: 
 from PyQt4.QtGui import QFormLayout 
except ImportError: 
 raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/
	
With this one:
/from PyQt4.QtGui import QFormLayout/
Then the error is the following:
/Traceback (most recent call last):
 File "file.py", line 83, in <module>
 import <something>
 File "includes\something.py", line 31, in <module>
 import matplotlib.pyplot as plt
 File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in
<module>
 new_figure_manager, draw_if_interactive, show = pylab_setup()
 File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line
25, in pylab_setup
 globals(),locals(),[backend_name])
 File
"C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line
12, in <module>
 from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
 File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py",
line 18, in <module>
 import matplotlib.backends.qt4_editor.figureoptions as figureoptions
 File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py",
line 11, in <module>
 import matplotlib.backends.qt4_editor.formlayout as formlayout
 File
"C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py",
line 53, in <module>
 from PyQt4.QtGui import QFormLayout
ImportError: DLL load failed: The specified procedure could not be found./
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42152.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Showing results of 136

<< < 1 .. 3 4 5 6 > >> (Page 5 of 6)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /