SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(5)
2
(2)
3
(4)
4
5
6
(4)
7
(6)
8
(7)
9
(2)
10
(8)
11
(5)
12
(3)
13
(1)
14
15
(11)
16
(10)
17
(3)
18
(5)
19
(6)
20
(2)
21
(2)
22
(8)
23
24
(2)
25
(16)
26
(37)
27
(15)
28
(1)





Showing 6 results of 6

From: Darren D. <dsd...@gm...> - 2011年02月19日 18:43:17
On Sat, Feb 19, 2011 at 1:03 PM, Jarrod Millman <mi...@be...> wrote:
> On Fri, Feb 18, 2011 at 8:55 PM, Darren Dale wrote:
>> * Jarrod offered to contribute to the docs to describe the recommended
>> workflow.
>
> I did a first pass at changing the documentation from describing svn
> to git (including adding gitwash) and generated a pull request:
> https://github.com/matplotlib/matplotlib/pull/3
Lets continue discussion at the pull request.
From: Jarrod M. <mi...@be...> - 2011年02月19日 18:04:19
On Fri, Feb 18, 2011 at 8:55 PM, Darren Dale wrote:
> * Jarrod offered to contribute to the docs to describe the recommended
> workflow.
I did a first pass at changing the documentation from describing svn
to git (including adding gitwash) and generated a pull request:
 https://github.com/matplotlib/matplotlib/pull/3
Best,
Jarrod
From: Darren D. <dsd...@gm...> - 2011年02月19日 04:55:38
On Fri, Feb 18, 2011 at 4:53 PM, John Hunter <jd...@gm...> wrote:
> I have removed everyone's commit access to the mpl svn server in
> advance of the github migration, which is underway. Darren will reply
> when github is live.
>
> svn is dead, long live github!
I just pushed the repositories up to github.com/matplotlib .
A few notes:
* Jarrod offered to contribute to the docs to describe the recommended
workflow. For the impatient:
 - Visit https://github.com/matplotlib/matplotlib and hit the "fork" button
 - clone the resulting repository, eg "git clone
gi...@gi...:username/matplotlib.git"
 - make a new branch (git checkout -b new_feature) and hack away
 - don't merge upstream changes into your feature branch (it makes
the history graph look ugly)
 - when you are ready to have your changes merged upstream, push your
branch to your own repository at github
 - switch to that branch in your github profile, and select the "pull
request" button. This starts the code review process, which also gives
others a chance to inspect the git history graph before it gets merged
into the official mpl repo.
* python-3 support should happen in the matploltib-py3 repo, the
master branch in that repository contains Michael's changes from the
py3k svn branch, but rebased on top of the more recent changes to the
master branch in the main matplotlib repo.
Darren
From: Darren D. <dsd...@gm...> - 2011年02月19日 03:45:40
On Fri, Feb 18, 2011 at 8:16 PM, Jarrod Millman <mi...@be...> wrote:
> On Fri, Feb 18, 2011 at 1:53 PM, John Hunter wrote:
>> I have removed everyone's commit access to the mpl svn server in
>> advance of the github migration, which is underway. Darren will reply
>> when github is live.
>
> Excellent! I am glad to see that all the core scipy-related projects
> will soon be on github (scipy will move to github as soon as the 0.9
> release is finalized).
>
> I am sure you know about this; but just as a reminder, Matthew and
> Fernando made a set of generic instruction for using git/github:
> https://github.com/matthew-brett/gitwash
> The idea being that all the core projects share a standard set of
> procedures for using git/github and adopting similar workflow
> policies. So far NumPy, IPython, and NIPY all use these instructions:
>
> https://github.com/numpy/numpy/tree/master/doc/source/dev/gitwash
> https://github.com/ipython/ipython/tree/master/docs/source/development/gitwash
> https://github.com/nipy/nipy/tree/master/doc/devel/guidelines/gitwash
>
> If you want I am happy to take care of adding gitwash to the
> matplotlib docs as soon as the move to git/github is done (and
> generating a pull request).
Jarrod, that would be greatly appreciated.
From: Jarrod M. <mi...@be...> - 2011年02月19日 01:17:46
On Fri, Feb 18, 2011 at 1:53 PM, John Hunter wrote:
> I have removed everyone's commit access to the mpl svn server in
> advance of the github migration, which is underway. Darren will reply
> when github is live.
Excellent! I am glad to see that all the core scipy-related projects
will soon be on github (scipy will move to github as soon as the 0.9
release is finalized).
I am sure you know about this; but just as a reminder, Matthew and
Fernando made a set of generic instruction for using git/github:
 https://github.com/matthew-brett/gitwash
The idea being that all the core projects share a standard set of
procedures for using git/github and adopting similar workflow
policies. So far NumPy, IPython, and NIPY all use these instructions:
 https://github.com/numpy/numpy/tree/master/doc/source/dev/gitwash
 https://github.com/ipython/ipython/tree/master/docs/source/development/gitwash
 https://github.com/nipy/nipy/tree/master/doc/devel/guidelines/gitwash
If you want I am happy to take care of adding gitwash to the
matplotlib docs as soon as the move to git/github is done (and
generating a pull request).
Best,
Jarrod
From: Nicolas R. <Nic...@in...> - 2011年02月19日 00:15:41
Hi all,
I did not see any voronoi diagram in matplotlib examples so I created a simple one from the available tri.Triangulation function (I hope I did not miss something evident).
Nicolas
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Voronoi diagram from a list of points
# Copyright (C) 2011 Nicolas P. Rougier
#
# Distributed under the terms of the BSD License.
# -----------------------------------------------------------------------------
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
def circumcircle(P1, P2, P3):
 ''' 
 Return center of the circle containing P1, P2 and P3
 If P1, P2 and P3 are colinear, return None
 Adapted from:
 http://local.wasp.uwa.edu.au/~pbourke/geometry/circlefrom3/Circle.cpp
 '''
 delta_a = P2 - P1
 delta_b = P3 - P2
 if np.abs(delta_a[0]) <= 0.000000001 and np.abs(delta_b[1]) <= 0.000000001:
 center_x = 0.5*(P2[0] + P3[0])
 center_y = 0.5*(P1[1] + P2[1])
 else:
 aSlope = delta_a[1]/delta_a[0]
 bSlope = delta_b[1]/delta_b[0]
 if np.abs(aSlope-bSlope) <= 0.000000001:
 return None
 center_x= (aSlope*bSlope*(P1[1] - P3[1]) + bSlope*(P1[0] + P2 [0]) \
 - aSlope*(P2[0]+P3[0]))/(2.*(bSlope-aSlope))
 center_y = -(center_x - (P1[0]+P2[0])/2.)/aSlope + (P1[1]+P2[1])/2.
 return center_x, center_y
def voronoi(X,Y):
 ''' Return line segments describing the voronoi diagram of X and Y '''
 P = np.zeros((X.size+4,2))
 P[:X.size,0], P[:Y.size,1] = X, Y
 # We add four points at (pseudo) "infinity"
 m = max(np.abs(X).max(), np.abs(Y).max())*1e5
 P[X.size:,0] = -m, -m, +m, +m
 P[Y.size:,1] = -m, +m, -m, +m
 D = matplotlib.tri.Triangulation(P[:,0],P[:,1])
 T = D.triangles
 n = T.shape[0]
 C = np.zeros((n,2))
 for i in range(n):
 C[i] = circumcircle(P[T[i,0]],P[T[i,1]],P[T[i,2]])
 X,Y = C[:,0], C[:,1]
 segments = []
 for i in range(n):
 for k in D.neighbors[i]:
 if k != -1:
 segments.append([(X[i],Y[i]), (X[k],Y[k])])
 return segments
# -----------------------------------------------------------------------------
if __name__ == '__main__':
 P = np.random.random((2,256))
 X,Y = P[0],P[1]
 fig = plt.figure(figsize=(10,10))
 axes = plt.subplot(1,1,1)
 plt.scatter(X,Y, s=5)
 segments = voronoi(X,Y)
 lines = matplotlib.collections.LineCollection(segments, color='0.75')
 axes.add_collection(lines)
 plt.axis([0,1,0,1])
 plt.show()

Showing 6 results of 6

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