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



Showing 7 results of 7

From: Eric F. <ef...@ha...> - 2012年02月25日 22:30:40
On 02/25/2012 10:02 AM, Benjamin Root wrote:
>
>
> On Friday, February 24, 2012, fdu...@gm...
> <mailto:fdu...@gm...> wrote:
>
> Dear Ben Root,
>
> I have made a pull request of matplotlib on github, and I put my
> venn function on
> https://github.com/icetime/__matplotlib/blob/master/lib/__matplotlib/venn.py
> <https://github.com/icetime/matplotlib/blob/master/lib/matplotlib/venn.py>.
> However, I'm not sure it is the right place venn.py should go.
>
> This is my first time try to contribute to an open source project.
> Could someone please help review the code? Any comments will be
> greatly appreciated.Thanks.
>
> Regards,
> Jianfeng
>
>
>
> Jianfeng,
>
> A common mistake new contributors make is that they make a pull request
> against their own mpl fork rather than the official one. We have not
> received your request yet. You might want to try again.
>
> Git is confusing at first, but once you try it out a bit more, it
> becomes much easier to use.
>
> Ben Root
>
Ben,
A first cut would be an answer to the question as to where it belongs: 
mpl core? examples? cookbook?
I don't think it is of sufficiently general usefulness to belong in the 
core, so I think it would be better as an example. What do you think?
Eric
>
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Benjamin R. <ben...@ou...> - 2012年02月25日 20:02:42
On Friday, February 24, 2012, fdu...@gm... wrote:
> Dear Ben Root,
>
> I have made a pull request of matplotlib on github, and I put my venn
> function on https://github.com/icetime/**matplotlib/blob/master/lib/**
> matplotlib/venn.py<https://github.com/icetime/matplotlib/blob/master/lib/matplotlib/venn.py>.
> However, I'm not sure it is the right place venn.py should go.
>
> This is my first time try to contribute to an open source project. Could
> someone please help review the code? Any comments will be greatly
> appreciated.Thanks.
>
> Regards,
> Jianfeng
>
>
>
Jianfeng,
A common mistake new contributors make is that they make a pull request
against their own mpl fork rather than the official one. We have not
received your request yet. You might want to try again.
Git is confusing at first, but once you try it out a bit more, it becomes
much easier to use.
Ben Root
From: Eric F. <ef...@ha...> - 2012年02月25日 19:25:24
On 02/25/2012 03:54 AM, Alejandro Dubrovsky wrote:
> Hi,
>
> I've run into something that I expect to be ground well covered but I
> can't find anything relevant on google.
>
> I'm on linux. When using the GtkAgg backend on matplotlib 1.1.0 (or git
> head for that matter), with interactive mode on, one call to draw() only
> gives me a blank window, while a second draw() immediately afterwards
> will draw the requested graph. On IRC, askewchan told me it only one
> draw is required under MacOSX, and it also works fine with just one draw
> call if I switch to the TkAgg backend.
This does not have a simple answer. The basic problem is a collision 
between event-driven programming (the gui toolkit) and nice, simple 
sequential programming such as in your script. The plotting commands 
essentially register requests with the gui toolkit, and the toolkit 
executes them when it gets around to it. It won't do it during a 
time.sleep(). Typically, it has to be waiting for input, because that 
is when the mainloop is checking to see if there is anything that needs 
to be done.
>
> The following short script should demonstrate the issue (note: this is
> only a problem when run as a script. It works fine on ipython, or
> standard python prompt):
>
Try removing *all* your "draw" commands, and replace the calls to 
time.sleep(2) with plt.pause(2). That works for me on gtkagg, qt4agg, 
wxagg, and tkagg. plt.pause() calls the event loop while waiting, 
instead of just freezing everything like sleep() does.
Eric
> ---
> import time
> from matplotlib import pyplot as plt
>
> def graph():
>
> 	plt.ion()
>
> 	plt.plot(range(10), range(10,20))
> 	plt.draw()
> 	plt.draw() # blank screen if this omitted
> 	time.sleep(2)
> 	plt.plot(range(30,40), range(10,20))
> 	plt.draw()
> 	plt.draw() # second line not drawn if this omitted
> 	time.sleep(2)
>
> 	plt.ioff()
>
> graph()
> ---
>
> backend GTKAgg version 2.24.0
> As a different but most likely related issue, th Qt4Agg backend doesn't
> work even with two draw calls.
>
> Is this a known issue? Is the script not using matplotlib as expected?
> If so, is running a separate thread the intended way of showing graphs
> in a non-blocking way?
>
> Thanks,
> alejandro
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Alejandro D. <ali...@gm...> - 2012年02月25日 13:54:41
Hi,
I've run into something that I expect to be ground well covered but I
can't find anything relevant on google.
I'm on linux. When using the GtkAgg backend on matplotlib 1.1.0 (or git
head for that matter), with interactive mode on, one call to draw() only
gives me a blank window, while a second draw() immediately afterwards
will draw the requested graph. On IRC, askewchan told me it only one
draw is required under MacOSX, and it also works fine with just one draw
call if I switch to the TkAgg backend.
The following short script should demonstrate the issue (note: this is
only a problem when run as a script. It works fine on ipython, or
standard python prompt):
---
import time
from matplotlib import pyplot as plt
def graph():
	plt.ion()
	plt.plot(range(10), range(10,20))
	plt.draw()
	plt.draw() # blank screen if this omitted
	time.sleep(2)
	plt.plot(range(30,40), range(10,20))
	plt.draw()
	plt.draw() # second line not drawn if this omitted
	time.sleep(2)
	plt.ioff()
graph()
---
backend GTKAgg version 2.24.0
As a different but most likely related issue, th Qt4Agg backend doesn't
work even with two draw calls.
Is this a known issue? Is the script not using matplotlib as expected?
If so, is running a separate thread the intended way of showing graphs
in a non-blocking way?
Thanks,
alejandro
From: Jouni K. S. <jk...@ik...> - 2012年02月25日 06:38:46
Sean Lake <ody...@gm...> writes:
> File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in _register
> assert encoding is None
> AssertionError
>
> Do I perhaps need to rebuild matplotlib because of a LaTeX update?
You'll need to do one of:
1. upgrade to matplotlib v1.1.0
2. apply the patch at https://github.com/matplotlib/matplotlib/commit/708c451
3. edit your pdftex.map file to not specify multiple encodings for one font;
 in one case, the culprit was URWBookmanL-DemiBold aka pbkdo8y
I recommend upgrading, but if you're comfortable editing TeX
configuration files, number 3 is the easiest workaround.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: <fdu...@gm...> - 2012年02月25日 04:51:21
Dear Ben Root,
I have made a pull request of matplotlib on github, and I put my venn 
function on 
https://github.com/icetime/matplotlib/blob/master/lib/matplotlib/venn.py. However, 
I'm not sure it is the right place venn.py should go.
This is my first time try to contribute to an open source project. Could 
someone please help review the code? Any comments will be greatly 
appreciated.Thanks.
Regards,
Jianfeng
On 2012年2月23日 9:22, Benjamin Root wrote:
> No need to ask permission. Just make a pull request on github. It may
> take some time, but we will get to evaluating your patch. A pull request is
> your best bet.
>
> Ben Root
>
> On Wednesday, February 22, 2012, Mic wrote:
>
>> Dear Jianfeng,
>>
>> Probably, you have to join developer mailing list (
>> http://lists.sourceforge.net/mailman/listinfo/matplotlib-devel ) and ask
>> there for permission to submit your code on githup.
>>
>> Cheers,
>>
>>
>>
>> On Tue, Feb 21, 2012 at 10:10 PM, fdu...@gm...<javascript:_e({},
>> 'cvml', 'fdu...@gm...');> <fdu...@gm...<javascript:_e({}, 'cvml', 'fdu...@gm...');>
>>> wrote:
>>> Dear Mic,
>>>
>>> Thanks for your reply.
>>>
>>> I have never submitted code to matplotlib, and I am not very much
>>> familiar with github. However, I guess I don't have the right to submit
>>> code to matplotlib. Could you please tell me what I need to do to get my
>>> code reviewed by the matplotlib team and perhaps get into matplotlib after
>>> the review? I use venn diagram quite often in my daily data analysis, and I
>>> think such a function could be useful to others . Thanks a lot.
>>>
>>> Regards,
>>> Jianfeng
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 2012年2月18日 15:39, Mic wrote:
>>>
>>>> would be great! Maybe you could submit it to matplotlib's github.
>>>>
>>>> On Sat, Dec 31, 2011 at 2:23 AM, fdu...@gm...<javascript:_e({}, 'cvml', 'fdu...@gm...');>
>>>> <fdu...@gm...<javascript:_e({}, 'cvml',
>>>> 'fdu...@gm...');>>wrote:
>>>>
>> Dear all,
>>>>> I couldn't find a function to plot venn diagram with python, so I
>>>>> written one for my daily use (with a lot inspirations from the internet
>>>>> and R). Hope it could be of any help to someone else, so I put it on
>>>>> github. The path to it is
>>>>> https://github.com/icetime/**pyinfor/blob/master/venn.py<https://github.com/icetime/pyinfor/blob/master/venn.py>.
>>>>>
>>>>> I'm wondering if there is any chance that the function be included in
>>>>> matplotlib. I think matplotlib need a function for venn diagram.
>>>>>
>>>>> Also, could someone kindly help to review the code, so I can make it
>>>>> better?
>>>>>
>>>>> Any suggestions or comments will be greatly appreciated. Thanks a lot.
>>>>>
>>>>> Best Regards,
>>>>> Jianfeng
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ------------------
>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a
>>>>> complex
>>>>> infrastructure or vast IT resources to deliver seamless, secure access
>>>>> to
>>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>>> desktops for less than the cost of PCs and save 60% on VDI
>>>>> infrastructure
>>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-**VDIinabox<http://p.sf.net/sfu/Citrix-VDIinabox>
>>>>> ______________________________**_________________
>>>>> Matplotlib-users mailing list
>>>>> Matplotlib-users@lists.**sourceforge.net<javascript:_e({}, 'cvml',
>>>>> 'Mat...@li...');>
>>>>> https://lists.sourceforge.net/**lists/listinfo/matplotlib-**users<https://lists.sourceforge.net/lists/listinfo/matplotlib-users>
>>>>
From: Sean L. <ody...@gm...> - 2012年02月25日 03:10:29
Hello all,
I'm using matplotlib 1.0.1 with python 2.7.2 (also 2.6.7) on Mac OSX 10.6.8 installed via fink. I'm not sure at what point using pdf output using Agg stopped working. I can still use eps output, so I'm not sure what is going wrong. Here is the error I get:
 File "./PlotMagSeps.py", line 211, in <module>
 plt.savefig(ofname, format=ofmt )
 File "/sw/lib/python2.7/site-packages/matplotlib/pyplot.py", line 363, in savefig
 return fig.savefig(*args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/figure.py", line 1084, in savefig
 self.canvas.print_figure(*args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 1923, in print_figure
 **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/backend_bases.py", line 1733, in print_pdf
 return pdf.print_pdf(*args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", line 2156, in print_pdf
 self.figure.draw(renderer)
 File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/figure.py", line 798, in draw
 func(*args)
 File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/axes.py", line 1946, in draw
 a.draw(renderer)
 File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/axis.py", line 1017, in draw
 tick.draw(renderer)
 File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/axis.py", line 234, in draw
 self.label1.draw(renderer)
 File "/sw/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
 draw(artist, renderer, *args, **kwargs)
 File "/sw/lib/python2.7/site-packages/matplotlib/text.py", line 571, in draw
 self._fontproperties, angle)
 File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", line 1549, in draw_tex
 psfont = self.tex_font_mapping(dvifont.texname)
 File "/sw/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py", line 1365, in tex_font_mapping
 dviread.PsfontsMap(dviread.find_tex_file('pdftex.map'))
 File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 668, in __init__
 self._parse(file)
 File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 701, in _parse
 self._register(words)
 File "/sw/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in _register
 assert encoding is None
AssertionError
Do I perhaps need to rebuild matplotlib because of a LaTeX update?
Thanks,
Sean Lake

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