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
(2) |
2
(5) |
3
(8) |
4
(6) |
5
(9) |
6
(7) |
|
7
(6) |
8
(10) |
9
(27) |
10
(7) |
11
(22) |
12
(13) |
13
(7) |
|
14
(4) |
15
(12) |
16
(32) |
17
(26) |
18
(14) |
19
(1) |
20
(11) |
|
21
(6) |
22
(11) |
23
(17) |
24
(18) |
25
(28) |
26
(11) |
27
(6) |
|
28
(1) |
29
(10) |
30
(12) |
|
|
|
|
|
From: Christopher B. <c-...@as...> - 2008-09-24 23:39:28
|
Hi List, Attached is a closeup of two legends on a 2-panel figure. The first legend has 10 plots listed, the second has 1. I have set each legend identically: loc='upper right', pad=.3, handlelen=.1, handletextsep=.05. But it seems that while the horizontal padding is the same, the vertical padding is too large in the first legend, and too small in the second. The only difference between the two I am aware of is the number of plots listed (not contained in the axes, but listed in the legends). I'm using version 0.98.3 on windows. Any ideas? -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona State University |
|
From: Anthony F. <ant...@gm...> - 2008-09-24 20:23:25
|
On Wed, Sep 24, 2008 at 8:28 AM, C M <cmp...@gm...> wrote: > On Tue, Sep 23, 2008 at 7:22 PM, Anthony Floyd <ant...@gm...> wrote: >> On Tue, Sep 23, 2008 at 3:28 PM, C M <cmp...@gm...> wrote: [snip] > Thank you for the help. Unfortunately, I used some of your code and still had > the same problem I've been having, which is that it works as long as I > don't move > my frame (which contains the figure canvas)--if I move it to the left, > the leftmost > points on the graph produce a popup that pops up on the far right side of the > screen. Hi Che, It seems that the line in your code (line 156): popup.Position(mouseLocation, wx.Size(500,500)) is causing the problem. The second argument in this call is an offset, in pixels, of where you want your your pop-up to appear, with respect to the first argument. So, if you change this to: popup.Position(mouseLocation, (10,10)) then the pop-up behaves as expected, but offset 10 pixels to the right and 10 pixels down from the pick location. See: http://docs.wxwidgets.org/trunk/classwx_popup_window.html HTH, A> |
|
From: Haibao T. <tan...@gm...> - 2008-09-24 19:16:26
|
Hi all,
I have some broken scripts recently due to the upgrade from 0.91 to 0.98,
most of them related to the imshow function.
For example, when I run the following script,
--------------------------------------------------------
from matplotlib.cm import *
from pylab import *
figure(1, (8, 10))
root = axes([0, 0, 1, 1])
xstart, ystart = .03, .97
rows, cols = 30, 2 # to accomodate 58 instances
row_interval, col_interval = .94/rows, .94/cols
cm_keys = [x for x in sorted(datad.keys()) if not x.endswith("_r")]
print len(cm_keys)
X = [0, 1]
Y = array([X, X])
j = 1
for k in cm_keys:
imshow(Y, extent=(xstart, xstart+.7*col_interval,
ystart, ystart+.5*row_interval),
cmap=get_cmap(name=k))
root.text(xstart+.75*col_interval, ystart, k, size=9)
xstart += col_interval
if j%2==0:
xstart = .03
ystart -= row_interval
j += 1
root.set_xlim(0, 1)
root.set_ylim(0, 1)
root.set_axis_off()
savefig("cm_instances.pdf")
----------------------------------------------
Different versions gave me different results, with only the old version
appears to be correct.
In addition, when I wish to imshow a JPG image through PIL, the newer
version gave me very low resolution. Can someone duplicate my observation? I
appreciate any solution, thanks.
|
|
From: charles r. <cha...@gm...> - 2008-09-24 18:33:05
|
Tricky! That is exactly what I was looking for. Thanks John. Charles ========== Out of damp and gloomy days, out of solitude, out of loveless words directed at us, conclusions grow up in us like fungus: one morning they are there, we know not how, and they gaze upon us, morose and gray. Woe to the thinker who is not the gardener but only the soil of the plants that grow in him. - Friedrich Nietzsche On Wed, Sep 24, 2008 at 12:29 PM, John Hunter <jd...@gm...> wrote: > On Wed, Sep 24, 2008 at 1:21 PM, charles reid <cha...@gm...> > wrote: > > Hi - > > > > I haven't had any luck finding any examples of putting a subplot within a > > subplot in the documentation/website/example files. Is this possible? > For > > example, I would want something like this: > > __________________ > > | | | > > | | | > > | |_______| > > | | | > > | | | > > | _________|_______| > > > > Where (in the particular case above) subplot(1,2,1) itself contains a > > subplot(2,1,1) and subplot(2,1,2). Hopefully that looks ok/makes sense > to > > everyone. > > You can do > > subplot(121) > subplot(222) > subplot(224) > > Is this what you are after -- if not, see the axes_demo.py for finer > control > > http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.py > > JDH > |
|
From: John H. <jd...@gm...> - 2008-09-24 18:29:34
|
On Wed, Sep 24, 2008 at 1:21 PM, charles reid <cha...@gm...> wrote: > Hi - > > I haven't had any luck finding any examples of putting a subplot within a > subplot in the documentation/website/example files. Is this possible? For > example, I would want something like this: > __________________ > | | | > | | | > | |_______| > | | | > | | | > | _________|_______| > > Where (in the particular case above) subplot(1,2,1) itself contains a > subplot(2,1,1) and subplot(2,1,2). Hopefully that looks ok/makes sense to > everyone. You can do subplot(121) subplot(222) subplot(224) Is this what you are after -- if not, see the axes_demo.py for finer control http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.py JDH |
|
From: charles r. <cha...@gm...> - 2008-09-24 18:21:22
|
Hi - I haven't had any luck finding any examples of putting a subplot within a subplot in the documentation/website/example files. Is this possible? For example, I would want something like this: __________________ | | | | | | | |_______| | | | | | | | _________|_______| Where (in the particular case above) subplot(1,2,1) itself contains a subplot(2,1,1) and subplot(2,1,2). Hopefully that looks ok/makes sense to everyone. Thanks, Charles ========== The 2nd Law of Thermodynamics... If you think things are a mess now, JUST WAIT! |
|
From: Saju P. <saj...@gm...> - 2008-09-24 14:41:52
|
On 24-Sep-08, at 6:15 PM, John Hunter wrote: > On Wed, Sep 24, 2008 at 6:05 AM, Saju Pillai <saj...@gm...> > wrote: >> Hi, >> >> Just started playing with matplotlib and it is very impressive. >> >> I have a question on controlling the x-axis values being plotted. >> Say I am recording a stock price every hour from say 10am to 3pm on a >> daily basis. I am trying to plot a multi-day chart such that after >> the >> data for 3pm on Day 1 is plotted, the next data should be for 10am on >> Day 2. Currently matplotlib is automatically adding all the hours >> from >> 3pm on Day 1 till 10pm on Day 2 even if I am only supplying the x- >> axis >> values that I want to be plotted. > > Take a look at the date_index_formatter.py example -- this uses daily > data and skips the weekends but it is conceptually similar to your > problem > > http://matplotlib.sourceforge.net/examples/pylab_examples/date_index_formatter.py This worked perfectly. Thanks. -srp > > > The approach is to plot evently spaced indices for the xaxis, and then > use your date vector as a lookup table for formatting the x > locations. The same approach could be used for a date index locator, > to put the ticks where you want them. See the chapter on tick > locating and formatting in the user's guide for background, and let me > know if you get stuck. |
|
From: Saber M. <ms...@go...> - 2008-09-24 13:51:23
|
> locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX Yes I think there is missing package, so i will look for that ... Mike, thank you for your help and make a good work in your bubble ;) Saber |
|
From: Michael D. <md...@st...> - 2008-09-24 13:02:12
|
de_DE@euro is perfectly valid and works fine with Python 2.5.2 on my machine, so it would appear it's not a Python shortcoming. I suspect this is related to these lines: Saber Mbarek wrote: > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_MESSAGES to default locale: No such file or > directory > locale: Cannot set LC_ALL to default locale: No such file or directory This (usually) indicates that the definitions for the locale you've specified are not installed. If you do "locale -a" is de_DE@euro listed? If not, it's possible you're missing a package. But this is looking like a system configuration error, not a matplotlib one. You may also get some clues from this Python bug: http://bugs.python.org/issue1443504 Hope that at least helps. Sorry I can't suggest anything else -- I've never actually seen this myself, but then I work in a little English-speaking, U.S.-centric ignorance bubble ;) Mike > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: John H. <jd...@gm...> - 2008-09-24 12:45:37
|
On Wed, Sep 24, 2008 at 6:05 AM, Saju Pillai <saj...@gm...> wrote: > Hi, > > Just started playing with matplotlib and it is very impressive. > > I have a question on controlling the x-axis values being plotted. > Say I am recording a stock price every hour from say 10am to 3pm on a > daily basis. I am trying to plot a multi-day chart such that after the > data for 3pm on Day 1 is plotted, the next data should be for 10am on > Day 2. Currently matplotlib is automatically adding all the hours from > 3pm on Day 1 till 10pm on Day 2 even if I am only supplying the x-axis > values that I want to be plotted. Take a look at the date_index_formatter.py example -- this uses daily data and skips the weekends but it is conceptually similar to your problem http://matplotlib.sourceforge.net/examples/pylab_examples/date_index_formatter.py The approach is to plot evently spaced indices for the xaxis, and then use your date vector as a lookup table for formatting the x locations. The same approach could be used for a date index locator, to put the ticks where you want them. See the chapter on tick locating and formatting in the user's guide for background, and let me know if you get stuck. |
|
From: Saber M. <ms...@go...> - 2008-09-24 12:26:01
|
hier is the output of locale: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=de_DE@euro LANGUAGE=de_DE:de:en_GB:en LC_CTYPE="de_DE@euro" LC_NUMERIC="de_DE@euro" LC_TIME="de_DE@euro" LC_COLLATE="de_DE@euro" LC_MONETARY="de_DE@euro" LC_MESSAGES="de_DE@euro" LC_PAPER="de_DE@euro" LC_NAME="de_DE@euro" LC_ADDRESS="de_DE@euro" LC_TELEPHONE="de_DE@euro" LC_MEASUREMENT="de_DE@euro" LC_IDENTIFICATION="de_DE@euro" LC_ALL= Saber |
|
From: Michael D. <md...@st...> - 2008-09-24 12:19:41
|
It seems you have your locale set to something that Python doesn't support. Can you send the output of "locale" to this list? For example, I have: > locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Saber Mbarek wrote: > Hi, > > I installed scipy a few days ago on my laptop (with os linux debian), > but while importing the pylab module from the python-matplotlib > (version 0.98.1-1) I got the following error: > > ------------------------------------------------------------------------------------------------------------- > Python 2.5.2 (r252:60911, Aug 8 2008, 09:22:44) > [GCC 4.3.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import scipy > >>> import numpy > >>> import pylab > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module> > from matplotlib.pylab import * > File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line > 128, in <module> > from rcsetup import defaultParams, validate_backend, validate_toolbar > File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line > 18, in <module> > from matplotlib.colors import is_color_like > File "/usr/lib/python2.5/site-packages/matplotlib/colors.py", line > 39, in <module> > import matplotlib.cbook as cbook > File "/usr/lib/python2.5/site-packages/matplotlib/cbook.py", line > 14, in <module> > preferredencoding = locale.getpreferredencoding() > File "/usr/lib/python2.5/locale.py", line 514, in getpreferredencoding > setlocale(LC_CTYPE, "") > File "/usr/lib/python2.5/locale.py", line 478, in setlocale > return _setlocale(category, locale) > locale.Error: unsupported locale setting > ------------------------------------------------------------------------------------------------------------ > > Could you please help me ? > > Best regards, > Saber > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
|
From: Saber M. <ms...@go...> - 2008-09-24 12:11:45
|
Hi,
I installed scipy a few days ago on my laptop (with os linux debian), but
while importing the pylab module from the python-matplotlib (version
0.98.1-1) I got the following error:
-------------------------------------------------------------------------------------------------------------
Python 2.5.2 (r252:60911, Aug 8 2008, 09:22:44)
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> import numpy
>>> import pylab
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 128,
in <module>
from rcsetup import defaultParams, validate_backend, validate_toolbar
File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 18, in
<module>
from matplotlib.colors import is_color_like
File "/usr/lib/python2.5/site-packages/matplotlib/colors.py", line 39, in
<module>
import matplotlib.cbook as cbook
File "/usr/lib/python2.5/site-packages/matplotlib/cbook.py", line 14, in
<module>
preferredencoding = locale.getpreferredencoding()
File "/usr/lib/python2.5/locale.py", line 514, in getpreferredencoding
setlocale(LC_CTYPE, "")
File "/usr/lib/python2.5/locale.py", line 478, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
------------------------------------------------------------------------------------------------------------
Could you please help me ?
Best regards,
Saber
|
|
From: Saju P. <saj...@gm...> - 2008-09-24 11:06:05
|
Hi, Just started playing with matplotlib and it is very impressive. I have a question on controlling the x-axis values being plotted. Say I am recording a stock price every hour from say 10am to 3pm on a daily basis. I am trying to plot a multi-day chart such that after the data for 3pm on Day 1 is plotted, the next data should be for 10am on Day 2. Currently matplotlib is automatically adding all the hours from 3pm on Day 1 till 10pm on Day 2 even if I am only supplying the x-axis values that I want to be plotted. I am doing something like .. dates = [2008-9-18 10:00, 2008-9-18 11:00, ...., 2008-9-18 15:00, 2008-9-19 10:00, 2008-9-19 11:00,...] # all dates are datetime objs prices = [1.0, 1.1, ...........] plot_date(dates, prices) # plot(dates, prices) -- this doesn't work either Is it possible to force matplotlib to plot only the data points that I supply instead of it extrapolating the date data. -srp |
|
From: Thomas G. <hv...@tb...> - 2008-09-24 08:53:50
|
Hi, the FAQ solution to "How do I make vertical xticklabels?" does not work: Python 2.5.1 (r251:54863, Jan 10 2008, 18:00:49) [GCC 4.2.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pylab import * >>> plot([1,2,3,4], [1,4,9,16]) [<matplotlib.lines.Line2D object at 0x1bcc250>] >>> set(gca(), 'xticks', [1,2,3,4]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: set expected at most 1 arguments, got 3 Since Python 2.4 set() is a built-in (http://docs.python.org/lib/types-set.html). The method set() is used in several places in the FAQ. Please update it. Here are some other things: - Some code examples are indented with spaces. It would be better if there were not. This would make copy+paste to the python shell easier. - The FAQ says it can be used with mod_python. That's true, but it would be better to use mod_wsgi since it is faster, easier to debug, more flexible, ... Please CC to me, I am not on the list. Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de |
|
From: De P. A. <and...@ul...> - 2008-09-24 08:35:24
|
Jeff, Thanks for your help, I now know that it's a missing data problem However, I need to make, for example, orthographic maps of ozone centered on the polar region, and there is no possibility to cut the unaesthetic regions of the plot in that case I'll try to plot a data grid containing the weaker value for all points before the actual data I'm plotting, to see if I can set the background color and avoid these gaps If you know of any method to do that instead of plotting a whole grid before anything else, please tell I have to thank you for your help and I wonder how you find the time required to work on that mailing list Have a nice day, Antoine De Pauw Collaborateur de recherches, Informatique - Research collaborator, IT Laboratoire de chimie quantique et photophysique - Quantum chemistry and photophysics laboratory Université Libre de Bruxelles - ULB -----Original Message----- From: Jeff Whitaker [mailto:js...@fa...] Sent: mardi 23 septembre 2008 20:38 To: De Pauw Antoine Cc: 'John Hunter'; 'Matplotlib Users' Subject: Re: [Matplotlib-users] Information request De Pauw Antoine wrote: > Jeff, > > I still don't know how to either remove this artifact or fill my arrays with > values to remove empty regions, and I'll make a last attempt to resolve it > > I uploaded a data file here: http://scqp.ulb.ac.be/20080821.b56 > > The actual code snippet is here: > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > I hope you'll be able to reproduce it, I set the cmap to winter for you to > see the gap... setting it to hot will make the grayish border visible in > high resolution by zooming it... I think the border (not the empty zone) > could be an artifact with the hot colormap > > > Antoine De Pauw > Collaborateur de recherches, Informatique - Research collaborator, IT > Laboratoire de chimie quantique et photophysique - Quantum chemistry and > photophysics laboratory > Université Libre de Bruxelles - ULB > > Antoine: Here is a version that just plots the pixels directly, without interpolating to a grid. I personally like this better, since you can easily see where you actually have data. HTH, -Jeff from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import matplotlib.mlab as mlab import numpy as np import os fileName = '20080821.b56' titre='SO2' legende='Delta Brightness Temperature (K)' nbreligne=long(os.stat(fileName)[6])/(8*int(fileName[-2:])) rawfile=np.fromfile(open(fileName,'rb'),'<d',-1) Lat=rawfile[0:nbreligne] Lon=rawfile[nbreligne:nbreligne*2] Val=rawfile[nbreligne*21:nbreligne*22] map=Basemap(projection='mill',llcrnrlat=-90,urcrnrlat=90,\ urcrnrlon=180,llcrnrlon=-180,resolution='l') x, y = map(Lon, Lat) plt.scatter(x,y,s=25,c=Val,marker='s',edgecolor="None",cmap=plt.cm.winter,vm in=-5,vmax=-1.2, alpha=0.5) cb=plt.colorbar(shrink=0.6) cb.ax.set_ylabel(legende,fontsize=11) for t in cb.ax.get_yticklabels(): t.set_fontsize(7) meridians = np.arange(-180,180,60) parallels = np.arange(-90,90,30) map.drawparallels(parallels,labels=[1,0,0,0],fontsize=7,linewidth=0.25) map.drawmeridians(meridians,labels=[0,0,0,1],fontsize=7,linewidth=0.25) map.drawcoastlines(0.25,antialiased=1) plt.title(titre) plt.show() > -----Original Message----- > From: Jeff Whitaker [mailto:js...@fa...] > Sent: lundi 22 septembre 2008 13:59 > To: De Pauw Antoine > Cc: 'John Hunter'; 'Matplotlib Users' > Subject: Re: [Matplotlib-users] Information request > > De Pauw Antoine wrote: > >> Jeff, >> >> I included here a figure where you'll see the border problem for imshow in >> my case >> >> http://img217.imageshack.us/img217/5240/testfigzp3.png >> >> The border wraps at -180 and 180 to form the white line >> >> PS: it is atmospheric ice and not SO2, I just omitted to change the title >> > ^^ > >> Antoine De Pauw >> Collaborateur de recherches, Informatique - Research collaborator, IT >> Laboratoire de chimie quantique et photophysique - Quantum chemistry and >> photophysics laboratory >> Université Libre de Bruxelles - ULB >> >> > > Antoine: I hate to keep repeating myself - but we can't do much if you > don't provide a self-contained script, that I can run, which reproduces > the problem. My guess is that the line along the dateline, and the > point at the South Pole are missing values (which griddata set to > missing because they are outside the extent of the data) - but that's > just a guess until I can reproduce it. > > -Jeff > >> -----Original Message----- >> From: Antoine De Pauw [mailto:and...@ul...] >> Sent: jeudi 18 septembre 2008 17:23 >> To: Jeff Whitaker; and...@ul... >> Cc: 'John Hunter'; 'Matplotlib Users' >> Subject: re:Re: [Matplotlib-users] Information request >> >> Jeff, >> >> No the example doesn't show that line >> >> If I reduce the amount of data, the border will be on every side of the >> > plot > >> I'll show you an orthographic plot with no maskinf tomorrow and you will >> > see > >> the problem easily, it wraps in a white line along the 0° meridian and a >> white circle in the pole >> >> I think it's the imshow layer that is not totally transparent on the map >> background.. I tried every trick I could for example to put some >> > zero-valued > >> points on each corner to make imshow interpolate correctly the sides, but >> that doesn't make any difference >> >> >> >>> De Pauw Antoine wrote: >>> >>> >>>> Jeff, >>>> >>>> Yes they disappear, and they fluctuate with the interpolation method >>>> > used > >>>> For example, nearest interpolation don't show the line >>>> >>>> Also, if I reduce the grid resolution, the line is thicker, and if I use >>>> >>>> >> a >> >> >>>> masked array to get rid of undesired values, the border shows really >>>> strongly >>>> >>>> Here's an example everyone will see: >>>> >>>> http://img225.imageshack.us/img225/2671/testfigep2.png >>>> >>>> (everything except the clouds is noise) >>>> >>>> Antoine De Pauw >>>> Collaborateur de recherches, Informatique - Research collaborator, IT >>>> Laboratoire de chimie quantique et photophysique - Quantum chemistry and >>>> photophysics laboratory >>>> Université Libre de Bruxelles - ULB >>>> >>>> >>>> >>> Antoine: Sorry to seem dense, but I don't see anything wrong with that >>> plot. I see a white border along the north and south pole, but I >>> intrepret that to be missing values. However, my eyes are notoriously >>> bad. I'd like to be to run a script that generates the artifacts >>> myself, so I can zoom in and see the problem myself. Does the >>> griddata_demo.py script show the same problem for you? >>> >>> -Jeff >>> >>> >>>> -----Original Message----- >>>> From: Jeff Whitaker [mailto:js...@fa...] >>>> Sent: mercredi 17 septembre 2008 19:05 >>>> To: John Hunter >>>> Cc: De Pauw Antoine; Matplotlib Users >>>> Subject: Re: [Matplotlib-users] Information request >>>> >>>> John Hunter wrote: >>>> >>>> >>>> >>>>> On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <jd...@gm...> >>>>> > wrote: > >>>>> >>>>> >>>>> >>>>> >>>>>> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the >>>>>> axes border. The black horizontal line is the top axes border, the >>>>>> horizontal grey line is the artifact, the vertical dashed line is a >>>>>> grid line. I don't know if this offers a clue, but if you look at a >>>>>> zoom in the upper right corner, the grey line seems to break up and >>>>>> curve down and to the right (corner.png) >>>>>> >>>>>> >>>>>> >>>>>> >>>>> Sorry, screwed up corner.png (I attached the original and not the >>>>> screenshot). The correct screenshot is attached >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> John: OK, now I finally see it. Antoine: Do these artifacts >>>> disappear if you comment out the imshow call? >>>> >>>> -Jeff >>>> >>>> >>>> >>>> >>> -- >>> Jeffrey S. Whitaker Phone : (303)497-6313 >>> Meteorologist FAX : (303)497-6449 >>> NOAA/OAR/PSD R/PSD1 Email : Jef...@no... >>> 325 Broadway Office : Skaggs Research Cntr 1D-113 >>> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg >>> >>> >>> >>> >>> >> >> > > > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
|
From: Friedrich H. <fri...@gm...> - 2008-09-24 06:10:51
|
On Wed, Sep 24, 2008 at 02:29:28PM +0900, Yong-Duk Jin wrote: > Dear matplotlib users. > > I'm using matplotlib 0.98.3 from the packman repository on opensuse 11.0. > I tried to adjust the 'markerscale option to enlarge a marker size in a > legend. > However, it simply did not work even in a simple code like following. > > from pylab import * > x = [1,2,3]; y = [1,2,3] > plot(x,y,ls='',marker='o',ms=1,label='test') > legend(markerscale=5) > show() > > I could only get a legend marker in a same size with the plot marker. > > I tried to reinstall all the packages related with python, including > matplotlib, > the legend marker size, however, does not change. > > Please help me here to change the legend marker size. > > Thanks. > > -- > Yong-Duk Jin > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Yong-Duk J. <ne...@gm...> - 2008-09-24 05:29:38
|
Dear matplotlib users. I'm using matplotlib 0.98.3 from the packman repository on opensuse 11.0. I tried to adjust the 'markerscale option to enlarge a marker size in a legend. However, it simply did not work even in a simple code like following. from pylab import * x = [1,2,3]; y = [1,2,3] plot(x,y,ls='',marker='o',ms=1,label='test') legend(markerscale=5) show() I could only get a legend marker in a same size with the plot marker. I tried to reinstall all the packages related with python, including matplotlib, the legend marker size, however, does not change. Please help me here to change the legend marker size. Thanks. -- Yong-Duk Jin |