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
(20) |
2
(21) |
3
(21) |
4
(14) |
5
(8) |
|
6
(12) |
7
(16) |
8
(27) |
9
(39) |
10
(19) |
11
(12) |
12
(3) |
|
13
(3) |
14
(18) |
15
(14) |
16
(6) |
17
(7) |
18
(19) |
19
(5) |
|
20
(8) |
21
(24) |
22
(42) |
23
(12) |
24
(11) |
25
(16) |
26
(2) |
|
27
(4) |
28
(10) |
|
|
|
|
|
|
From: James K. <ji...@ya...> - 2011-02-21 22:25:37
|
'pick_event' fires when I pick on either the marker or the line segment of a
Line2D object. But if I change the drawstyle to use steps (steps-pre,
steps-post, steps-mid), picking on the line segment is broken. It still seems
to think the line is linear. This leads to very strange behavior where picking
on a line gives no feedback (e.g. a tooltip), but picking on a blank part of the
graph does.
Do I need to write my own custom picker function or is this an oversight in the
code?
Thanks,
Jim
|
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 19:42:00
|
On Mon, Feb 21, 2011 at 1:32 PM, Waléria Antunes David < wal...@gm...> wrote: > Can you help me...please. > > On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David < > wal...@gm...> wrote: > >> I don't understand...i need that the yscale has these values: >> 1,10,100,1000 ....But i don't know how... >> >> Thanks, >> >> >> Let me make it clearer. Your green line has values on the order of 10^-17. There is nothing that can be done to meet your request if you are plotting data this small. Either this data is wrong, or you don't want to plot it at all. To exclude anything less than 1, use the following: ax.set_ylim(bottom=1) Note that this will exclude the green line in your plot! Ben Root |
|
From: Waléria A. D. <wal...@gm...> - 2011-02-21 19:32:17
|
Can you help me...please. On Mon, Feb 21, 2011 at 4:02 PM, Waléria Antunes David < wal...@gm...> wrote: > I don't understand...i need that the yscale has these values: 1,10,100,1000 > ....But i don't know how... > > Thanks, > > > On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root <ben...@ou...> wrote: > >> >> >> On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David < >> wal...@gm...> wrote: >> >>> I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 . >>> Would be the correct way: 1, 10, 100, 1000. >>> >>> See the wrong image attached. And the correct image - correct_graph >>> attached. >>> >>> Thanks, >>> >>> >> The graph isn't wrong. >> >> You are plotting really small values. If you don't want those values >> plotted, then don't plot them, or set the lower limits. >> >> Ben Root >> > > |
|
From: John <was...@gm...> - 2011-02-21 19:30:29
|
Hello,
I'm trying to use fill_between in the following script:
[code]
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import pdb
from jfb import readcsv
#D = np.loadtxt('lat_sectors.csv',skiprows=1,delimiter=',')
head,D = readcsv('lat_sectors.csv',head=1)
D = np.array(D)
data = D[:,1:]
fig = plt.figure()
ax = fig.add_subplot(211)
plt.grid(True)
data = np.cumsum(data,axis=1)
m,n = D.shape
norm = mpl.colors.normalize(0,n)
for i in range(1,n-1):
cmap = mpl.cm.gist_ncar(norm(i))
if i == 1:
ax.fill_between(D[:,0],np.zeros(m),D[:,i],label='some.{0}'.format(i))
else:
ax.fill_between(D[:,0],D[:,i-1],D[:,i],label=head[i],facecolor=cmap,edgecolor='none')
#ax.fill(D[:,0],D[:,i],label='{0}'.format(i),facecolor=cmap)
#ax.legend((ax.collections),([str(i) for i in range(len(ax.collections))]))
plt.xlabel('Latitude, N')
plt.ylabel('BC Emissions, Gg yr-1')
plt.xlim([-50,80])
#plt.ylim([0,1])
plt.legend()
plt.show()
[/code]
But when I run it I get the following error:
/usr/lib/pymodules/python2.6/matplotlib/axes.py:4014: UserWarning: No
labeled objects found. Use label='...' kwarg on individual plots.
warnings.warn("No labeled objects found. "
But, clearly, you can see I am using the label keyword. Is this a bug,
or am I missing something?
Thank you,
john
|
|
From: Waléria A. D. <wal...@gm...> - 2011-02-21 19:02:56
|
I don't understand...i need that the yscale has these values: 1,10,100,1000 ....But i don't know how... Thanks, On Mon, Feb 21, 2011 at 3:58 PM, Benjamin Root <ben...@ou...> wrote: > > > On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David < > wal...@gm...> wrote: > >> I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 . Would >> be the correct way: 1, 10, 100, 1000. >> >> See the wrong image attached. And the correct image - correct_graph >> attached. >> >> Thanks, >> >> > The graph isn't wrong. > > You are plotting really small values. If you don't want those values > plotted, then don't plot them, or set the lower limits. > > Ben Root > |
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 18:58:35
|
On Mon, Feb 21, 2011 at 12:54 PM, Waléria Antunes David < wal...@gm...> wrote: > I did what you sai but the yscale was: 0, 0, 0, 0, 0, 0, 0, 1, 100 . Would > be the correct way: 1, 10, 100, 1000. > > See the wrong image attached. And the correct image - correct_graph > attached. > > Thanks, > > The graph isn't wrong. You are plotting really small values. If you don't want those values plotted, then don't plot them, or set the lower limits. Ben Root |
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 18:44:11
|
On Mon, Feb 21, 2011 at 12:37 PM, Waléria Antunes David <
wal...@gm...> wrote:
> I don't know how to do this. Can you help me?
>
>
>
In your case, I would do something like this:
import matplotlib.ticker as mtick
# Other code here
# Now getting ready to plot
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_yscale('log')
ax.yaxis.set_major_formatter(mtick.FormatStrFormatter('%d'))
# Then plot as usual, be sure to set the y-limits.
Ben Root
> On Mon, Feb 21, 2011 at 3:32 PM, Benjamin Root <ben...@ou...> wrote:
>
>>
>>
>> On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David <
>> wal...@gm...> wrote:
>>
>>> I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can
>>> you help me, please.
>>>
>>> Thanks,
>>>
>>>
>>> On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David <
>>> wal...@gm...> wrote:
>>>
>>>> So...now my xscale is correct but the yscale ...i need that in the
>>>> yscale should have a scale like this: 1 - 10 - 100 - 1000 ... without using
>>>> power rating . Can you help me??
>>>> See my image attached..
>>>>
>>>> Thanks,
>>>>
>>>>
>> Waleria,
>>
>> The data you are plotting contains points that have y-values as low as
>> 10^-17. Plotting so that the y-*axis* has ticks of 1 - 10 - 100 - 1000
>> would result in those points to be missing from the plot. Is that what you
>> want?
>>
>> To address the specific formatting of your tick labels, you can change the
>> formatter being used for that axis:
>>
>>
>> http://matplotlib.sourceforge.net/api/ticker_api.html?highlight=tick%20formatter
>>
>> By default, using ax.set_yscale('log') will automatically set the
>> LogFormatter object for formatting the y-axis. If you don't want this
>> formatter, you can replace it with another formatter object.
>>
>> Ben Root
>>
>>
>
|
|
From: Waléria A. D. <wal...@gm...> - 2011-02-21 18:38:00
|
I don't know how to do this. Can you help me? On Mon, Feb 21, 2011 at 3:32 PM, Benjamin Root <ben...@ou...> wrote: > > > On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David < > wal...@gm...> wrote: > >> I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you >> help me, please. >> >> Thanks, >> >> >> On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David < >> wal...@gm...> wrote: >> >>> So...now my xscale is correct but the yscale ...i need that in the yscale >>> should have a scale like this: 1 - 10 - 100 - 1000 ... without using power >>> rating . Can you help me?? >>> See my image attached.. >>> >>> Thanks, >>> >>> > Waleria, > > The data you are plotting contains points that have y-values as low as > 10^-17. Plotting so that the y-*axis* has ticks of 1 - 10 - 100 - 1000 > would result in those points to be missing from the plot. Is that what you > want? > > To address the specific formatting of your tick labels, you can change the > formatter being used for that axis: > > > http://matplotlib.sourceforge.net/api/ticker_api.html?highlight=tick%20formatter > > By default, using ax.set_yscale('log') will automatically set the > LogFormatter object for formatting the y-axis. If you don't want this > formatter, you can replace it with another formatter object. > > Ben Root > > |
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 18:33:00
|
On Mon, Feb 21, 2011 at 12:24 PM, Waléria Antunes David < wal...@gm...> wrote: > I need the yscale so: 1 - 10 - 100 - 1000 . See my image attached. Can you > help me, please. > > Thanks, > > > On Mon, Feb 21, 2011 at 1:51 PM, Waléria Antunes David < > wal...@gm...> wrote: > >> So...now my xscale is correct but the yscale ...i need that in the yscale >> should have a scale like this: 1 - 10 - 100 - 1000 ... without using power >> rating . Can you help me?? >> See my image attached.. >> >> Thanks, >> >> Waleria, The data you are plotting contains points that have y-values as low as 10^-17. Plotting so that the y-*axis* has ticks of 1 - 10 - 100 - 1000 would result in those points to be missing from the plot. Is that what you want? To address the specific formatting of your tick labels, you can change the formatter being used for that axis: http://matplotlib.sourceforge.net/api/ticker_api.html?highlight=tick%20formatter By default, using ax.set_yscale('log') will automatically set the LogFormatter object for formatting the y-axis. If you don't want this formatter, you can replace it with another formatter object. Ben Root |
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 16:32:41
|
On Mon, Feb 21, 2011 at 10:23 AM, Waléria Antunes David < wal...@gm...> wrote: > See my code: http://pastebin.com/xtgKteuW > > I need that tn the x-axis should have a scale like this: 0 - 2 - 4 - 6 - 8 > - 10 - 12 - 14 and in the y-axis a scale: 1 - 10 - 100 -1000 . See my > images, the image correct_graph is correct. > > Thanks, > > > One problem at a time. You are doing an errorbar plot and then creating a subplot. The subplot axes will not be the same thing as the axes you just made the errorbar plot on. See the correction here: http://pastebin.com/aZEJuGs2 Note, this does not address your tick label problem yet, just your plotting problem. Ben Root |
|
From: Daniel H. <dh...@gm...> - 2011-02-21 16:19:51
|
Thanks Eric! On Sun, Feb 20, 2011 at 9:02 PM, Eric Firing <ef...@ha...> wrote: > On 02/20/2011 06:17 AM, Daniel Hyams wrote: >> >> The function "clabel" does not allow the use of formatters for the >> label; this small patch enables their use, so that one can pass in any >> subclass of ticker.Formatter in the 'fmt' argument. >> >> Replace the following in contour.py: >> >> def get_text(self, lev, fmt): >> "get the text of the label" >> if cbook.is_string_like(lev): >> return lev >> else: >> if isinstance(fmt,dict): >> return fmt[lev] >> else: >> return fmt%lev >> >> With the following: >> >> def get_text(self, lev, fmt): >> "get the text of the label" >> if cbook.is_string_like(lev): >> return lev >> else: >> if isinstance(fmt,dict): >> return fmt[lev] >> elif isinstance(fmt,ticker.Formatter): >> return fmt(lev) >> else: >> return fmt%lev >> >> >> As you can see, there is only a two line change, but it does enable >> formatters. Perhaps one of the devs can put this in? > > Done. > > https://github.com/matplotlib/matplotlib/commit/9114598093984f39f40e50db9a8c15cfe1dc0d74 > > Eric >> >> >> -- >> Daniel Hyams >> dh...@gm... <mailto:dh...@gm...> > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Daniel Hyams dh...@gm... |
|
From: Benjamin R. <ben...@ou...> - 2011-02-21 16:15:44
|
On Mon, Feb 21, 2011 at 10:07 AM, Waléria Antunes David <
wal...@gm...> wrote:
> Hello all,
>
> I have this graph but the scale is wrong. See my images. In the image
> my_graph the xscale an yscale is wrong. I need to let the scale of x and y
> my_graph as correct_graph. Can you help me??
>
> Thanks
>
Have you tried ax.set_yscale('log')? I don't see anything wrong with the
scale of the xaxis. While the range of values are different, that has
nothing to do with the "scale" but the limits and the axis tickers.
Ben Root
|
|
From: Pauli V. <pa...@ik...> - 2011-02-21 10:00:27
|
Fri, 18 Feb 2011 20:24:31 +0100, Nils Wagner wrote: > what is the reason for the white areas in the corners of the > interpolation domain? > Any idea ? Griddata does not do any extrapolation, and the corners are outside the convex hull of the point set. > import numpy as np > from scipy.interpolate import griddata BTW, if you're using Scipy's griddata, the Scipy lists might be a better place to ask :) |
|
From: Stephan M. <zw...@we...> - 2011-02-21 09:19:46
|
I am using a workaround now. But that is a hackery solution. Before plotting my data I convert it to dBs and limit it to the lowest value I want to display. Then I plot it using a regular polar plot with a custom formatting function that sets the tick labels with respect to the data offset. Since I use a custom Navigation-Toolbar anyways it was no big deal to add the few necessery lines of codes to handle the offset there, too. The plot now looks exactly as I want it. But: I'd still prefer using a scale that does all the work in the background. -- View this message in context: http://old.nabble.com/Polar-plot---problem-with-negative-values-for-radius-tp30936638p30975519.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Eric F. <ef...@ha...> - 2011-02-21 02:02:46
|
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_text(self, lev, fmt): > "get the text of the label" > if cbook.is_string_like(lev): > return lev > else: > if isinstance(fmt,dict): > return fmt[lev] > else: > return fmt%lev > > With the following: > > def get_text(self, lev, fmt): > "get the text of the label" > if cbook.is_string_like(lev): > return lev > else: > if isinstance(fmt,dict): > return fmt[lev] > elif isinstance(fmt,ticker.Formatter): > return fmt(lev) > else: > return fmt%lev > > > As you can see, there is only a two line change, but it does enable > formatters. Perhaps one of the devs can put this in? Done. https://github.com/matplotlib/matplotlib/commit/9114598093984f39f40e50db9a8c15cfe1dc0d74 Eric > > > -- > Daniel Hyams > dh...@gm... <mailto:dh...@gm...> |
|
From: Eric F. <ef...@ha...> - 2011-02-21 00:57:26
|
On 02/20/2011 06:17 AM, Daniel Hyams wrote: > > The function "clabel" does not allow the use of formatters for the > label; this small patch enables their use, so that one can pass in any > subclass of ticker.Formatter in the 'fmt' argument. > > Replace the following in contour.py: > > def get_text(self, lev, fmt): > "get the text of the label" > if cbook.is_string_like(lev): > return lev > else: > if isinstance(fmt,dict): > return fmt[lev] > else: > return fmt%lev > > With the following: > > def get_text(self, lev, fmt): > "get the text of the label" > if cbook.is_string_like(lev): > return lev > else: > if isinstance(fmt,dict): > return fmt[lev] > elif isinstance(fmt,ticker.Formatter): > return fmt(lev) > else: > return fmt%lev > > > As you can see, there is only a two line change, but it does enable > formatters. Perhaps one of the devs can put this in? Yes, I have it done at home, and when I am a little more confident I know how to interact with github, I will push it up. Eric > > > -- > Daniel Hyams > dh...@gm... <mailto:dh...@gm...> |
|
From: K.-Michael A. <kmi...@gm...> - 2011-02-21 00:07:47
|
On 2011-02-18 07:32:48 +0100, Robert Abiad said: > Dear Folks, > > I'm finding that hist has problems computing on 2d arrays. > > import numpy > import pylab > mu, sigma = 2, 0.5 > v = numpy.random.normal(mu,sigma,160000) > pylab.hist(v, bins=1000, normed=1) > > This works without any problems. But if you try this: > > w=v.reshape(400,400) > pylab.hist(w, bins=1000, normed=1) > > it doesn't come back on my machine until all of memory is used up. However: > > n,bins = numpy.histogram(w,bins=1000,normed=1) > > works just fine. That's by design. For a n x m array, pylab.hist is doing m times a histogram of the n items subarray and then tries to plot them somehow on top of each other. The detail I don't know, but most likely you want to do pylab.hist(w.flatten(), ....) to get a 1-dim array that you want to fill in ONE histogram. (for example for image arrays). HTH, Michael > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb |