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
(4) |
2
(20) |
3
(8) |
4
(10) |
5
(4) |
6
(8) |
7
(4) |
|
8
(9) |
9
(11) |
10
(12) |
11
(13) |
12
(3) |
13
(17) |
14
(4) |
|
15
|
16
(10) |
17
(9) |
18
(11) |
19
(4) |
20
(17) |
21
(6) |
|
22
(9) |
23
(35) |
24
(17) |
25
(9) |
26
(16) |
27
(17) |
28
(14) |
|
From: per f. <per...@gm...> - 2009-02-14 21:15:15
|
hello, is there a way to make a 2d scatter plot that includes (outside the axes) histograms of the marginals of the two variables? like the matlab function 'scatterhist'. see this for an example: http://www.mathworks.com/access/helpdesk/help/toolbox/stats/index.html?/access/helpdesk/help/toolbox/stats/scatterhist.html ideally i'd like the histograms outside the scatter plot to also have axes so that the height of each histogram bar will be interpretable. i understand that there's no command for this - but how can i construct it? i would not mind writing code to do this... if it's possible. right now this is the only thing keeping me from switching from matlab to matplotlib exclusively since i use these graphs a lot thank you |
|
From: Goyo <goy...@gm...> - 2009-02-14 20:45:35
|
Hi clolern2,
> - for some reason a TZ has been inserted
Datetime values are stored as numbers. Timezone info is added when that numbers are converted again into datetimes for labelling.
> - graphs have white space buffers on either side of the X-axix
You can use axes.xlim in order to adjust it.
> - points on X-axis are separated by the hour, instead of values in datetime
> object
Matplotlib automagically chooses a format depending on the scale but you
can specify a format:
import matplotlib.dates as mdates
...
xaxis.set_major_formatter(mdates.DateFormatter('%Y-%b-%d %H:%M'))
Goyo
El mié, 11-02-2009 a las 09:38 -0800, collern2 escribió:
> Hi,
>
> I've managed to take the contents of my CSV file and display it with
> matplotlib. I'm having some issues with the way my X-axis is being
> displayed.
>
> For the X-axis, I pass in a list that filled with datetime objects, an
> example of one element on the list:
>
> datetime.datetime(2007, 12, 17, 20, 28, 15),
>
> Issues (please see the attached cpu.png:
>
> - for some reason a TZ has been inserted
> - graphs have white space buffers on either side of the X-axix
> - points on X-axis are separated by the hour, instead of values in datetime
> object
>
> I have tried many variations of plotdate, etc. If someone could please point
> me in the right direction.
>
> Thanks
>
> =================
> Code http://www.nabble.com/file/p21958283/cpu.png
> =================
>
> #!/usr/bin/env python
>
> import csv
> import sys
> import matplotlib.pyplot as plt
> import datetime
>
> new_list = []
> time = []
> cpu = []
>
> fileReader = csv.reader(open("sample.csv", "rb"))
> for row in fileReader:
> new_list.append(row)
>
> # Converts papatimes time format into dattime
> def time_split(current_line):
> # splits papastats datetime format in useable python list
> dt = datetime.datetime.strptime(current_line[0],"%Y/%m/%d %H:%M:%S")
> time.append(dt)
>
> def cpu_calc(current_line):
> cpu.append(current_line[11].rstrip("%"))
>
> #Iterate over list of CSV values
> for i in new_list[1:]:
> time_split(i)
> cpu_calc(i)
>
> plt.plot(time, cpu, 'b-')
> #plt.plot_date(time, cpu, fmt='b-', xdate=False, ydate=False, tz=None)
>
> plt.xlabel('Time')
> plt.ylabel('CPU %')
> plt.title('Daily CPU Usage')
> plt.grid(True)
> plt.grid(alpha=0.2, color='black', linestyle='-', linewidth=0.1)
> plt.show()
>
|
|
From: Laurent M. <lau...@go...> - 2009-02-14 18:41:41
|
hi, I'm using polar bars to plot windroses. Since the 0.98.5 version i have some issues with the plots. The 0° bar is not displayed in the good way. This bar is located between -0.26 radian and 0.26 radian but it is printed counterclockwise. It was working perfectly with matplotlib version 0.98.3. I just switched to version 0.98.5 because of the NaN bug of the previous version. Any idea how i could make it work again ? Ty!! from pylab import * nb_secteur=12 fig = figure(2,figsize=(8,8)) ax = fig.add_axes([0.1, 0.1, 0.8, 0.8], polar=True,) thetagrids([90,45,0,315,270,225,180,135], labels=["N","NE","E","SE","S","SO","O","NO"]) theta = arange(0.0-pi/nb_secteur, 2*pi-pi/nb_secteur, 2*pi/nb_secteur) radii = [10.,20,10,5,3,4,3,4,6,4,2,9] width = 2*pi/nb_secteur bars = ax.bar(theta, radii, width=width, bottom=0.0 ) for r,bar in zip(radii, bars): bar.set_facecolor( 'blue') bar.set_alpha(0.3) text(1,0.69,"%",transform = ax.transAxes) show() |
|
From: Lewis, A. J. <AMB...@sa...> - 2009-02-14 13:07:54
|
Thanks Michael & Ryan! Worked great! amb -----Original Message----- From: Michael Droettboom [mailto:md...@st...] Sent: Fri 2/13/2009 1:14 PM To: Lewis, Ambrose J. Cc: mat...@li... Subject: Re: [Matplotlib-users] x axis & imshow... You can pass "extent=(left, right, bottom, top)" to imshow to specify what the pixels in the array correspond to in data space. Mike Lewis, Ambrose J. wrote: > > Hi All: > > I'm working on a wxPython GUI that uses matplotlib. > > This program reads "chunks" of a data file into a numpy array and than > plots it using imshow. > > The first chunk works great. But, when I load chunks 2 to N, how can I > specify the different values for the labels on the x axis? > > I tried using "axes.set_xlim". This did reposition the x axis as > hoped, but the data is always being drawn back at the "zero" offset. > > Is there a way to tell the axis to map the array to a different x range? > > I can't read the whole file at once, it's just too big > > THANXS > > amb > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ------------------------------------------------------------------------ > > _______________________________________________ > 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 |