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


Showing 9 results of 9

From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年07月30日 20:46:06
If there are one or more narrow wedges on a pie graph, narrow enough that
the percentage values overlap and are hard to read, there seems to be a
knife-thin missing wedge from the pie, including a break in the
circumference.
Is this configurable, even if it means that the border completely covers the
colored interior of ultra-thin wedges?
-- 
-- Jonathan Hayward, chr...@gm...
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年07月30日 19:41:06
How can I customize a pie graph autopct format string to display the value
for one of the regions to a specified precision? If I have category A
presenting 5ドル.25, category B representing 1ドル.30, and category C representing
2ドル.00, how do I get the numeric value (not the label) displayed for category
A to be "5ドル.25" instead of "NN.N%"?
-- 
-- Jonathan Hayward, chr...@gm...
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
From: John H. <jd...@gm...> - 2008年07月30日 14:41:10
On Wed, Jul 30, 2008 at 9:17 AM, stuartornum <st...@mu...> wrote:
>
> Hi,
>
> Wondering if anyone has done something similar and could point me in the
> right direction.
>
> I have a dictionary like this:
>
> Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78',
> '00:04:00':'45', >....> '23:59:00':54}
>
> So as you can see there is 24 hours worth of minutes, with a value attached
> to each minute.
>
> Firstly, just to note the Dictionary "Dict" is not actually in order as
> above, it is all jumbled up.
>
> However is it possible to plot a dictionary using MatPlotLib, and using the
> time along the x-axis and values up the y?
You will have to extract the x and y values, and convert them from
strings to values matplotlib can understand (for example dates and
floating point numbers). Eg
In [30]: d = {'00:00:00':'23', '00:01:00':'29', '00:02:00':'13',
'00:03:00':'78',
'00:04:00':'45', '23:59:00':54}
In [32]: from dateutil.parser import parse
In [33]: items = [(parse(date), float(val)) for date, val in d.items()]
In [34]: items.sort()
In [35]: items
Out[35]:
[(datetime.datetime(2008, 7, 30, 0, 0), 23.0),
 (datetime.datetime(2008, 7, 30, 0, 1), 29.0),
 (datetime.datetime(2008, 7, 30, 0, 2), 13.0),
 (datetime.datetime(2008, 7, 30, 0, 3), 78.0),
 (datetime.datetime(2008, 7, 30, 0, 4), 45.0),
 (datetime.datetime(2008, 7, 30, 23, 59), 54.0)]
In [36]: dates, values = zip(*items)
In [37]: plot(dates, values)
Out[37]: [<matplotlib.lines.Line2D object at 0xb45a5ec>]
From: stuartornum <st...@mu...> - 2008年07月30日 14:17:03
Hi,
Wondering if anyone has done something similar and could point me in the
right direction.
I have a dictionary like this:
Dict{'00:00:00':'23', '00:01:00':'29', '00:02:00':'13', '00:03:00':'78',
'00:04:00':'45', >....> '23:59:00':54}
So as you can see there is 24 hours worth of minutes, with a value attached
to each minute.
Firstly, just to note the Dictionary "Dict" is not actually in order as
above, it is all jumbled up.
However is it possible to plot a dictionary using MatPlotLib, and using the
time along the x-axis and values up the y?
Thank you in advanced
-- 
View this message in context: http://www.nabble.com/Plot-a-Dictionary%2C-time-and-value-tp18734294p18734294.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Laurent D. <lau...@gm...> - 2008年07月30日 12:08:23
Ho you got the point...
self.clutter_low.GetPosition() didn't returned an int...
self.clutter_low.GetValue return an int an it works now.
I missed this because I thought that 
self.norm = plt.Normalize(vmin=self.low_clutter_val,
vmax=self.high_clutter_val)
would have crashed before in this case, but seems it does not do any
computation on Normalize call.
Anyhow, thank you a lot, sorry to have send this error, I could have read my
code deeper first.
Regards,
Lauent
> -----Message d'origine-----
> De : John Hunter [mailto:jd...@gm...]
> Envoyé : mercredi 30 juillet 2008 02:04
> À : Laurent Dufrechou
> Cc : mat...@li...
> Objet : Re: [Matplotlib-users] imshow update norm make my app crash.
> 
> On Tue, Jul 29, 2008 at 6:52 PM, Laurent Dufrechou
> <lau...@gm...> wrote:
> 
> > I've applied the idea you've said later about colormap.
> >
> > Now I would like on an event to refresh my view so I've written this
> code:
> 
> 
> I would like to see what
> 
> self.low_clutter_val = self.clutter_low.GetPosition()
> 
> self.high_clutter_val = self.clutter_high.GetPosition()
> 
> low and high clutter val are (can you print them, as well as their
> type, eg
> 
> print low', type(self.low_clutter_val), self.low_clutter_val
> 
> and likewise for the high val. From the error, it looks lik they are
> not scalars.
> 
> JDH
From: Manuel M. <mm...@as...> - 2008年07月30日 08:03:41
sa6113 wrote:
> I am using matplotlib to draw and show my plot, now I want to know how may I
> add manual axes scale to it.
> I need to manually show the axes scale (from min to max value that I have)
> the below is some part of my code.
> .
> .
> .
> from matplotlib.figure import Figure
> 
> self.fig = Figure( figsize =5, 4 ))
> yLine = self.ax.plot( xData, yData, 'ro-', linewidth = 2 )
> fitLine = self.ax.plot( xData, fitData,'bo-', linewidth = 1 )
> self.ax.set_xlabel('X')
> self.ax.set_ylabel('Y )
Maybe this is what you need:
self.ax.set_xlim(xmin, xmax)
?
From: sa6113 <s.p...@gm...> - 2008年07月30日 07:53:05
I am using matplotlib to draw and show my plot, now I want to know how may I
add manual axes scale to it.
I need to manually show the axes scale (from min to max value that I have)
the below is some part of my code.
.
.
.
from matplotlib.figure import Figure
self.fig = Figure( figsize =5, 4 ))
yLine = self.ax.plot( xData, yData, 'ro-', linewidth = 2 )
fitLine = self.ax.plot( xData, fitData,'bo-', linewidth = 1 )
self.ax.set_xlabel('X')
self.ax.set_ylabel('Y )
-- 
View this message in context: http://www.nabble.com/how-add-axes-scale-to-my-plot--tp18727840p18727840.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: John H. <jd...@gm...> - 2008年07月30日 02:16:18
On Tue, Jul 29, 2008 at 1:12 PM, John Hunter <jd...@gm...> wrote:
> We are in the final stages of preparing a new matplotlib release, and
> a lot of work has gone into it. If you would like to test the release
> and see if it is working for you, that would be a big help
>
> http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc2.tar.gz
>
> Unfortunately, we do not have binary builds available at this time.
Charlie was kind enough to build a windows installer for the release
candidate for testing, which is available here
 http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3rc2.win32-py2.5.exe
We aren't going to wait around for too long, so if you are able to
test, please do so sooner rather than later. In the absence of
serious problems, we'll be pushing out a release in the next day or
two.
JDH
From: John H. <jd...@gm...> - 2008年07月30日 00:04:37
On Tue, Jul 29, 2008 at 6:52 PM, Laurent Dufrechou
<lau...@gm...> wrote:
> I've applied the idea you've said later about colormap.
>
> Now I would like on an event to refresh my view so I've written this code:
I would like to see what
 self.low_clutter_val = self.clutter_low.GetPosition()
 self.high_clutter_val = self.clutter_high.GetPosition()
low and high clutter val are (can you print them, as well as their type, eg
 print low', type(self.low_clutter_val), self.low_clutter_val
and likewise for the high val. From the error, it looks lik they are
not scalars.
JDH

Showing 9 results of 9

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