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
(22)
2
(17)
3
(21)
4
(7)
5
(7)
6
(17)
7
(8)
8
(8)
9
(33)
10
(11)
11
12
(2)
13
(11)
14
(29)
15
(13)
16
(13)
17
(3)
18
(2)
19
(3)
20
(7)
21
(17)
22
(12)
23
(19)
24
(19)
25
(14)
26
(5)
27
(25)
28
(13)




Showing 7 results of 7

From: Julius L. <jul...@gm...> - 2006年02月20日 23:01:14
On 2/15/06, John Hunter <jdh...@ac...> wrote:
> >>>>> "Charlie" =3D=3D Charlie Moad <cw...@gm...> writes:
>
> Charlie> You could use html image maps to accomplish this.
> Charlie> Obviously this would be in the context of a web page. I
> Charlie> think frontpage or dreamweaver has some nice tools for
> Charlie> creating these. Just google "html image maps" for more
> Charlie> info.
>
> Andrew Dalke has a tutorial on creating html image maps with
> matplotlib
>
> http://www.dalkescientific.com/writings/diary/archive/2005/04/24/interact=
ive_html.html
>
> JDH
>
This tutorial was a start. I want to do a similar thing, but use
rectangle objects for the image map, whose coordinates are derived
from matplotlib polygon objects. I was wondering if anyone knew how
to do this, or could point me to some documentation.
Basically I have a simple figure:
>
from pylab import *
clf()
fig =3D figure(1,(4,4))
ax =3D axis()
pl =3D plot(range(0,10),range(0,10),'b-')
box =3D axvspan(3,5,fc=3D'm',alpha=3D0.5)
#get vertices [(ul.x,ul.y),(lr.x,lr.y)]
#ul =3D upper left
#lr =3D lower right
#have to multiply ul.y by the upper ylim since for axvspan, ul.y=3D1
spans the range
b_verts =3D box.get_verts()
verts =3D [(b_verts[1][0],b_verts[1][1]*ax.get_ylim()[1]),(b_verts[3][0],b_=
verts[3][1])]
>
my question is what transform do I use to convert verts to pixel coordinate=
s?
ax.get_transform() does not work. Should I use pl.get_transform?
Thanks for your help!
Cheers,
Julius
From: Stephen E. <st...@se...> - 2006年02月20日 09:18:51
All,
I am trying to render a set of data/date points with plot_date. How can I
get matplotlib to only plot the y axis of this graph? I can turn both off
with axis("off"), but I can't seem to find more detailed instructions
anywhere.
Also, although this is unimportant, it grates somewhat to use matplotlib
with the procedural (matlab esque) instructions within my OO python code.
Are there any tutorials or other docs on plotting graphs through the more
pythonic libraries?
Many thanks,
Stephen English
From: Marc A. <ma...@ph...> - 2006年02月20日 05:23:57
Thanks so much for the tip. MPlot seems to be doing real-time plots
for me now, following a) your "-wthread" advice and b)having put the
measurement code in to a seperate thread. Does this seem unnecessarily
complicated? If it works under simpler circumstances, I'll let you know.
Also, the "-wthread" option seems to obviate the call to app.MainLoop().
Thanks again guys!
Marc
Quoting John Hunter <jdh...@ac...>:
> >>>>> "Marc" =3D=3D Marc AHRENS <ma...@ph...> writes:
> Marc> NB The absence of an "app.MainLoop()" call at the end, since
> Marc> I've called this from ipython, which is supposed to be
> Marc> clever and automatically the wxPython main loop in another
> Marc> thread automatically (I read this somewhere). I've tried
> Marc> running multi-threaded stuff from the regular python shell,
> Marc> but without success.
>=20
> ipython is only clever if you launch it in ipython -pylab for pylab
> mode (which is not compatible with MPlot) or if launched in the
> --wthread mode for wx threading. So you'll definitely need to do the
> latter. I haven't had a lot of experience with --wthread; is it
> correct that if you use wthread you should not use the explicit call
> to Mainloop?
>=20
> JDH
>=20
From: Charlie M. <cw...@gm...> - 2006年02月20日 02:13:31
Recently the matplotlib data files have been moved into the matplotlib
module. You should be able to safely remove share/matplotlib.
On 2/19/06, Jeff Peery <jef...@ya...> wrote:
> hello, I just upgraded from 0.84 to 0.86 on windows xp. I noticed that I
> have a couple different locations on my computere where it is installed.
> there is something in the python24/share and also
> python24/Lib/site-packages/
>
> what do I gotta do to make sure I am using the newest version. can I jus=
t
> delete all the matplot lib folders and reinstall the newest version?
>
> thakns!
>
>
> ________________________________
> Yahoo! Mail
> Use Photomail to share photos without annoying attachments.
>
>
From: Jeff P. <jef...@ya...> - 2006年02月20日 01:48:59
hello, I just upgraded from 0.84 to 0.86 on windows xp. I noticed that I have a couple different locations on my computere where it is installed. there is something in the python24/share and also python24/Lib/site-packages/
 
 what do I gotta do to make sure I am using the newest version. can I just delete all the matplot lib folders and reinstall the newest version? 
 
 thakns!
 
		
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
From: Charlie M. <cw...@gm...> - 2006年02月20日 00:40:25
On 2/19/06, Josh Marshall <jos...@gm...> wrote:
> I have the same issue with py2app that is described with py2exe
> below. In order to work around this, I just needed to remove the
> "sys.platform=3D=3D'win32' " check.
>
> Could the developers please either:
> Change the line to either:
> if (sys.platform=3D=3D'win32' or sys.platform=3D=3D'darwin') and =
sys.frozen:
Done.
From: Josh M. <jos...@gm...> - 2006年02月20日 00:04:43
I have the same issue with py2app that is described with py2exe 
below. In order to work around this, I just needed to remove the 
"sys.platform=='win32' " check.
Could the developers please either:
Change the line to either:
	if (sys.platform=='win32' or sys.platform=='darwin') and sys.frozen:
or
	if sys.frozen:
Either is fine with me. I'm not sure how this affects linux/other 
*nix users, but they don't tend to freeze apps, so the second line is 
probably fine.
Regarding py2exe and zipping the python packages into a zip, (py2app 
also does this) does anyone have any troubles with freezing numpy and 
matplotlib? (This may be more relevant to the numpy list.) Numpy 
fails on import due to the pkgload() command trying to load the 
documentation. Everything works fine when I unzip the site- 
packages.zip into a site-packages directory, but I would prefer not 
to have to do this since it doubles the disk space my .app consumes.
Thanks,
Josh
On 2/8/06, Charlie Moad <cw...@gm...> wrote:
> On 2/7/06, John Hunter <jdh...@ac...> wrote:
>
>>>>>>> "Daniel" =3D=3D Daniel McQuillen <dan...@ya...> 
>>>>>>> writes:
>>>>>>>
>>
>> Daniel> Please be kind....poor starving newbie. I've seen this
>> Daniel> question posted around but can't seem to find an answer:
>> Daniel> does anybody have experience creating an .exe for a
>> Daniel> matplotlib program using py2exe?
>>
>> Daniel> My testMPL.py application is all set to go, but when I 
>> run
>> Daniel> py2exe with the suggested setup.py file, I get
>> Daniel> errors. (I'm using ActiveState Python 2.4.2 Build 10)
>>
>> Daniel, just for our information: are you using the py2exe examples
>> from the matplotlib FAQ page? I think these are probably a bit 
>> out of
>> date as of the 0.86 release because of the way we recently 
>> reorganized
>> the package data (fonts, thumbnails etc).
>>
>> Charlie, have you tested any of the new egg / package organization
>> stuff with py2exe?
>>
>
> I just tried with an old project that I used py2exe with and it does
> look like we still need the py2exe specific check in get_data_path
> since py2exe zips the pure python code into a library.zip. I updated
> my setup.py file for that old project and I am pasting it below. In
> my specific case I was using numarray (numpy didn't exist), so now I
> have to exclude numpy or errors occur for some unknown reason. I just
> added the old py2exe check to get_data_path and everything worked
> fine. I will add this to cvs.
>
> Until the next release you can just uncomment the following lines in
> matplotlib/__init__.py#_get_data_path():
> if sys.platform=3D=3D'win32' and sys.frozen:
> path =3D os.path.join(os.path.split(sys.path[0])[0], 
> 'matplotlibdat=
> a')
> if os.path.isdir(path): return path
> else:
> # Try again assuming sys.path[0] is a dir not a exe
> path =3D os.path.join(sys.path[0], 'matplotlibdata')
> if os.path.isdir(path): return path
>

Showing 7 results of 7

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 によって変換されたページ (->オリジナル) /