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

Showing 4 results of 4

From: Matthew B. <mat...@be...> - 2013年08月04日 20:47:40
Hi,
Congratulations on the new release.
I just tried installing in a fresh installation of Python 2.7 from Python.org
Am I right in thinking the recommended method is:
 pip install matplotlib
? I did this, and then:
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py",
line 24, in <module>
 import matplotlib.colorbar
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py",
line 29, in <module>
 import matplotlib.collections as collections
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py",
line 23, in <module>
 import matplotlib.backend_bases as backend_bases
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 50, in <module>
 import matplotlib.textpath as textpath
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py",
line 14, in <module>
 from matplotlib.mathtext import MathTextParser
 File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py",
line 62, in <module>
 import matplotlib._png as _png
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so,
2): Library not loaded: /usr/X11/lib/libpng12.0.dylib
 Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so
 Reason: Incompatible library version: _png.so requires version
42.0.0 or later, but libpng12.0.dylib provides version 36.0.0
There were no previous versions of matplotlib installed. This on OSX 10.6:
Python 2.7.5 just installed from python.org
X11 installed from the Apple installation disks for 10.6 before `pip
install matplotlib`
No homebrew etc
Any hints about how I should debug this further?
Thanks a lot for any help,
Matthew
From: ChaoYue <cha...@gm...> - 2013年08月04日 20:13:17
could you use the bbox_to_anchor keyword to place your legend in a precise
way so that they could be alignd?
sorry ,this is the only way I could think of (But I am not a real expert in
matplotlib)
Chao
On Sun, Aug 4, 2013 at 5:45 PM, Tyrax [via matplotlib] <
ml-...@n5...> wrote:
> Hi all,
>
> this is my first eMail to a mailing list, I hope I'm not messing it up. I
> posted my question already on stackoverflow, but apparently there's no
> simple solution to it:
>
> http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend
>
> In other words, I have a Figure with a many-entries-legend, but the legend
> text for most but not all of the object is very short. I'd like to use two
> or more columns for those short entries and switch back to single column
> mode when dealing with the longer legend entries.
>
> Two options came to my mind. One, make the legend work like a
> multicolumn-table in LaTeX or, two, having a container with multiple,
> well-aligned legends with individual properties for each one.
>
> I tried to solve my problem by setting up two legends. The downside is the
> need for additional aligning of the two legends. Even this is still beyond
> my skills.
>
> Thanks, Tyrax
>
> ------------------------------------------------------------------------------
>
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=41704&i=0>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704.html
> To start a new topic under matplotlib - users, email
> ml-...@n5...
> To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx>
> .
> NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Change-column-number-within-legend-tp41704p41706.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Pierre H. <pie...@cr...> - 2013年08月04日 18:44:10
Hi Frédéric,
I don't understand what is the "dictionnary of figures" feature you are
mentionning. Maybe you could write a short mockup script using it ?
However, it's worth mentionning that you can use not only numbers in
figures but also *strings*.
>>> fig = plt.figure('crude oil price')
I use this 95 % of the time. I think it helps a lot the figure
addressing problem.
best,
Pierre
Le 29/07/2013 16:34, Frédéric Parrenin a écrit :
> Currently, one call figures with their number in matplotlib.
> If you have a code which draw a lot a different figures at different
> places with some of them being optional, this is not very convenient.
>
> One convenient way to call figure would be to use a dictionnary of
> figures.
> Of course I could create some wrapper around matplotlib.figure
> function but it would be far more convenient if such feature would be
> standard in matplotlib.
>
> Is there any plan to implement such a feature?
>
> Best regards,
>
> Frédéric Parrenin
From: Jens N. <j....@gm...> - 2013年08月04日 15:43:53
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi all,</div>
<div>&nbsp;</div>
<div>this is my first eMail to a mailing list, I hope I&#39;m not messing it up. I posted my question already on stackoverflow, but apparently there&#39;s no simple solution to it:</div>
<div><a href="http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend" target="_blank">http://stackoverflow.com/questions/17909251/pyplot-change-ncols-within-a-legend</a></div>
<div>&nbsp;</div>
<div>In other words, I have a Figure with a many-entries-legend, but the legend text for most but not all of the object is very short. I&#39;d like to use two or more columns for those short entries and switch back to single column mode when dealing with the longer legend entries.</div>
<div>&nbsp;</div>
<div>Two options came to my mind. One, make the legend work like a multicolumn-table in LaTeX or, two, having a container with multiple, well-aligned legends with individual properties for each one.</div>
<div>&nbsp;</div>
<div>I tried to solve my problem by setting up two legends. The downside is the need for additional aligning of the two legends. Even this is still beyond my skills.</div>
<div>&nbsp;</div>
<div>Thanks, Tyrax</div></div></body></html>

Showing 4 results of 4

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