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




Showing 11 results of 11

From: Benjamin R. <ben...@ou...> - 2010年11月26日 21:45:08
On Friday, November 26, 2010, Fred Pollard <fre...@gm...> wrote:
> Hi,
>
> I'm trying to install matplotlib on a windows machine at work to try and demonstrate its usefulness. I have Python 2.6 installed and managed to use the numpy binary install without admin priviledges.
>
> The matplotlib binary installer, however, requires admin priviledges, and I don't understand why - is an alternative installer available, because otherwise, I'll have to drop matplotlib and Python for somethign else, as IT will take a month or two to install it for me.
>
>
> I know I could build it myself, but the same restrictions are causing problems getting the pre-requisites installed!
>
> Cheers,
> Fred
>
Fred
I have not tried installing mpl on windows, but when building on
Linux, I can pass the --user option in the command-line to setupegg.py
to do a local build and install. Maybe the same is available on
Windows?
Ben Root
From: Benjamin R. <ben...@ou...> - 2010年11月26日 21:40:14
On Thursday, November 25, 2010, robert fujii <rob...@gm...> wrote:
> Hello - I am using python 2.6, numpy-1.3.0-win32-
>
> superpack-python2.6,
> scipy-0.7.1-win32-superpack-python2.6, sympy-0.6.7.win32,
>
> matplotlib-1.0.0.win32-py2.6,
> and brian-1.2.1.win32.
> I would like to "import pylab" , however I get the following messages
> shown below. Any assistnce would be highly appreciated.
> Thank you.
> Robert
> *********************************************************************************
> import pylab
>  File "F:\Python26\lib\site-packages\pylab.py", line 1, in <module>
>   from matplotlib.pylab import *
>  File "F:\Python26\lib\site-packages\matplotlib\pylab.py", line 206, in
> <module>
>   from matplotlib import mpl # pulls in most modules
>  File "F:\Python26\lib\site-packages\matplotlib\mpl.py", line 2, in
> <module>
>   from matplotlib import axis
>  File "F:\Python26\lib\site-packages\matplotlib\axis.py", line 10, in
> <module>
>   import matplotlib.font_manager as font_manager
>  File "F:\Python26\lib\site-packages\matplotlib\font_manager.py", line
> 1301, in <module>
>   _rebuild()
>  File "F:\Python26\lib\site-packages\matplotlib\font_manager.py", line
> 1292, in _rebuild
>   fontManager = FontManager()
>  File "F:\Python26\lib\site-packages\matplotlib\font_manager.py", line 984,
> in __init__
>   self.ttffiles = findSystemFonts(paths) + findSystemFonts()
>  File "F:\Python26\lib\site-packages\matplotlib\font_manager.py", line 330,
> in findSystemFonts
>   for f in win32InstalledFonts(fontdir):
>  File "F:\Python26\lib\site-packages\matplotlib\font_manager.py", line 213,
> in win32InstalledFonts
>   key, direc, any = _winreg.EnumValue( local, j)
> MemoryError
>
>
Did you have a previous version of matplotlib? Did you ever have
difficulties with that version on this computer?
Ben Root
From: Benjamin R. <ben...@ou...> - 2010年11月26日 21:32:38
On Friday, November 26, 2010, C M <cmp...@gm...> wrote:
> This is not important at all and unlikely to be supported, but just
> out of curiosity:
>
> Is it possible to set matplotlib such that, when using the 'o-' marker
> style (marker
> connected by lines) and partially transparent markers, the lines are not shown
> within the transparent marker? That is, the lines would stop at the boundary
> of the marker and pick up again at the other side. This would produce a better
> aesthetic effect, I think, than the lines being seen coursing through the marker
> when the markers are transparent.
>
> Thanks,
> Che
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win 500ドル!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five 500ドル cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
If it is at all possible (and I don't think it can yet), I think it
would be with join styles. Otherwise, the lines are simply drawn from
point to point and the markers laid on top of that.
Ben Root
From: C M <cmp...@gm...> - 2010年11月26日 19:01:19
On Thu, Nov 18, 2010 at 12:59 PM, C M <cmp...@gm...> wrote:
> Goals: date plot with two y axes (plotting completely different things)
>      point picking and point labeling
>      As many lines as user wants, all colored differently.
>
> Having some problems with this. (matplotlib 0.98.5)
>
> 1) There is a known bug with twinx() and plot_date:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=3046812&group_id=80706&atid=560720
>
> But I can get it to work if I change ONE OF the plot_date() calls (the
> one for the values plotted to the right-hand y axis) to just plot().
>
> Is that going to introduce problems? Is there a better workaround?
> (The ones on that page don't work for me).
So far, so good with this. But for others working on it, I have found
that the *order* of plotting matters.
That is, I have two axes and I have to use plot() for one axis and
plot_date() for the other, but it must be plot() that is used first or
else I will get the error: ValueError: ordinal must be >= 1.
I'm managing my lines and grouping them by axes, and then making sure
I plot all the lines on the axis that uses plot() first. Seems to
work fine after that.
> 3) My point picking is not working with the two axes. In my routine,
> I label the picked point and to do that I have to make reference to
> its axis and call plot_date(). How can I know which axis the picked
> point came from, so that I can label it appropriately?
I should have just thought about that more. Of course, there is the
method myline.get_axes() for that.
Che
From: C M <cmp...@gm...> - 2010年11月26日 17:13:02
This is not important at all and unlikely to be supported, but just
out of curiosity:
Is it possible to set matplotlib such that, when using the 'o-' marker
style (marker
connected by lines) and partially transparent markers, the lines are not shown
within the transparent marker? That is, the lines would stop at the boundary
of the marker and pick up again at the other side. This would produce a better
aesthetic effect, I think, than the lines being seen coursing through the marker
when the markers are transparent.
Thanks,
Che
From: Jae-Joon L. <lee...@gm...> - 2010年11月26日 16:14:48
Here is the example that I believe that does what you want.
The way it does is very similar to how legend object is created.
Unfortunately, the offsetbox module, which enables this example, is
not well documented. I hope the example is explanatory enough.
IHTH,
-JJ
import matplotlib.pyplot as plt
from matplotlib.offsetbox import TextArea, DrawingArea, HPacker, AnnotationBbox
import matplotlib.lines as mlines
ax = plt.subplot(111)
fontsize=15
box1 = TextArea("This is the square marker :", textprops=dict(color="k",
 size=fontsize))
# create a drwaing area for a marker
# It will have width*height = fontsize*0.8fontsize
# and xdescent, ydescent = 0*0.2fontsize
box2 = DrawingArea(fontsize, 0.8*fontsize,
 0, 0.2*fontsize)
# maker
l1 = mlines.Line2D([0.5*fontsize], [0.25*fontsize], marker="s",
 markersize=(0.5*fontsize))
# add the marker to the drawing area
box2.add_artist(l1)
# now combine the textarea and the drawing area (marker)
box = HPacker(children=[box1, box2],
 align="baseline",
 pad=0, sep=fontsize*0.2)
# Use AnnotationBbox object using *box*. Note that the AnnotationBbox
is very similar to annotate. It uses offsetbox object instead of the
text object
a_box = AnnotationBbox(box, xy=(0., 1.),
 xycoords='data',
 xybox=(fontsize, -fontsize),
 boxcoords="offset points",
 box_alignment=(0., 1),
 frameon=True,
 )
ax.add_artist(a_box)
plt.show()
On Wed, Nov 24, 2010 at 1:22 AM, Alejandro Weinstein
<ale...@gm...> wrote:
> Hi:
>
> I want to use the symbol corresponding to a marker in a text
> annotation. Something like
>
> textstr = 'This is the square marker: ?'
> ax.text(0.05, 0.95, textstr)
>
> Is there something I can place where the question mark is above to get
> the actual square (or any other of the symbols you can use as a
> marker)?
>
> This is similar to what the legend command does, but I need more flexibility.
>
> Alejandro.
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win 500ドル!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five 500ドル cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Benoist L. <be...@ib...> - 2010年11月26日 13:35:32
Thank you for your answer.
I read the text and annotate manual pages.
I don't understand how the "polar" xycoords/textcoords works.
I guess I should use this but its not clear to me.
Le 26 nov. 10 à 14:13, Alan G Isaac a écrit :
> On 11/26/2010 8:12 AM, Benoist Laurent wrote:
>> How can I manage the annotation of points forming a circle if I have
>> their coordinates?
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text
>
> http://matplotlib.sourceforge.net/examples/api/joinstyle.html
>
> hth,
> Alan Isaac
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win 500ドル!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with 
> the
> Intel(R) Software Partner Program. Five 500ドル cash prizes are up for 
> grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Alan G I. <ala...@gm...> - 2010年11月26日 13:13:22
On 11/26/2010 8:12 AM, Benoist Laurent wrote:
> How can I manage the annotation of points forming a circle if I have
> their coordinates?
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text
http://matplotlib.sourceforge.net/examples/api/joinstyle.html
hth,
Alan Isaac
From: Benoist L. <Be...@ib...> - 2010年11月26日 13:06:55
Hi,
I'm a new matplotlib user and I'm already impressed by matplotlib's 
features!
But I can't find how to do something that looks quite easy.
I have several points making something that looks like a circle.
I would like to anotate these point.
How can I manage the annotation of points forming a circle if I have 
their coordinates?
Any help would be appreciate.
Thank you.
Ben
From: Fred P. <fre...@gm...> - 2010年11月26日 10:28:28
Hi,
I'm trying to install matplotlib on a windows machine at work to try and
demonstrate its usefulness. I have Python 2.6 installed and managed to use
the numpy binary install without admin priviledges.
The matplotlib binary installer, however, requires admin priviledges, and I
don't understand why - is an alternative installer available, because
otherwise, I'll have to drop matplotlib and Python for somethign else, as IT
will take a month or two to install it for me.
I know I could build it myself, but the same restrictions are causing
problems getting the pre-requisites installed!
Cheers,
Fred
From: Daoliang T. <dao...@gm...> - 2010年11月26日 01:54:29
Dear all,
I am facing a weird problem when I import pylab or pyplot modules.
Right now, I can successfully import matplotlib. But after I issue
the command "ipython -pylab --verbose-helpful", I get the following
error:
=================================================================================================================================================
$HOME=/home/michael
CONFIGDIR=/home/michael/.matplotlib
matplotlib data path /usr/share/matplotlib/mpl-data
loaded rc file /etc/matplotlibrc
matplotlib version 0.99.3
verbose.level helpful
interactive is False
units is False
platform is linux2
font search path ['/usr/share/matplotlib/mpl-data/fonts/ttf',
'/usr/share/matplotlib/mpl-data/fonts/afm']
Traceback (most recent call last):
 File "/usr/bin/ipython", line 28, in <module>
 IPython.Shell.start().mainloop()
 File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1241, in start
 return shell(user_ns = user_ns)
 File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 1106, in __init__
 shell_class=MatplotlibShell)
 File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 73, in __init__
 debug=debug,shell_class=shell_class)
 File "/usr/lib/pymodules/python2.6/IPython/ipmaker.py", line 100, in
make_IPython
 embedded=embedded,**kw)
 File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 627, in __init__
 user_ns,user_global_ns,b2 =
self._matplotlib_config(name,user_ns,user_global_ns)
 File "/usr/lib/pymodules/python2.6/IPython/Shell.py", line 556, in
_matplotlib_config
 import matplotlib.pylab as pylab
 File "/usr/lib/pymodules/python2.6/matplotlib/pylab.py", line 206, in <module>
 from matplotlib import mpl # pulls in most modules
 File "/usr/lib/pymodules/python2.6/matplotlib/mpl.py", line 2, in <module>
 from matplotlib import axis
 File "/usr/lib/pymodules/python2.6/matplotlib/axis.py", line 10, in <module>
 import matplotlib.font_manager as font_manager
 File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line
1301, in <module>
 _rebuild()
 File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line
1292, in _rebuild
 fontManager = FontManager()
 File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line
1010, in __init__
 self.afmlist = createFontList(self.afmfiles, fontext='afm')
 File "/usr/lib/pymodules/python2.6/matplotlib/font_manager.py", line
578, in createFontList
 font = afm.AFM(fh)
 File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 303, in __init__
 parse_afm(fh)
 File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 291, in parse_afm
 dcmetrics_ascii, dcmetrics_name = _parse_char_metrics(fh)
 File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 176, in
_parse_char_metrics
 bbox = _to_list_of_floats(vals[3][2:])
 File "/usr/lib/pymodules/python2.6/matplotlib/afm.py", line 58, in
_to_list_of_floats
 return [_to_float(val) for val in s.split()]
ValueError: invalid literal for float(): uni2605
===========================================================================================================================================
Each time, as long as I import pylab OR pyplot, I will obtain
"ValueError: invalid literal for float(): uni2605". After googling a
long time, I can not get an idea to address this issue. Can anyone
give me some hints?
My computer configuration is the following:
1. OS: debian squeeze Linux 2.6.32-5-amd64 #1 SMP Sat Oct 30 14:18:21
UTC 2010 x86_64 GNU/Linux
2. matplotlib version: 0.99.3
3. The matplotlib is installed from the debian repository.
4. no any special customization of "matplotlibrc"
5. import pylab will produce this error.
6. python version: 2.6.6-3
I have reinstalled these packages many times and this does not solve
this issue.
Thanks for your help!
Daoliang

Showing 11 results of 11

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