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
(29) |
3
(19) |
4
(6) |
5
(5) |
|
6
(9) |
7
(9) |
8
(19) |
9
(14) |
10
(19) |
11
(26) |
12
(10) |
|
13
(26) |
14
(22) |
15
(19) |
16
(17) |
17
(16) |
18
(2) |
19
|
|
20
(1) |
21
(1) |
22
(10) |
23
(11) |
24
(17) |
25
(6) |
26
(1) |
|
27
|
28
(9) |
29
(9) |
30
(9) |
|
|
|
|
From: Ben E. <bj...@ai...> - 2011-11-17 22:57:35
|
Hi. I have a plot with numerous time series plotted using pyplot.plot. Between these time series, I fill the regions using pyplot.fill_between. I would like to be able to provide information when users hover over different filled regions. Is there a way to catch mouse motion events for the filled between regions of the plot? Many thanks for any guidance. Cheers, Ben |
|
From: Youngung J. <you...@gm...> - 2011-11-17 21:00:27
|
I've been suffering from installing Scipy, Numpy, and matplotlib on my Mac-Lion system. I've searched through google and attempted a couple of the methods. Some worked fine, some not. In the end I decided to use Enthought Python Distribution. I've found it very easy and working fine. Of course, I'd like to get things going by my own. But it is sometimes too difficult and time-consuming. Youngung On Wed, Nov 16, 2011 at 1:11 PM, Collin Capano <cdc...@sy...> wrote: > Hi, > > I've installed matplotlib on a new computer running OSX Lion 10.7.2 (Xcode > version 4.2). When I open ipython and try to run: > > In [1]: import pylab > In [2]: pylab.figure(); pylab.plot([0,1],[2,2]); pylab.show() > > nothing happens. I can, however, save the plot using pylab.savefig. I am > using matplotlib version 1.1.0, with Python 2.7.2 and ipython version 0.11. > I installed all of these using MacPorts (specifically, the python27, > py27-matplotlib, and py27-ipython ports). > > Any help would be greatly appreciated, as interactive plotting is > important for my work. > > Thanks, > Collin > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Ludwig S. <lud...@gm...> - 2011-11-17 18:43:30
|
Hi Sameer, If you are using the default (system) Python, I found that the only extra dependency you need to install is pkg-config. I used homebrew for this (http://mxcl.github.com/homebrew/ and "brew install pkg-config"). Alternatively, you can install it directly from the source obtained at http://www.freedesktop.org/wiki/Software/pkg-config. Be sure to get the 0.25 release at http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.gz, as 0.26 has an unnecessary and expensive dependence on glib. To install, unpack and follow the instructions from the homebrew formula: (mkdir -p /usr/local if needed) ./configure --disable-debug --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig make install Don't worry about the libpng problem - it is fixed in matplotlib 1.1.0, which is available on PyPI. I can't vouch for pip, but "sudo easy_install matplotlib" did it for me. Regards and please let me know how it went! Ludwig |
|
From: Eric F. <ef...@ha...> - 2011-11-17 17:13:59
|
On 11/15/2011 05:44 AM, astrowilson wrote: > > Hey everyone, > > I'm doing a dissertation where I need to vary the size of the points in a 2D > plot. Now I know that you can change the size of every point by changing the > value of markersize to any integer value you want, but how do you put in an > array so that every point is a specific size? > > Thanks Use scatter. http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_demo2.html Watch out for the way the size is specified: area, not radius. Eric |
|
From: Gökhan S. <gok...@gm...> - 2011-11-17 17:07:01
|
Thanks Jeff and Eric. Both solutions simply works :) -- Gökhan |
|
From: Tony Yu <ts...@gm...> - 2011-11-17 15:02:31
|
On Sun, Nov 13, 2011 at 7:52 AM, asd dasdas <a.l...@go...> wrote: > Hi everyone, > > can someone please help me how to make a plot like this: > http://tutorial.math.lamar.edu/Classes/DE/PhasePlane_files/image002.gif > > The main issue with it is in the (black) trajectories. As far as i know > there is no function in matplotlib to plot trajectories with arrows > pointing in a direction. > > But I think a good workaround is: plotting the trajectories with plot(..) > and use quiver(..) at certain points to get an arrows. > > A minimal example would be: > > import matplotlib.pyplot as plt > import numpy as np > import scipy.integrate as integrate > > if __name__=="__main__": > t = np.linspace(0, 20, 1000) > l = 3 > # some starting points > X0s = [[-3.0, 0], > [-3.0, -1], > [-3.0, -2], > [-2, -3.0], > [-1, -3.0], > [0, -3.0], > [1, -3.0], > [2, -3.0], > [3.0, -2], > [3.0, -1], > [3.0, 0.0], > [3.0, 1], > [3.0, 2], > [2, 3.0], > [1, 3.0], > [0, 3.0], > [-1, 3.0], > [-2, 3.0], > [-3.0, 2], > [-3.0, 1], > [0, 0.01], > [0, -0.01], > [0.01, 0], > [-0.01, 0]] > sattel = lambda x,t=0: [-x[0], x[1]] > plt.axis([-l,l,-l,l]) > > for X0 in X0s: > state = integrate.odeint(sattel, X0, t).T > plt.plot(*state, color="k", linewidth=1) > xs = state[:,::10] > x_ds = np.asarray(sattel(xs)) > M = np.hypot(x_ds[0],x_ds[1]) > plt.quiver(xs[0],xs[1],x_ds[0]/M,x_ds[1]/M, > pivot="mid")#,scale=100, scale_units="width",linewidth=5) > > plt.axis([-l,l,-l,l]) > plt.show() > > That is pretty much what I was looking for except the shafts of the arrows > that I can't get rid off. > You can see what I tried to get this done by uncomment the quiver > parameter. > Doing this, you can see, the shafts are (nearly) gone, but the arrows look > horrible. I wonder if there is anyway to tell quiver(..) to only plot the > heads of the arrow, without the shaft. > > Can you please give me a hint how to do this? > > You can increase both the "headlength" and "headaxislength" parameters. It's admittedly pretty hacky, but I think it'll do what you want. Also, this is related to a previous discussion on streamlines. A couple of users were kind enough to post code in this thread<http://old.nabble.com/Any-update-on-streamline-plot-td30902670.html>. (And there was talk of integrating one or both of these into matplotlib.) I've actually been using a modified version of Tom Flannaghan's code. Tom's code <http://www.atm.damtp.cam.ac.uk/people/tjf37/streamplot.py> uses a FancyArrowPatch to draw the arrow heads, which may be an alternative approach to using quiver. Note that neither streamline function allows you to specify starting points (you specify the streamline density and the algorithms pick their own starting points). Best, -Tony |
|
From: Piotr T. <pi...@ty...> - 2011-11-17 12:59:41
|
Hi guys, Is it possible to create executable file from Python script which uses matplotlib without mpl-data directory? I'm using only AGG backend (generates png file) so I don't need the fonts and images directory. As you know mpl-data size is huge, more than 3MB. I'd like to reduce final size of my app. My environments: - Python 2.7.2, - matplotlib 1.1.0, - cx_Freeze 4.2.3, - Windows XP/Vista/7 (right now). I'm looking forward to your replay, Katharsis -- Piotr Tynecki pi...@ty... |
|
From: Yoshi R. <yo...@ro...> - 2011-11-17 08:54:01
|
following the example [1] i can't get the
colorbar extend colors to show properly.
here is what i did:
import matplotlib.pyplot as plt
import matplotlib.cm as cm
levels = np.linspace(.01,.69,10)
<...>
im = plt.contourf(x, y, z, levels, extend='both', cmap=cm.BuPu)
im.cmap.set_under('yellow')
im.cmap.set_over('cyan')
what am i missing?
thank you, best regards, yoshi
[1] http://matplotlib.sourceforge.net/examples/pylab_examples/contourf_demo.html
PS
if i have something like:
mymap = matplotlib.colors.LinearSegmentedColormap('MyMap', cmdat, 256)
mymap.set_under('yellow')
mymap.set_over('cyan')
also doesn't work ...
|
|
From: Yoshi R. <yo...@ro...> - 2011-11-17 07:37:52
|
+--------------------------- Jae-Joon Lee -----------+ > This seems to be a bug that need to be fixed. > Meanwhile, use "locator" parameter as below. > > cbar = grid.cbar_axes[0].colorbar(im, locator=ticks) that works, thank you! best regards, yoshi |
|
From: Tony Yu <ts...@gm...> - 2011-11-17 04:12:44
|
On Wed, Nov 16, 2011 at 5:35 PM, Jonno <jon...@gm...> wrote:
> I want to:
> 1. Have matplotlib assign the linecolor for a plot
> 2. Read the linecolor with .get_color()
> 3. Create another plot with the linecolor set to a lighter version of
> the previous linecolor.
>
> Ie:
>
> a, = plot(x,y)
> a.get_color() = 'b'
> b, = plot(x,y, color = "#xxxxxx")
>
> Since I'm only using the standard matplotlib assigned colors which
> cycle through b,g,r,c,m,y,k I thought I would just create a mapping
> between each color and a lighter version.
>
> How do I get the hex or RGB string for the base matplotlib colors?
>
There may be an easier way, but in the past I've used a color converter
object
(which seems unnecessarily verbose):
>>> import matplotlib.colors as mcolors
>>> cc = mcolors.ColorConverter()
>>> cc.to_rgb('b')
(0, 0, 1)
>
> Also, if there's a different property I can use to lighten the line
> color without changing the color that would be cool too.
>
If you have a white background (and no overlapping markers/lines), you
could just set the "alpha" argument in the plot command.
Best,
-Tony
|
|
From: Jeff W. <js...@fa...> - 2011-11-17 03:42:55
|
On 11/16/11 6:16 PM, Gökhan Sever wrote: > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import numpy as np > > m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, > llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2) > > m.drawcoastlines(linewidth=0.3) > parallels = np.arange(0.,90,2.) > m.drawparallels(parallels, labels=[1,0,0,0]) > meridians = np.arange(180.,360.,5.) > m.drawmeridians(meridians, labels=[0,0,0,1]) > > plt.show() > > Two other projections "laea" and "tmerc" work fine for this case. > > Any ideas? > > Thanks. > > > -- > Gökhan > Gökhan: The longitudes in your projection definition are negative (-93 to -63), so you need to change meridians = np.arange(180.,360.,5.) to meridians = np.arange(-180.,0.,5.) It works for the other projections, since the values get transformed to projection coordinates anyway. With merc and cyl, there is no transformation for longitudes. -Jeff |
|
From: Eric F. <ef...@ha...> - 2011-11-17 03:00:32
|
On 11/16/2011 03:16 PM, Gökhan Sever wrote: > Hi, > > Using the example code shown below I can't get meridians plotted on the > screen: > > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import numpy as np > > m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, > llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2) > > m.drawcoastlines(linewidth=0.3) > parallels = np.arange(0.,90,2.) > m.drawparallels(parallels, labels=[1,0,0,0]) > meridians = np.arange(180.,360.,5.) It can't handle the wrap; subtract 360 from your meridians, and they will show up. Eric > m.drawmeridians(meridians, labels=[0,0,0,1]) > > plt.show() > > Two other projections "laea" and "tmerc" work fine for this case. > > Any ideas? > > Thanks. > > > -- > Gökhan > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Jae-Joon L. <lee...@gm...> - 2011-11-17 02:07:55
|
This seems to be a bug that need to be fixed. Meanwhile, use "locator" parameter as below. cbar = grid.cbar_axes[0].colorbar(im, locator=ticks) Regards, -JJ On Thu, Nov 17, 2011 at 5:35 AM, Yoshi Rokuko <yo...@ro...> wrote: > does someone knows how to specify ticks for a colorbar > inside axesgrid? the following does not work as expected: > > from mpl_toolkits.axes_grid1 import AxesGrid > ticks = [.01, .25, .5, .75, .99] > grid = AxesGrid() > [...] > grid.cbar_axes[i].colorbar(im, ticks=ticks) > > i'm thankfull for any pointers, > yoshi > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Gökhan S. <gok...@gm...> - 2011-11-17 01:16:14
|
Hi,
Using the example code shown below I can't get meridians plotted on the
screen:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
m = Basemap(projection='merc',lon_0=-79, lat_0=25.5,
llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2)
m.drawcoastlines(linewidth=0.3)
parallels = np.arange(0.,90,2.)
m.drawparallels(parallels, labels=[1,0,0,0])
meridians = np.arange(180.,360.,5.)
m.drawmeridians(meridians, labels=[0,0,0,1])
plt.show()
Two other projections "laea" and "tmerc" work fine for this case.
Any ideas?
Thanks.
--
Gökhan
|
|
From: Gökhan S. <gok...@gm...> - 2011-11-17 01:03:52
|
On Sun, Nov 13, 2011 at 12:40 PM, Gökhan Sever <gok...@gm...>wrote: > Hello groups, > > I have two questions about working with MODIS data. > > 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data > other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have > managed to install that package from its source, it took me many hours to > figure out all the installation quirks. Something simpler to build and > mainly for HDFEOS data?? > > 2-) Another similar question: Has anybody attempted to create true-color > MODIS images (like the ones shown at [ > http://rapidfire.sci.gsfc.nasa.gov/realtime/]) in Python? So far, I have > seen one clear tutorial [ > ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/TrueColor/] to create natural > color images, but uses ms2gt [http://nsidc.org/data/modis/ms2gt/], NDVI > and IDL. Except the reflectance correction via NDVI, ms2gt and IDL parts > seem to be implemented in Python. > > Till now, I have some progress combining GOES imagery with aircraft data. > My next task is to combine MODIS data with aircraft and radar data. I would > be happy to get some guidance and code support if there is any previous > work been done using Python. > > Thanks. > Hello all, Here is my answer to my 2nd question: http://imageshack.us/photo/my-images/713/modistrue1km.png/ Python script is at http://code.google.com/p/ccnworks/source/browse/trunk/modis/true.py This code is based on TrueColor tutorial of Liam Gumley [ ftp://ftp.ssec.wisc.edu/pub/IMAPP/MODIS/TrueColor/] and Peter Kuma's ccplot tool [http://ccplot.org/] Currently it only plots true color images from Aqua or Terra using Level 1B data. For the example image I use the data provided via TrueColor link. Notes: 1-) Using PyNIO to open hdf-eos files, from ccplot using cctk for 2D data interpolation, basemap for map plotting and numpy/scipy for other essentials. 2-) crefl.1km.hdf is reflectance corrected data using NVDI's crefl program. Set-up TrueColor tutorial and you should be able to get these correction applied data by calling its main script or set-up another. 3-) MOD03.hdf is the geolocation data. 4-) No need to run ms2gt or any other swath to grid conversion tools, since the interpolation routine handles this step. 5-) Code is in 100 lines. Unlike TrueColor tutorial it only works for 1KM resolution. HKM and QKM resolution plotting requires additional steps. It takes about 2.5 seconds to get the plot on my screen. Let me know if you have any comments or other suggestions. Thanks. -- Gökhan |
|
From: Jae-Joon L. <lee...@gm...> - 2011-11-17 00:53:47
|
Try something like this.
ax = subplot(111)
LabelsList = ['Prospero', 'Miranda', 'Caliban', 'Ariel']
ax.set_xticks(range(len(LabelsList)))xlabels = ax.set_xticklabels(
LabelsList, rotation=35,
horizontalalignment='right',
fontstyle='italic', fontsize='10')
ticklabels = ax.get_xticklabels()ticklabels[0].set_fontstyle("normal")
Regards,
-JJ
On Wed, Nov 16, 2011 at 11:25 AM, magurling <mag...@gm...> wrote:
> LabelsList = ['Prospero', 'Miranda', 'Caliban', 'Ariel']
>
> xlabels = ax.set_xticklabels( LabelsList, rotation=35,
> horizontalalignment='right', fontstyle='italic', fontsize='10')
>
|