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






Showing 8 results of 8

From: John H. <jdh...@ac...> - 2005年07月02日 15:05:37
>>>>> "Mark" == Mark Bakker <ma...@gm...> writes:
 Mark> When I create a plot that is smaller than the figure window,
 Mark> the tickmark locator seems to locate the ticks based on the
 Mark> figure size, not the subplot size. I tried this several
 Mark> ways.
Hey Mark, this is a bug. I find the problem disappears when I force a
redraw by making a small change in figure size. Could you file a sf
bug report?
Thanks!
JDH
From: John H. <jdh...@ac...> - 2005年07月02日 15:04:08
>>>>> "Vidar" == Vidar Gundersen <vid...@37...> writes:
 Vidar> can anyone explain this format to me?
 Vidar> _cool_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)),
 Vidar> 'green': ((0., 1., 1.), (1.0, 0., 0.)), 'blue': ((0., 1.,
 Vidar> 1.), (1.0, 1., 1.))}
Take a look at the help for the matplotlib.colors module at
http://matplotlib.sourceforge.net/matplotlib.colors.html, in
particular
 http://matplotlib.sourceforge.net/matplotlib.colors.html#LinearSegmentedColormap
 http://matplotlib.sourceforge.net/matplotlib.colors.html#-makeMappingArray
JDH
From: John H. <jdh...@ac...> - 2005年07月02日 14:59:45
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> My preference is for 3 separate packages - matplotlib which
 Steve> depends on dateutils and pytz.
 Steve> I think the problem is caused by matplotlib itself. I don't
 Steve> think that matplotlib should repackage dateutils and pytz
 Steve> which are already independent packages. I understand that
 Steve> John included them initially in order to make matplotlib
 Steve> easier to download and install, which I understand. But now
 Steve> that matplotlib is being packaged for distributions it
 Steve> creates unnecessary extra work for the matplotlib
 Steve> packagers.
I agree the situation is not ideal, but it is not just pytz and
dateutil that we a re talking about. It is also agg, pyparsing and
pycxx. I think we would turn a number of people off if we said, first
install Numeric, pycxx, agg, pytz, pyparsing, dateutil, freeytpe, png
and zlib. The current approach tries to balance the likelihood that a
prereq is already on the system with the ease of installation of that
package (do packages for the various platforms already exist?) with my
desire to simplify the build configure process by controlling which
version matplotlib uses. agg, for example, is particularly vexing,
because Maxim frequently updates a given release (agg23 for example)
w/o changing the version number even when the updates break existing
code. In this case, it is not sufficient even to say "use agg23".
Also, we have to balance inconvenience of package developers with
inconvenience of users. Given a choice, I tend to inconvenience the
power users, because they are more able and willing to deal with it.
That said, I think there is a compromise solution which may satisfy
everyone. Following Chris Barker's suggestion, we can create a zip
file or tarball of matplotlib deps, which has the src of all of the
prereqs (except python and numerix) in it, and rewrite the setup to
have a proper configure, checking for each prereq and issuing a kind
error like "you are missing the freetype prereq, please install it or
download http://someserver.com/mpldeps.zip and unzip it in this dir.
This would keep the matplotlib distro (and CVS updates) as light as
possible while making it easier to compile mpl on OSX and some linux
distros. Of course, to do this right requires a fair amount of
effort, but I am all for it. I worked for a while trying to use the
distutils configure functionality (which can test for include headers,
libs and the like) but was unsuccessful. The question that stumped me
was how to properly communicate the results of the config process to
the build process. I posted this to c.l.python but got no answer:
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/97cbe06f5efa58c0/18a015cba8bf2bd0?q=author:jdh...@ac...+group:comp.lang.python+distutils&rnum=1&hl=en#18a015cba8bf2bd0
If anyone wants to work on this, I'll be happy to help. But the
setup/configure/build process is fairly elaborate since it involves
multiple dependencies and gui toolkits across platforms, which is why
I have been a bit reluctant to refactor it.
JDH
From: John H. <jdh...@ac...> - 2005年07月02日 14:42:56
>>>>> "Vidar" == Vidar Gundersen <vid...@37...> writes:
 Vidar> axvline(x=0, color='black', ) 
 Vidar> axhline(y=0, color='black', )
 Vidar> neither does this: i want a dashed line.
This is the right approach, just add linestyle='--' to the kwargs.
Since you will be using identical kwargs for the hline and vline, you
may want to consider the following approach, which is equivalent but
puts the configuration in one place
 props = dict(color='black', linestyle='--', linewidth=1)
 axvline(x=0, **props) 
 axhline(y=0, **props)
If for some reason you *really* want to use the actual gridlines
functionality w/o affecting the ticks, you could selectively toggle
the visible property of the gridlines you do not want to show.
JDH
From: Vidar G. <vid...@37...> - 2005年07月02日 14:30:27
how can i create a grid at 0,0 ?
xticks( [0] )
yticks( [0] )
grid()
does not produce what i want because i loose ticks on the axis.
axvline(x=0, color='black', )
axhline(y=0, color='black', )
neither does this: i want a dashed line.
From: Vidar G. <vid...@37...> - 2005年07月02日 08:55:11
===== Original message from Mark Bakker | Fri, 1 Jul 2005:
> Detailed instructions for adding a color map seem to be given in the user 
> manual on page 61. Did you try that?
can anyone explain this format to me?
_cool_data = {'red': ((0., 0., 0.), (1.0, 1.0, 1.0)),
 'green': ((0., 1., 1.), (1.0, 0., 0.)),
 'blue': ((0., 1., 1.), (1.0, 1., 1.))}
From: Jeff W. <js...@fa...> - 2005年07月02日 03:27:26
Vidar Gundersen wrote:
>i would like to add colorbrewer colormaps to matplotlib,
>at least for my personal use, but i would like to do this
>properly so that this can be used by others.
>
>ColorBrewer:
>http://www.personal.psu.edu/faculty/c/a/cab38/ColorBrewerBeta2.html
>
>any hints on where to start? start with the cm.py module?
>extend cm.py or create a stand-alone one?
>
>the ColorBrewer palettes could be addressed by something
>like one of the following, i guess?:
>
> cmap=cm.colorbrewer.PuBuGn
> cmap=colorbrewer.PuBuGn
>
>the colorbrewer palettes are specified by 3 to 9 rgb colors,
>each interpolated differently, how many of these points would
>be preferred in a matplotlib module?
>
>...or even all of them, assuming 5seq as a default
>(when using the above):
>
> cmap=cm.colorbrewer.PuBuGn.3seq
> cmap=cm.colorbrewer.PuBuGn.9seq
>
> 
>
Jim Boyle posted a nice example that shows how to do this a while back.
http://sourceforge.net/mailarchive/message.php?msg_id=11255878
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
From: Steve C. <ste...@ya...> - 2005年07月02日 02:31:59
On Fri, 2005年07月01日 at 10:15 -0700,
mat...@li... wrote:
> Hi all,
> I have been following this list for some time, as well as using and
> spreading the news about matplotlib for all people I know and use
> python. :-)
> 
> I would like also to thank all the developers for all the amazing work 
> that has been done on matplotlib, it helps me a lot in my work.
> 
> Now the reason why I am writing to this list is to ask what is the
> preferred policy for packaging matplotlib as an rpm for FC4. Yesterday was
> accepted in Fedora Extras and so it should take a few days to be available.
> 
> The packager choose to package matplotlib (called python-matplotlib) with
> both dateutils and pytz packaged together while I use to package it as 3
> separate packages.
> 
> What is the opinion of the packager/developers here? Which scheme do you
> prefer?
> 
> Thanks again for this nice package.
My preference is for 3 separate packages - matplotlib which depends on 
dateutils and pytz.
I think the problem is caused by matplotlib itself. I don't think that 
matplotlib should repackage dateutils and pytz which are already 
independent packages. I understand that John included them initially in 
order to make matplotlib easier to download and install, which I 
understand. But now that matplotlib is being packaged for distributions 
it creates unnecessary extra work for the matplotlib packagers.
Regards
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 

Showing 8 results of 8

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