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





Showing 8 results of 8

From: Bill B. <bi...@ea...> - 2014年03月12日 22:08:41
 i am reading a csv file of stock date with daily data (weekdays) and dates
represented as strings. when i convert dates to datetime format, weekends
and holidays are introduced as nans leaving holes in the plot. web
searches led me to this.
is this still the case? seems like a lot of trouble for such a common
inconvenience.
from mpl documentation
http://matplotlib.org/examples/pylab_examples/date_index_formatter.html
"""
> When plotting daily data, a frequent request is to plot the data
> ignoring skips, eg no extra spaces for weekends. This is particularly
> common in financial time series, when you may have data for M-F and
> not Sat, Sun and you don't want gaps in the x axis. The approach is
> to simply use the integer index for the xdata and a custom tick
> Formatter to get the appropriate date string for a given index.
> """
 this was originally posted to pydata
https://groups.google.com/forum/?fromgroups#!topic/pydata/LiHQqurY440
thanks in advance. Bill
From: Benjamin R. <ben...@ou...> - 2014年03月12日 15:04:48
In your options to mencoder, you are specifying the width/height as:
>>> 'type=png:w=9800:h=600:fps=0.6',
But your PNGs have size of 704x538 pixels. That's why you have black bars
on either side of your animation.
Cheers!
Ben Root
On Wed, Mar 12, 2014 at 7:16 AM, diedro <die...@gm...> wrote:
> sorry for that,
> I supposed that I was not more in the the first mailing list. When I post
> the second one, I realized that I was still in the mailing list
>
> Regarding the post:
> Image Type: png (The PNG image format)
> Width: 704 pixels
> Height: 538 pixels
>
> Thanks a lot
>
> Diego
>
>
>
> On 12 March 2014 12:10, Oliver [via matplotlib] <[hidden email]<http://user/SendEmail.jtp?type=node&node=43047&i=0>
> > wrote:
>
>> Please don't double post. Also, this post is much more informative than
>> the first, it's much clearer now where the problem is, and it is not
>> related to matplotlib at all, but with the options you're passing to
>> *mencoder*.
>>
>> What's the size of your orginal pngs?
>>
>>
>>
>> 2014年03月12日 11:58 GMT+01:00 diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43046&i=0>
>> >:
>>
>>> Dear all,
>>> I have created a video from *.png files. The problem is that my video has
>>> black bands on the left and on the right. I have used the following
>>> commands:
>>>
>>> command = ('mencoder',
>>> 'mf://*.png',
>>> '-mf',
>>> 'type=png:w=9800:h=600:fps=0.6',
>>> '-ovc',
>>> 'lavc',
>>> '-lavcopts',
>>> 'vcodec=mpeg4',
>>> '-oac',
>>> 'copy',
>>> '-o',
>>> 'output.avi')
>>>
>>> How could I create a video without the black bands.
>>>
>>> Thank you all,
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html
>>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/13534_NeoTech
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=1>
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/13534_NeoTech
>> _______________________________________________
>> Matplotlib-users mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=2>
>> 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/video-without-black-bands-tp43045p43046.html
>> To unsubscribe from video without black bands, click here.
>> 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>
>>
>
>
> ------------------------------
> View this message in context: Re: video without black bands<http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43047.html>
>
> Sent from the matplotlib - users mailing list archive<http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html>at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Christophe B. <pro...@gm...> - 2014年03月12日 11:17:59
I forgot to say that being under Mac O,ドル I can use with animate... So I do
not know if i can build an infinite animation. Is it possible ?
2014年03月12日 12:01 GMT+01:00 Christophe Bal <pro...@gm...>:
> Yes I've read it.
>
>
> 1. It proposes to update infos about the figure, this is what I do in
> my update function which only change the color of one random rectangle
> every time that a timer asks to do it.
> 2. Then it is said to use plt.draw(), which is what I do. If I use a
> timer, each draw takes merely 2 seconds for 64**2 fixed initial
> squares instead of being very quick for 16**2 fixed initial squares. It is
> certain that the draw is indeed a redraw.
>
>
>
> 2014年03月12日 11:49 GMT+01:00 Derek <gam...@gm...>:
>
> Did you look at the link; the person updating the plots had the same issue
>> - i.e. he did not know when the data would arrive or how long it would be
>> active for. That sounds like your situation?
>>
>>
>> On 12 March 2014 11:59, Christophe Bal <pro...@gm...> wrote:
>>
>>> I forgot to say that here the use of animations is not good because, I
>>> have no max playing time.
>>>
>>>
>>> 2014年03月12日 10:56 GMT+01:00 Christophe Bal <pro...@gm...>:
>>>
>>> Hello.
>>>>
>>>> First of all, I forgot the link to my post : here it is<http://stackoverflow.com/questions/22320407/matplotlib-update-only-some-parts-of-a-figure>
>>>> .
>>>>
>>>> Yes, for pedagogical reason, I would like to use matplotlib for
>>>> beginner programmers, like me :-), such as to do some 80 old school games.
>>>>
>>>> The problem I met using the draw method is that it takes 2 seconds for
>>>> a figure of 64**2 squares. This is due to the fact that everythin is
>>>> redraw. Here is my update method.
>>>>
>>>> *------------------------------------------------*
>>>> *def update():*
>>>> * global colors, width, height*
>>>>
>>>> * x = randint(0, width - 1)*
>>>> * y = randint(0, height - 1)*
>>>>
>>>> * plotgrid[y][x].set_facecolor(choice(colors))*
>>>>
>>>> * plt.draw()*
>>>>
>>>>
>>>>
>>>> 2014年03月12日 10:44 GMT+01:00 Derek <gam...@gm...>:
>>>>
>>>> Its not really clear what you are trying to achieve (using Matplotlib
>>>>> to play Tetris??); but this have some pointers:
>>>>>
>>>>>
>>>>> http://stackoverflow.com/questions/10944621/dynamically-updating-plot-in-matplotlib
>>>>>
>>>>>
>>>>> On 12 March 2014 11:33, Christophe Bal <pro...@gm...> wrote:
>>>>>
>>>>>> Hello.
>>>>>>
>>>>>> I've poste here a question but no one seems to have an hint to give
>>>>>> so I repeat my question here.
>>>>>>
>>>>>> In the attached Python 3 code, I draw n**2 squares in black and then
>>>>>> I dynamically change in a random way the colors of some squares.
>>>>>>
>>>>>> The problem I met is that at each new random choice, I redraw all the
>>>>>> squares. I know that it is stupid for large number of squares.
>>>>>>
>>>>>> Is there a way to change some propriety of one square, and then to
>>>>>> ask to matplotlib to redraw only what have changed ? I'm looking for
>>>>>> something similar to `blint` for animations.
>>>>>>
>>>>>> Christophe BAL
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>>>> their
>>>>>> applications. Written by three acclaimed leaders in the field,
>>>>>> this first edition is now available. Download your free book today!
>>>>>> http://p.sf.net/sfu/13534_NeoTech
>>>>>> _______________________________________________
>>>>>> Matplotlib-users mailing list
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
From: diedro <die...@gm...> - 2014年03月12日 11:16:31
sorry for that,
I supposed that I was not more in the the first mailing list. When I post
the second one, I realized that I was still in the mailing list
Regarding the post:
Image Type: png (The PNG image format)
Width: 704 pixels
Height: 538 pixels
Thanks a lot
Diego
On 12 March 2014 12:10, Oliver [via matplotlib] <
ml-...@n5...> wrote:
> Please don't double post. Also, this post is much more informative than
> the first, it's much clearer now where the problem is, and it is not
> related to matplotlib at all, but with the options you're passing to
> *mencoder*.
>
> What's the size of your orginal pngs?
>
>
>
> 2014年03月12日 11:58 GMT+01:00 diedro <[hidden email]<http://user/SendEmail.jtp?type=node&node=43046&i=0>
> >:
>
>> Dear all,
>> I have created a video from *.png files. The problem is that my video has
>> black bands on the left and on the right. I have used the following
>> commands:
>>
>> command = ('mencoder',
>> 'mf://*.png',
>> '-mf',
>> 'type=png:w=9800:h=600:fps=0.6',
>> '-ovc',
>> 'lavc',
>> '-lavcopts',
>> 'vcodec=mpeg4',
>> '-oac',
>> 'copy',
>> '-o',
>> 'output.avi')
>>
>> How could I create a video without the black bands.
>>
>> Thank you all,
>>
>>
>>
>> --
>> View this message in context:
>> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html
>> Sent from the matplotlib - users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/13534_NeoTech
>> _______________________________________________
>> Matplotlib-users mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=1>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> ------------------------------------------------------------------------------
>
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Matplotlib-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=43046&i=2>
> 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/video-without-black-bands-tp43045p43046.html
> To unsubscribe from video without black bands, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=43045&code=ZGllZ28uYXZlc2FuaUBnbWFpbC5jb218NDMwNDV8LTEwODQ3ODcyNzI=>
> .
> 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>
>
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045p43047.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Oliver <oli...@gm...> - 2014年03月12日 11:09:30
Please don’t double post. Also, this post is much more informative than the
first, it’s much clearer now where the problem is, and it is not related to
matplotlib at all, but with the options you’re passing to *mencoder*.
What’s the size of your orginal pngs?
2014年03月12日 11:58 GMT+01:00 diedro <die...@gm...>:
> Dear all,
> I have created a video from *.png files. The problem is that my video has
> black bands on the left and on the right. I have used the following
> commands:
>
> command = ('mencoder',
> 'mf://*.png',
> '-mf',
> 'type=png:w=9800:h=600:fps=0.6',
> '-ovc',
> 'lavc',
> '-lavcopts',
> 'vcodec=mpeg4',
> '-oac',
> 'copy',
> '-o',
> 'output.avi')
>
> How could I create a video without the black bands.
>
> Thank you all,
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: diedro <die...@gm...> - 2014年03月12日 10:58:25
Dear all,
I have created a video from *.png files. The problem is that my video has
black bands on the left and on the right. I have used the following
commands:
command = ('mencoder',
 'mf://*.png',
 '-mf',
 'type=png:w=9800:h=600:fps=0.6',
 '-ovc',
 'lavc',
 '-lavcopts',
 'vcodec=mpeg4',
 '-oac',
 'copy',
 '-o',
 'output.avi')
How could I create a video without the black bands.
Thank you all,
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/video-without-black-bands-tp43045.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Christophe B. <pro...@gm...> - 2014年03月12日 09:33:14
Attachments: tetrisDraft.py
Hello.
I've poste here a question but no one seems to have an hint to give so I
repeat my question here.
In the attached Python 3 code, I draw n**2 squares in black and then I
dynamically change in a random way the colors of some squares.
The problem I met is that at each new random choice, I redraw all the
squares. I know that it is stupid for large number of squares.
Is there a way to change some propriety of one square, and then to ask to
matplotlib to redraw only what have changed ? I'm looking for something
similar to `blint` for animations.
Christophe BAL
From: Diego A. <die...@gm...> - 2014年03月12日 08:56:20
dear Matplotlib users,
I have tried to create a video with many *.png files. The problem is that
the videos has black bands on the right and on the left. How Can I create a
video but without black bands?
Thanks a lot
Diego

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