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
(8) |
2
(2) |
3
(11) |
4
(11) |
|
5
(3) |
6
(3) |
7
(8) |
8
(1) |
9
(10) |
10
(16) |
11
(1) |
|
12
(8) |
13
(21) |
14
(13) |
15
(15) |
16
(6) |
17
(12) |
18
(2) |
|
19
(6) |
20
(6) |
21
(5) |
22
(2) |
23
(9) |
24
|
25
|
|
26
(2) |
27
(3) |
28
(2) |
29
(10) |
30
(2) |
31
(4) |
|
|
From: Robert Y. <Rob...@as...> - 2010-12-23 23:01:54
|
Thank you for your fast reply and suggestion. I downloaded the GNU tar ball and looked at it. Unfortunately due to my own limitations, I need a win32 installer. I'll have to bide my time I guess. RDY -----Original Message----- From: Christoph Gohlke [mailto:cg...@uc...] Sent: Thursday, December 23, 2010 2:47 PM To: mat...@li... Subject: Re: [Matplotlib-users] Python 3 On 12/23/2010 1:01 PM, Robert Young wrote: > Hi, I have used Matplotlib extensively now for 2 years with python 2.x. > I recently needed to move to python 3.1 which was greatly facilitated by > numpy and scipy being ported to python 3. I was lucky in that all I have > to change is many print statements. All on a Windows OS. > > But my progress is severely limited by having no port of Matplotlib to > python 3. I am definitely a user so have contributed twice to Matplotlib > development. > > Plea: If the stars align properly, I would be so grateful for a port of > matplotlib to python 3. > > Thanks for hearing me. > Did you try the py3k branch at <http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/> ? It does work for simple plots. -- Christoph ------------------------------------------------------------------------ ------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Christoph G. <cg...@uc...> - 2010-12-23 21:47:04
|
On 12/23/2010 1:01 PM, Robert Young wrote: > Hi, I have used Matplotlib extensively now for 2 years with python 2.x. > I recently needed to move to python 3.1 which was greatly facilitated by > numpy and scipy being ported to python 3. I was lucky in that all I have > to change is many print statements. All on a Windows OS. > > But my progress is severely limited by having no port of Matplotlib to > python 3. I am definitely a user so have contributed twice to Matplotlib > development. > > Plea: If the stars align properly, I would be so grateful for a port of > matplotlib to python 3. > > Thanks for hearing me. > Did you try the py3k branch at <http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/>? It does work for simple plots. -- Christoph |
|
From: Robert Y. <Rob...@as...> - 2010-12-23 21:19:14
|
Hi, I have used Matplotlib extensively now for 2 years with python 2.x. I recently needed to move to python 3.1 which was greatly facilitated by numpy and scipy being ported to python 3. I was lucky in that all I have to change is many print statements. All on a Windows OS. But my progress is severely limited by having no port of Matplotlib to python 3. I am definitely a user so have contributed twice to Matplotlib development. Plea: If the stars align properly, I would be so grateful for a port of matplotlib to python 3. Thanks for hearing me. |
|
From: Pawel J. <pa...@gm...> - 2010-12-23 20:23:16
|
Hey guys,
Thank you so much for your clear answers which have been very helpful!
Pawel
-----Wiadomość oryginalna-----
Od: Paul Ivanov [mailto:piv...@gm...]
Wysłano: Thursday, December 23, 2010 3:03 PM
Do: mat...@li...
DW: Pawel Janowski
Temat: Re: ODP: [Matplotlib-users] starting with pplots
Pawel Janowski, on 2010-12-23 10:09, wrote:
> Hi Pavel,
>
> Thanks for your help. Matplotlib seems to be a really cool tool. Your
> response almost answered my question. What I want is for the 3D plot
> to be 2D. I mean the z-axis can only take on 5 discreet values so I
> don't want to visualize 3 dimensions but just two with the data points
> colored five different colors depending on the z value.
Pawel,
(I'm replying back to the list, so that others may benefit - hello there,
search engine visitors from the future!)
In that case, you can either follow Goya's suggestion - if you only want to
draw points. scatter will actually rescale the color values you give to
whatever colormap you're using - and for your case, with just five z values
in range(1,6), I found a slight tweak to the 'hsv' colormap does the trick.
from numpy.random import rand, randint
import matplotlib.pyplot as plt
x,y = rand(2,100)
z = randint(1,6,100)
plt.scatter(x,y,c=z, vmin=-1, cmap=plt.get_cmap('hsv'))
You can see the built-in colormaps here:
http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.htm
l
and as Goyo showed, it's pretty easy to make a new one.
If you want more control, such as changing the shape of the marker, not just
the color, or if there's some order to your points that you want to also see
(for example, draw lines between points of the same z value) - you can use a
boolean mask.
from numpy.random import rand, randint
import matplotlib.pyplot as plt
x,y = rand(2,100)
z = randint(1,6,100)
for i,c,m in zip(range(1,6),'rgbmk', 'odp*s'):
mask = z==i
plt.plot(x[mask],y[mask], color=c, marker=m)
hope that helps,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
|
|
From: Paul I. <piv...@gm...> - 2010-12-23 20:02:47
|
Pawel Janowski, on 2010-12-23 10:09, wrote:
> Hi Pavel,
>
> Thanks for your help. Matplotlib seems to be a really cool tool. Your
> response almost answered my question. What I want is for the 3D plot to be
> 2D. I mean the z-axis can only take on 5 discreet values so I don't want to
> visualize 3 dimensions but just two with the data points colored five
> different colors depending on the z value.
Pawel,
(I'm replying back to the list, so that others may benefit -
hello there, search engine visitors from the future!)
In that case, you can either follow Goya's suggestion - if you
only want to draw points. scatter will actually rescale the color
values you give to whatever colormap you're using - and for your
case, with just five z values in range(1,6), I found a slight
tweak to the 'hsv' colormap does the trick.
from numpy.random import rand, randint
import matplotlib.pyplot as plt
x,y = rand(2,100)
z = randint(1,6,100)
plt.scatter(x,y,c=z, vmin=-1, cmap=plt.get_cmap('hsv'))
You can see the built-in colormaps here:
http://matplotlib.sourceforge.net/examples/pylab_examples/show_colormaps.html
and as Goyo showed, it's pretty easy to make a new one.
If you want more control, such as changing the shape of the
marker, not just the color, or if there's some order to your points
that you want to also see (for example, draw lines between points
of the same z value) - you can use a boolean mask.
from numpy.random import rand, randint
import matplotlib.pyplot as plt
x,y = rand(2,100)
z = randint(1,6,100)
for i,c,m in zip(range(1,6),'rgbmk', 'odp*s'):
mask = z==i
plt.plot(x[mask],y[mask], color=c, marker=m)
hope that helps,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
|
|
From: Paul I. <piv...@gm...> - 2010-12-23 17:48:04
|
Václav Šmilauer, on 2010-12-23 14:51, wrote:
> Hi there,
>
> when I use twinx() to have y1 and y2 axes and set ticklabel_format
> style to 'sci' on the y2 axis, ticks on the y2 are properly numbered,
> but the "1e-5" that is supposed to be atop y2 appears on the top of
> y1 instead. When both y1 and y2 use the exponents, they overwrite
> each other -- a minimal example (result attached in pdf):
>
> import pylab
>
> pylab.plot([0,1e-2,2e-2,3e-2],[1e3,5e3,6.1e3,1e3],'g-')
>
> pylab.ticklabel_format(style='sci',scilimits=(0,0),axis='both') # this is not necessary to show the bug
>
> pylab.twinx()
>
> pylab.plot([1e-2,2e-2,3e-2,4e-2],[2e-5,3e-5,0,-1e-5],'r-')
>
> pylab.ticklabel_format(style='sci',scilimits=(0,0),axis='both') # makes 1e-5 appear on the left instead of on the right
>
> pylab.show()
>
Hi Václav,
thanks for the bug report. As a temporary workaround - use
plt.gca().yaxis.set_offset_position('right')
Committers: the patch attached fixes this problem. I thought that
there might be a similar problem for twiny() - but ax.xaxis does
not appear to have .set_offset_position() method.
> I've had this issue with versions .99, 1.0.0, running on Linux
> (Ubuntu, versions 9.04 through to 10.10).
me too, and I kept forgetting to report it.
> PS. what's wrong with the sf.net bugzilla? I was not able to post the
> issue there --
this I do not know.
best,
--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
|
|
From: Václav Š. <eu...@ar...> - 2010-12-23 14:05:56
|
Hi there, when I use twinx() to have y1 and y2 axes and set ticklabel_format style to 'sci' on the y2 axis, ticks on the y2 are properly numbered, but the "1e-5" that is supposed to be atop y2 appears on the top of y1 instead. When both y1 and y2 use the exponents, they overwrite each other -- a minimal example (result attached in pdf): import pylab pylab.plot([0,1e-2,2e-2,3e-2],[1e3,5e3,6.1e3,1e3],'g-') pylab.ticklabel_format(style='sci',scilimits=(0,0),axis='both') # this is not necessary to show the bug pylab.twinx() pylab.plot([1e-2,2e-2,3e-2,4e-2],[2e-5,3e-5,0,-1e-5],'r-') pylab.ticklabel_format(style='sci',scilimits=(0,0),axis='both') # makes 1e-5 appear on the left instead of on the right pylab.show() I've had this issue with versions .99, 1.0.0, running on Linux (Ubuntu, versions 9.04 through to 10.10). Cheers, Václav PS. what's wrong with the sf.net bugzilla? I was not able to post the issue there -- |
|
From: Paul I. <piv...@gm...> - 2010-12-23 02:27:25
|
Pawel, on 2010-12-18 20:04, wrote: > Hi, > > I am a new user of matplotlib so maybe my question is elementary, but > have not been able to find an answer to my problem in the archive. > > I would like to make a 2D plot of colored points of 3D data (clusters). > My data looks like this: > > 11837.2120 -0.0858 2.0000 > 23975.2120 -0.0672 2.0000 > 37609.2120 -0.0306 2.0000 > 53263.9800 -0.0690 2.0000 > 72106.6760 0.2708 1.0000 > 92674.6760 -0.0129 3.0000 > 116758.676 -0.1245 3.0000 > ... > > So I need to plot the first and second column as points on the x-y axis > and color the points according to the numbers in the third column (which > are integers ranging from 1 to5). > > I'd appreciate any help. I realize something so typical should be > somewhere in the documentation but I was not able to find it. Hi Paul, welcome to matplotlib! So you need to read in those columns somehow (as numpy arrays, or lists), but once you've got that, it's just a matter of initiating a 3d plot, and calling scatter with the three columns. take a look at this example and it's source code: http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html#scatter-plots for your purposes, the code will be something like: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(x,y,z) best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 |
|
From: Goyo <goy...@gm...> - 2010-12-23 02:05:54
|
2010/12/19 Pawel <pa...@gm...>:
> Hi,
>
> I am a new user of matplotlib so maybe my question is elementary, but
> have not been able to find an answer to my problem in the archive.
>
> I would like to make a 2D plot of colored points of 3D data (clusters).
> My data looks like this:
>
> 11837.2120 -0.0858 2.0000
> 23975.2120 -0.0672 2.0000
> 37609.2120 -0.0306 2.0000
> 53263.9800 -0.0690 2.0000
> 72106.6760 0.2708 1.0000
> 92674.6760 -0.0129 3.0000
> 116758.676 -0.1245 3.0000
> ...
>
> So I need to plot the first and second column as points on the x-y axis
> and color the points according to the numbers in the third column (which
> are integers ranging from 1 to5).
>
> I'd appreciate any help. I realize something so typical should be
> somewhere in the documentation but I was not able to find it.
Try this:
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
x, y, z = np.loadtxt('data.txt', unpack=True)
cmap = ListedColormap(['b', 'g', 'r', 'c', 'm'])
plt.scatter(x, y, c=z, cmap=cmap, vmin=1, vmax=5)
plt.show()
You'll need to use a single space as column delimiter in your data
file or deal with more loadtxt arguments.
If your z data were color specifications you could just use
plt.scatter(x, y, c=z) as stated in the scatter docstring. Converting
arbitrary data to color specifications is the non trivial issue here.
You can write your own code to do this or use colormaps.
Goyo
|