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
(24) |
2
(35) |
3
(21) |
4
(15) |
5
(1) |
6
(2) |
7
(30) |
8
(16) |
9
(11) |
10
(10) |
11
(10) |
12
(4) |
13
(2) |
14
(14) |
15
(21) |
16
(7) |
17
(5) |
18
(2) |
19
(5) |
20
|
21
(4) |
22
(8) |
23
(4) |
24
(6) |
25
(2) |
26
(2) |
27
(5) |
28
(9) |
29
(16) |
30
(14) |
31
(5) |
|
|
(sorry if this is a duplicate post) Jae, Thank you for your help. I found the problem. It was caused by using pyplot.title(). It is working better now. I next have to figure out how to do the following within AxesGrid: 1. How to convert the x axis labels from an integer value representing epoch seconds to a nicely formatted date. I think this has something to do with matplotlib.dates.DateFormatter. I hope that this will remove the 1.25325e9 from the plot. 2. How to minimize or eliminate the white bands on the right and bottom of each axes caused by the axis scale exceeding the data values. 3. How to eliminate (or hide) the first major tic label on the y axis (always 0) so it doesn't overlap with the last tick from the previous y axis. It seems like there may be a different way to approach this than with subplot() Regards, -Ryan * Here's a complete example:* from matplotlib import pyplot from mpl_toolkits.axes_grid import AxesGrid from numpy import arange, linspace, meshgrid, random, transpose # Generate some data x_dim = linspace(1253250000,1253250000 + 60*60*24,47) # This is epoch seconds y_dim = arange(0,-2.7,-0.1) z_dim = {} z_dim['chl'] = random.rand(len(x_dim),len(y_dim)) + linspace(5,26,len(y_dim)) z_dim['do'] = random.rand(len(x_dim),len(y_dim)) + linspace(5,10,len(y_dim)) z_dim['turb'] = random.rand(len(x_dim),len(y_dim)) + linspace(4.5,12.5,len(y_dim)) x_grid,y_grid = meshgrid(x_dim,y_dim) x_grid = transpose(x_grid) y_grid = transpose(y_grid) # Start the plotting routines DAP_figure = pyplot.figure(1,(8,8)) #pyplot.title('Title goes here') # *THIS IS THE LINE THAT CAUSES THE EARLIER PROBLEM* pyplot.figtext(0.05,.5,"Depth (m)",rotation='vertical',verticalalignment='center') # Create a grid of axes with the AxesGrid helper class my_grid = AxesGrid(DAP_figure, 111, # Only one grid in DAP_figure nrows_ncols = (3,1), axes_pad = 0.0, #pad between axes in inches aspect=False, #By default (False), widths and heigths of axes in the grid are scaled independently. If True, they are scaled according to their data limits add_all=True, # Add axes to figures if True (default True) share_all=False, # xaxis & yaxis of all axes are shared if True (default False) label_mode = "L", # location of tick labels thaw will be displayed. "1" (only the lower left axes), "L" (left most and bottom most axes), or "all" cbar_location="right", # "right" or "top" cbar_mode="each", # "None","single", or "each" cbar_size="2%", cbar_pad="1%", ) for i,parameter in enumerate(z_dim): ax = my_grid[i].pcolor(x_grid,y_grid,z_dim[parameter]) my_grid[i].set_ylabel(parameter) # Puts a y label on every graph. Eventually we want this labeled only once. my_grid.cbar_axes[i].colorbar(ax) my_grid.cbar_axes[i].axis["right"].toggle(ticklabels=True,label=True) my_grid.cbar_axes[i].set_ylabel("units") my_grid[i].axis["bottom"].major_ticklabels.set_rotation(45) # pyplot.show() [image: p5R5J.png] On Tue, Dec 8, 2009 at 7:39 PM, Jae-Joon Lee <lee...@gm...> wrote: > > Did you test the code in my previous post? > > If you want to get some help, you need to take your time to create a simple > and complete example (which reproduces the problem) that others can easily > test. > > Since I believe the problem is due to the existence of an extra axes, your > example don't need to show any images. Please post a simple script that > draws a blank AxesGrid and shows extra ticklabels as your current code does. > > Regards, > > -JJ > >
On 12/11/2009 12:07 PM, Brian Larsen wrote: > talking about cool > science and visualizations done can be really useful You probably saw the thumbnail gallery, but if not, it is helpful: http://matplotlib.sourceforge.net/gallery.html (Click a chart for its code.) Alan Isaac
Reinier, This in incredible. Wow. Thanks for all of your hard work. Cheers, -paul > -----Original Message----- > From: Reinier Heeres [mailto:re...@he...] > Sent: Thursday, December 10, 2009 3:37 PM > To: Matthias Michler > Cc: mat...@li... > Subject: Re: [Matplotlib-users] mplot3d: plot_surface() and contour on > grid? > > Hi, > > I just committed a patch to do this in svn, also allowing for contour > lines along other directions. > > See the attached image for an example.
On Fri, Dec 11, 2009 at 11:06 AM, Manuel Wittchen <man...@gm... > wrote: > Hi, > > When I plot very tiny datavalues (biggest value is 8e-7) the yticks > are also very small numbers with lots of digits (e.g. 0.000002). So > the ylabel isn't visible any more. > To make the ylabel visible again I would like to change the yticks > from 0.000002 to 2.0e-6 for example. How do I do that? > > Regards, > Manuel > Hi Manuel, This thread should answer your question: http://old.nabble.com/scientific-notation-%5Ctimes-symbol-td26688149.html > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan
Hello all, I am new to matplotlib and loving it (No more IDL for me, woohoo). Are any experts attending the meeting that have done things in python/ matplotlib that I need to be sure and see? Still wrapping my mind around the python way instead of the IDL way and talking about cool science and visualizations done can be really useful. I'm in SM11A poster session Monday morning if anyone wants to stop by and say hello. SM11A-1562 Poster Hall (Moscone South) Cheers, Brian -- ----------------------------------------------------------- Brian A Larsen, PhD RBSP-ECT Instrument Suite Scientist Boston University Center for Space Physics 725 Commonwealth Ave, Rm 506 Boston, MA 02215-1401 T: 617-358-4945 F: 617-353-6463 bal...@bu...
Hi, When I plot very tiny datavalues (biggest value is 8e-7) the yticks are also very small numbers with lots of digits (e.g. 0.000002). So the ylabel isn't visible any more. To make the ylabel visible again I would like to change the yticks from 0.000002 to 2.0e-6 for example. How do I do that? Regards, Manuel
How should I put some text marking a position on the x-axis?
Hi, I want to plot data from two different datafiles. To do so I use numpy.loadtxt two times in the script (see below). The problem is, that I don't get any output: no resulting plot, no errormessages or something in the terminal. Even if I comment-out one loadtxt-row nothing happens. Even if I try to plot something simple without using the loaded datafiles, nothing happens. Other files with simple plots without using a datafile work fine. Can't find my mistake. Manuel #!/usr/bin/env python from pylab import * import numpy as np datafile1 = '/path/to/datafile1.dat' datafile2 = '/path/to/datafile2.dat' TIME_F, STIRRER, O2, CO2 = np.loadtxt(datafile1, dtype='float', comments='#', delimiter='\t', usecols=(0,1,2,3), unpack=True) TIME_H, OD, FLUOR, BTM, GLY = np.loadtxt(datafile2, dtype='float', comments='#', delimiter='\t', usecols=(0,1,2,3,4), unpack=True) plot(TIME_F, O2)