
matplotlib: python plotting — Matplotlib 1.2.1 documentation untitled Here is a collection of software, libraries or recipes that I wrote for my own purposes and that you might find useful as well. Unless stated otherwise, permission is granted to copy, distribute and/or modify these software under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Simulation Distributed Asynchronous Numerical & Adaptive computing DANA is a python framework for distributed, asynchronous, numerical and adaptive computing. The computational paradigm supporting the dana framework is grounded on the notion of a unit that is a essentially a set of arbitrary values that can vary along time under the influence of other units and learning. Neural field with finite propagation speed Dynamic Self-Organization Maps In collaboration with Yann Boniface, we designed a variation of the self-organising map where the time-dependency learning function has been replaced. Visualization
matplotlib - Python city shapefiles Apprendre à programmer avec Python/Utilisation de fenêtres et de graphismes Un livre de Wikilivres. Jusqu'à présent, nous avons utilisé Python exclusivement « en mode texte ». Nous avons procédé ainsi parce qu'il nous fallait absolument d'abord dégager un certain nombre de concepts élémentaires ainsi que la structure de base du langage, avant d'envisager des expériences impliquant des objets informatiques plus élaborés (fenêtres, images, sons, etc.). Nous pouvons à présent nous permettre une petite incursion dans le vaste domaine des interfaces graphiques, mais ce ne sera qu'un premier amuse-gueule : il nous reste en effet encore bien des choses fondamentales à apprendre, et pour nombre d'entre elles l'approche textuelle reste la plus abordable. Interfaces graphiques (GUI)[modifier | modifier le wikicode] Si vous ne le saviez pas encore, apprenez dès à présent que le domaine des interfaces graphiques (ou GUI : Graphical User Interface) est extrêmement complexe. Premiers pas avec Tkinter[modifier | modifier le wikicode]
python - shapefile and matplotlib: plot polygon collection of shapefile coordinates color example code: colormaps_reference.py — Matplotlib 1.3.0 documentation (Source code) """Reference for colormaps included with Matplotlib. This reference example shows all colormaps included with Matplotlib. Note thatany colormap listed here can be reversed by appending "_r" (e.g., "pink_r").These colormaps are divided into the following categories: Sequential: These colormaps are approximately monochromatic colormaps varying smoothly between two color tones---usually from low saturation (e.g. white) to high saturation (e.g. a bright blue). Sequential colormaps are ideal for representing most scientific data since they show a clear progression from low-to-high values. Diverging: These colormaps have a median value (usually light in color) and vary smoothly to two different color tones at high and low values. Keywords: python, matplotlib, pylab, example, codex (see Search examples)
python - Possible to make labels appear when hovering over a point in matplotlib pylab_examples example code: hyperlinks.py — Matplotlib 1.3.0 documentation Navigation This Page Show Source Quick search Enter search terms or a module, class or function name. pylab_examples example code: hyperlinks.py¶ [source code] #! Keywords: python, matplotlib, pylab, example, codex (see Search examples) © Copyright 2002 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the matplotlib development team; 2012 - 2013 The matplotlib development team.
Minesweeper in Matplotlib Lately I've been playing around with interactivity in matplotlib. A couple weeks ago, I discussed briefly how to use event callbacks to implement simple 3D visualization and later used this as a base for creating a working 3D Rubik's cube entirely in matplotlib. Today I have a different goal: re-create minesweeper, that ubiquitous single-player puzzle game that most of us will admit to having binged on at least once or twice in their lives. In minesweeper, the goal is to discover and avoid hidden mines within a gridded minefield, and the process takes some logic and quick thinking. To implement this in matplotlib, at its most stripped-down level, simply requires us to register mouse clicks on the plot window, and to have the window respond in the appropriate way. Event Callbacks Matplotlib contains several built-in event callbacks. As a simple example, here we'll create a polygon and a function which is called each time the axis is clicked. The result will look something like this: Enjoy!
python - Using multiple colors in matplotlib plot