Recherche avancée

Médias (91)

Autres articles (29)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

Sur d’autres sites (7228)

  • How to plot an animated graph

    2 août 2019, par Mukonza Sabastian Simbarashe

    Following along How to Create Animated Graphs in Python when constructing an animated plot then on writing the ffmpeg I get the following error :

    'Requested MovieWriter ({}) not available'.format(name))
    RuntimeError: Requested MovieWriter (ffmpeg) not available

    After getting this error, I initially tried to install ffmpeg using pip by the following method :

    python -m install ffmpeg

    and it seems to have successfully installed ffmpeg, but going back to my code I still get the same error

    Find below my code :

    import numpy as np
    import pandas as pd
    import seaborn as sns
    import matplotlib
    import matplotlib.pyplot as plt
    import matplotlib.animation as animation

    overdoses = pd.read_excel(r'C:\Users\ACER\Desktop\overdose_data_1999-2015.xls',sheet_name='Online',skiprows =6)

    def get_data(table,rownum,title):
       data = pd.DataFrame(table.loc[rownum][2:]).astype(float)
       data.columns = {title}
       return data

    title = 'Heroin Overdoses'
    d = get_data(overdoses,18,title)
    x = np.array(d.index)
    y = np.array(d['Heroin Overdoses'])
    overdose = pd.DataFrame(y,x)
    overdose.columns = {title}
    Writer = animation.writers['ffmpeg']

    Here is the stack trace :

    Traceback (most recent call last):
     File "C:\Python\Python36\lib\site-packages\matplotlib\animation.py", line 161, in __getitem__
       return self.avail[name]
    KeyError: 'ffmpeg'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
     File "", line 1, in <module>
       Writer = animation.writers['ffmpeg']
     File "C:\Python\Python36\lib\site-packages\matplotlib\animation.py", line 164, in __getitem__
       'Requested MovieWriter ({}) not available'.format(name))
    RuntimeError: Requested MovieWriter (ffmpeg) not available
    </module>
  • Révision 24558 : trim() au lieu de jquery.trim()

    11 avril 2020, par bruno@eliaz.fr
  • Révision 19919 : Sauvegarde, retour sur #19835 : lorsqu’une grosse sauvegarde avait lieu, de celle...

    17 septembre 2012, par esj@rezo.net

    Merci à Erational d’avoir essuyé les plâtres.