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
(38) |
2
(31) |
3
(9) |
|
4
(13) |
5
(24) |
6
(11) |
7
(8) |
8
(14) |
9
(7) |
10
(4) |
|
11
(7) |
12
(11) |
13
(16) |
14
(19) |
15
(11) |
16
(9) |
17
(3) |
|
18
(4) |
19
(47) |
20
(28) |
21
(9) |
22
(9) |
23
(11) |
24
|
|
25
|
26
(12) |
27
(22) |
28
(20) |
29
(16) |
30
(19) |
|
|
From: Jeff W. <js...@fa...> - 2010-04-08 01:24:44
|
Mathew Yeates wrote: > I think this will only work with some projections but not all. I > looked at the code for tissot. It's pretty hairy but it almost does > what I want. (It draws projected circles > instead of projected rectangles. Mathew: You said you wanted a NxN degree polygon - that's what I gave you. What exactly do you want? A rectangle in map projection coordinates? A rectangle in lat/lon coordinates? A circle? -Jeff > > > On Wed, Apr 7, 2010 at 1:54 PM, Jeff Whitaker <js...@fa... > <mailto:js...@fa...>> wrote: > > Yeates, Mathew C (388D) wrote: > > > > > > > > Hi > > > > What is the simplest way to fill in a 1 degree by 1 degree > rectangle > > on a basemap projection? > > > > > > > > Mathew > > > > Mathew: Try this (for a 10x10 rectangle, but you get the idea) > > from matplotlib.patches import Polygon > import matplotlib.pyplot as plt > from mpl_toolkits.basemap import Basemap > map = Basemap(projection='moll',lon_0=0) > x1,y1 = map(-10,-10) > x2,y2 = map(-10,10) > x3,y3 = map(10,10) > x4,y4 = map(10,-10) > p = Polygon([(x1,y1),(x2,y2),(x3,y3),(x4,y4)],\ > facecolor='red',edgecolor='blue',linewidth=2) > plt.gca().add_patch(p) > map.drawcoastlines() > map.drawmapboundary() > plt.show() > > -Jeff > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
|
From: Conrad K. <ce...@me...> - 2010-04-08 00:21:35
|
Does anyone have a simple FIFOBuffer example they can post to this list? Thanks! Conrad NOTICE: This email may contain confidential information. Please see http://www.meyersound.com/confidential/ for our complete policy. |
|
From: Mathew Y. <mat...@gm...> - 2010-04-07 21:19:38
|
I think this will only work with some projections but not all. I looked at the code for tissot. It's pretty hairy but it almost does what I want. (It draws projected circles instead of projected rectangles. On Wed, Apr 7, 2010 at 1:54 PM, Jeff Whitaker <js...@fa...> wrote: > Yeates, Mathew C (388D) wrote: > > > > > > > > Hi > > > > What is the simplest way to fill in a 1 degree by 1 degree rectangle > > on a basemap projection? > > > > > > > > Mathew > > > > Mathew: Try this (for a 10x10 rectangle, but you get the idea) > > from matplotlib.patches import Polygon > import matplotlib.pyplot as plt > from mpl_toolkits.basemap import Basemap > map = Basemap(projection='moll',lon_0=0) > x1,y1 = map(-10,-10) > x2,y2 = map(-10,10) > x3,y3 = map(10,10) > x4,y4 = map(10,-10) > p = Polygon([(x1,y1),(x2,y2),(x3,y3),(x4,y4)],\ > facecolor='red',edgecolor='blue',linewidth=2) > plt.gca().add_patch(p) > map.drawcoastlines() > map.drawmapboundary() > plt.show() > > -Jeff > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
|
From: Jeff W. <js...@fa...> - 2010-04-07 20:54:44
|
Yeates, Mathew C (388D) wrote:
>
>
>
> Hi
>
> What is the simplest way to fill in a 1 degree by 1 degree rectangle
> on a basemap projection?
>
>
>
> Mathew
>
Mathew: Try this (for a 10x10 rectangle, but you get the idea)
from matplotlib.patches import Polygon
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
map = Basemap(projection='moll',lon_0=0)
x1,y1 = map(-10,-10)
x2,y2 = map(-10,10)
x3,y3 = map(10,10)
x4,y4 = map(10,-10)
p = Polygon([(x1,y1),(x2,y2),(x3,y3),(x4,y4)],\
facecolor='red',edgecolor='blue',linewidth=2)
plt.gca().add_patch(p)
map.drawcoastlines()
map.drawmapboundary()
plt.show()
-Jeff
>
|
|
From: Yeates, M. C (388D) <mat...@jp...> - 2010-04-07 19:16:45
|
Hi What is the simplest way to fill in a 1 degree by 1 degree rectangle on a basemap projection? Mathew |
|
From: Jae-Joon L. <lee...@gm...> - 2010-04-07 16:47:17
|
I tried to take a look but, pstopdf in my linux box works okay (it
converted test_tex_r8216.eps fine also) and I'm afraid that I may not
be able to track this down.
Just in case, can you check if using a different distiller makes any
difference? I believe you're using a ghostscript (or none where
ghostscript is force for usetex=True). See if using xpdf works.
mpl.rc("ps", usedistiller="xpdf")
Regards,
-JJ
On Fri, Apr 2, 2010 at 11:44 AM, Thomas Robitaille
<tho...@gm...> wrote:
> I just tried running epstopdf, and this does work correctly, so maybe now the only issue is that Preview.app on mac always uses pstopdf, even for eps files? (which then is not a matplotlib issue) I also checked that giving the file the extension '.ps' produces a ps file, and that does open correctly in Preview.app.
>
> Cheers,
>
> Tom
>
> On Apr 2, 2010, at 11:20 AM, Michael Droettboom wrote:
>
>> At least on my Linux box with gs 7.07, I have to use epstopdf (not pstopdf) to convert an eps file to a pdf. ps2pdf does work for both .ps and .eps files however.
>>
>> It looks like the 0.99.1.1 file is not in fact an .eps file, but a .ps file, (it certainly hasn't had the ps2eps function run on it) and I think it was probably a bug (now fixed) that 0.99.1.1 was writing out the wrong kind of file.
>> It seems the relevant change is in r8102: "fix some issues in the bbox after the postscript distiller is run". This change removed a commented out call to ps2eps. I'm a bit out of my depth here as to why that change was made, and why .eps files seemingly haven't been true .eps files for a long time prior to that change. Anyone else?
>>
>> Mike
>>
>> Thomas Robitaille wrote:
>>> It seems that removing 'restore' on line 1073 of the test_tex_r8216.eps file fixes the problem, although I don't understand postscript well enough to understand why that is.
>>>
>>> Thomas
>>>
>>> On Apr 2, 2010, at 9:30 AM, Michael Droettboom wrote:
>>>
>>>
>>>> Can you provide us with the EPS file? What version of LaTeX is this?
>>>>
>>>> Mike
>>>>
>>>> Thomas Robitaille wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I upgraded to the latest svn version of matplotlib today, and found that eps files produced with the system latex now seem to be invalid. For example, if I run the following script
>>>>>
>>>>> import matplotlib
>>>>> matplotlib.use('Agg')
>>>>> import matplotlib.pyplot as mpl
>>>>>
>>>>> mpl.rc('text', usetex=False)
>>>>>
>>>>> fig = mpl.figure()
>>>>> ax = fig.add_subplot(1,1,1)
>>>>> fig.savefig('test_notex.eps')
>>>>>
>>>>> mpl.rc('text', usetex=True)
>>>>>
>>>>> fig = mpl.figure()
>>>>> ax = fig.add_subplot(1,1,1)
>>>>> fig.savefig('test_tex.eps')
>>>>>
>>>>> and try running pstopdf on them (on MacOS 10.6) I get the following
>>>>>
>>>>> air:air tom$ pstopdf test_tex.eps %%[ Warning: Empty job. No PDF file produced. ] %%
>>>>> air:air tom$ pstopdf test_notex.eps air:air tom$ So the file with the system LaTeX enabled no longer works. ps2pdf still works, but the error with pstopdf is important, because for example Preview.app on mac relies on pstopdf, not ps2pdf.
>>>>>
>>>>> I tried this on two different computers under MacOS 10.6, and tried with ghostscript 8.70 and 8.71 installed, and the problem occurs either way.
>>>>>
>>>>> Does anyone know what might be causing this? I submitted a bug report a little while back about this
>>>>>
>>>>> https://sourceforge.net/tracker/?func=detail&aid=2974953&group_id=80706&atid=560720
>>>>>
>>>>> Thanks in advance for any help,
>>>>>
>>>>> Thomas
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download Intel® Parallel Studio Eval
>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>> proactively, and fine-tune applications for parallel performance.
>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>>
>>
>> --
>> Michael Droettboom
>> Science Software Branch
>> Operations and Engineering Division
>> Space Telescope Science Institute
>> Operated by AURA for NASA
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Alan G I. <ala...@gm...> - 2010-04-07 14:00:03
|
On 4/7/2010 4:09 AM, Padma TAN wrote: > Your currently selected backend, 'agg' does not support show(). Use a different backend. Alan Isaac |
|
From: Sandro T. <mo...@de...> - 2010-04-07 12:41:52
|
Hello,
On Wed, Apr 7, 2010 at 10:09, Padma TAN <ta...@gi...> wrote:
>
>
> Hi,
>
> We have an error when running python matplotlib. Please assist. Thanks in
> advance! J
>
>
> [cheungcwe@changeme:/home/cheungcwe/CB3] python Python 2.6.2 (r262:71600,
> Sep 15 2009, 01:44:49) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import pylab
>>>> pylab.scatter([1,2,3],[1,2,3])
> <matplotlib.collections.CircleCollection object at 0x1d013090>
>>>> pylab.show()
> /usr/local/python2.6/lib/python2.6/site-packages/matplotlib/backends/__init__.py:41:
> UserWarning:
> Your currently selected backend, 'agg' does not support show().
> Please select a GUI backend in your matplotlibrc file
> ('/usr/local/python2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc')
> or with matplotlib.use()
> (backend, matplotlib.matplotlib_fname()))
The problem is described here: in the matplotlibrc file, that's the
configuration file for mpl (so it's possibly the system one, in
/etc/), you have line like
backend = 'Agg'
The agg backend can't be used for interactive usage, so it doesn't
support any show() method, but only the one to save the figure as a
file, with savefig(). if you want to use mpl interactive, set the
backend to 'TkAgg' (it should be available on your system too) or
'GtkAgg' if you use Gnome or 'Qt4Agg' if you use KDE.
For more information, research for "matplotlib backend" in the mpl
documentation or on google
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
|
|
From: Darren D. <dsd...@gm...> - 2010-04-07 12:36:30
|
On Wed, Apr 7, 2010 at 4:09 AM, Padma TAN <ta...@gi...> wrote:
>
>
> Hi,
>
> We have an error when running python matplotlib. Please assist. Thanks in
> advance! J
>
>
> [cheungcwe@changeme:/home/cheungcwe/CB3] python Python 2.6.2 (r262:71600,
> Sep 15 2009, 01:44:49) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import pylab
>>>> pylab.scatter([1,2,3],[1,2,3])
> <matplotlib.collections.CircleCollection object at 0x1d013090>
>>>> pylab.show()
> /usr/local/python2.6/lib/python2.6/site-packages/matplotlib/backends/__init__.py:41:
> UserWarning:
> Your currently selected backend, 'agg' does not support show().
> Please select a GUI backend in your matplotlibrc file
> ('/usr/local/python2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc')
> or with matplotlib.use()
> (backend, matplotlib.matplotlib_fname()))
Try specifying a gui backend like TkAgg, Qt4Agg, GtkAgg in your
matplotlibrc file. For more information on this file, see
http://matplotlib.sourceforge.net/users/customizing.html
Darren
|
|
From: Padma T. <ta...@gi...> - 2010-04-07 09:08:59
|
Hi,
We have an error when running python matplotlib. Please assist. Thanks in advance! :)
[cheungcwe@changeme:/home/cheungcwe/CB3] python Python 2.6.2 (r262:71600, Sep 15 2009, 01:44:49) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> pylab.scatter([1,2,3],[1,2,3])
<matplotlib.collections.CircleCollection object at 0x1d013090>
>>> pylab.show()
/usr/local/python2.6/lib/python2.6/site-packages/matplotlib/backends/__init__.py:41: UserWarning:
Your currently selected backend, 'agg' does not support show().
Please select a GUI backend in your matplotlibrc file ('/usr/local/python2.6/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc')
or with matplotlib.use()
(backend, matplotlib.matplotlib_fname()))
>>>
[root@changeme~]# uname -a
Linux plap03 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Python 2.6.2 (r262:71600, Sep 15 2009, 01:44:49)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import matplotlib
>>> print matplotlib.__version__
0.99.1.1
[root@changeme ~]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Regards,
Padma Tan
Genome Institute of Singapore
60 Biopolis Street, Genome
#02-01 Singapore 138672
DID : 6478 8671
Fax : 6478 9058
email: ta...@gi...
--------------------------------------------------------------------------------------------------------------------------------------------------------
This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you.
----------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
From: Jae-Joon L. <lee...@gm...> - 2010-04-06 20:03:16
|
This is something that needs to be fixed in the next release.
Meanwhile, try something like,
cax = grid.cbar_axes[0]
cax.axis["right"].toggle(ticks=True, ticklabels=True, label=True)
cax.set_ylabel("Test")
Regards,
-JJ
On Tue, Apr 6, 2010 at 3:26 PM, Angus McMorland <am...@gm...> wrote:
> Hi all,
> I'm trying to use an AxesGrid to plot 5 images and a color bar. I can't work
> out how to get labels on the colorbar, and none of the examples shows this.
> Can anyone help? I presume this is a simple thing, once one knows the
> correct command.
> I'm creating the grid using the following code snippet, taking almost
> verbatim from the examples:
> fig = plt.figure()
> grid = AxesGrid(fig, 111, nrows_ncols = (1, 5), axes_pad = 0.05,
> share_all=True, cbar_mode='single', cbar_location='right', cbar_size='15%')
> for i in xrange(5):
> im = grid[i].imshow(array[i])
> plt.colorbar(im, cax=grid.cbar_axes[0])
> but then it's not clear how to switch on the labels. Things I've tried:
> normal colorbars come with them on by default. I've also found that
> grid.cbar_axes is a list of five elements, each of which is an CbarAxes, for
> which I can't find documentation on the website, and doing
> grid.cbar_axes[0].set_yticks/set_yticklabels on at least the first and last
> elements of the list doesn't work. Can anyone shed light on this? I bet it's
> easy once I know the magic words.
> Thanks,
> Angus.
> --
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
|
|
From: Alex S <sch...@gm...> - 2010-04-06 20:00:33
|
Thanks again to Mike who explained my problems off list. For other people trying to do something similar, http://docs.python.org/library/stdtypes.html#string-formatting here is the page describing python string formats, and the format i was looking for to show decimals was '%g' (rather than '%d' which was for integers and so truncated decimals). Thanks guys, Alex Alex S wrote: > > Ah thank you very much, that works fine except for decimals... (.1, .01, > .001 etc all show as 0). Is there a way to show these as well (preferably > without showing all the rest of the numbers as 1.000, 10.000, 100.000)? > Sorry if this is a very newbie question... I don't know what symbol does > what on the string formatter, is there a web site somewhere that lays it > all out? As per usual, > http://matplotlib.sourceforge.net/api/ticker_api.html the manual has just > confused me... > -- View this message in context: http://old.nabble.com/Not-using-exponents-on-y-axis-of-log-graphs-tp28155571p28156753.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Alex S <sch...@gm...> - 2010-04-06 19:46:45
|
Ah thank you very much, that works fine except for decimals... (.1, .01, .001 etc all show as 0). Is there a way to show these as well (preferably without showing all the rest of the numbers as 1.000, 10.000, 100.000)? Sorry if this is a very newbie question... I don't know what symbol does what on the string formatter, is there a web site somewhere that lays it all out? As per usual, http://matplotlib.sourceforge.net/api/ticker_api.html the manual has just confused me... -- View this message in context: http://old.nabble.com/Not-using-exponents-on-y-axis-of-log-graphs-tp28155571p28156608.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Angus M. <am...@gm...> - 2010-04-06 19:26:39
|
Hi all,
I'm trying to use an AxesGrid to plot 5 images and a color bar. I can't work
out how to get labels on the colorbar, and none of the examples shows this.
Can anyone help? I presume this is a simple thing, once one knows the
correct command.
I'm creating the grid using the following code snippet, taking almost
verbatim from the examples:
fig = plt.figure()
grid = AxesGrid(fig, 111, nrows_ncols = (1, 5), axes_pad = 0.05,
share_all=True, cbar_mode='single', cbar_location='right', cbar_size='15%')
for i in xrange(5):
im = grid[i].imshow(array[i])
plt.colorbar(im, cax=grid.cbar_axes[0])
but then it's not clear how to switch on the labels. Things I've tried:
normal colorbars come with them on by default. I've also found that
grid.cbar_axes is a list of five elements, each of which is an CbarAxes, for
which I can't find documentation on the website, and doing
grid.cbar_axes[0].set_yticks/set_yticklabels on at least the first and last
elements of the list doesn't work. Can anyone shed light on this? I bet it's
easy once I know the magic words.
Thanks,
Angus.
--
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh
|
|
From: Ryan M. <rm...@gm...> - 2010-04-06 19:02:58
|
On Tue, Apr 6, 2010 at 1:16 PM, Alex S <sch...@gm...> wrote:
> I've got a program that generates a bunch of plots with logarithmic charts.
> Matplotlib handles them great, but it seems to by default label the y axis
> ticks 10^0, 10^1, 10^2 etc. Is there an way to make it spell out these
> numbers instead (ie 1, 10, 100 etc)? I guess I could make custom ticks for
> every one, but the graph is not always the same and if it could do it
> automatically it would be much better.
Make a custom tick formatter:
form = plt.FormatStrFormatter('%d')
plt.gca().yaxis.set_major_formatter(form)
Ryan
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
|
|
From: Alex S <sch...@gm...> - 2010-04-06 18:16:21
|
Hi there, I've got a program that generates a bunch of plots with logarithmic charts. Matplotlib handles them great, but it seems to by default label the y axis ticks 10^0, 10^1, 10^2 etc. Is there an way to make it spell out these numbers instead (ie 1, 10, 100 etc)? I guess I could make custom ticks for every one, but the graph is not always the same and if it could do it automatically it would be much better. Thanks a lot, Alex -- View this message in context: http://old.nabble.com/Not-using-exponents-on-y-axis-of-log-graphs-tp28155571p28155571.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Gökhan S. <gok...@gm...> - 2010-04-06 17:54:11
|
On Tue, Apr 6, 2010 at 12:29 PM, Florian Lindner <mai...@xg...>wrote: > Hello, > > my matter is a bit difficult to explain for me, I hope you get the picture. > > I want to (line) plot pressure and temperatur at different stations in an > aircraft engine. The stations are labeled like 0, 1, 2, 22, 23, 3, ... > (order is like that). Stations are on the y-axis and should be plotted > equidistant. Two x-axisis are temperatur/pressure. > > T > ^ x > | x > | x > | x > | x > |x > o- - - - - - - - - - - -> station > 0 1 2 22 23 3 > > (given an linear increase in temperatur) > > My plot would be correct with: > > plot([1,2,3], [300,350,700]) but the y-axis should have my custom label. > > How can I do that? > > Thanks, > > Florian > You can just use custom tick-labels. Here is a simple example: locs, labels = yticks([1,2,3,4,5,6],['150', '300', '600', '1200', '1800']) setp(labels, 'rotation', 'horizontal') yticklabels = getp(gca(), 'yticklabels') -- Gökhan |
|
From: Florian L. <mai...@xg...> - 2010-04-06 17:46:03
|
Hello, my matter is a bit difficult to explain for me, I hope you get the picture. I want to (line) plot pressure and temperatur at different stations in an aircraft engine. The stations are labeled like 0, 1, 2, 22, 23, 3, ... (order is like that). Stations are on the y-axis and should be plotted equidistant. Two x-axisis are temperatur/pressure. T ^ x | x | x | x | x |x o- - - - - - - - - - - -> station 0 1 2 22 23 3 (given an linear increase in temperatur) My plot would be correct with: plot([1,2,3], [300,350,700]) but the y-axis should have my custom label. How can I do that? Thanks, Florian |
|
From: Alan G I. <ala...@gm...> - 2010-04-06 12:54:48
|
On 4/5/2010 11:19 PM, Josh Hemann wrote: > For true sparklines, here is > http://bitworking.org/news/Sparklines_in_data_URIs_in_Python another nice > example in Python . > Thanks! Alan |
|
From: Josh H. <jh...@vn...> - 2010-04-06 03:19:09
|
AlanIsaac wrote: > > Nice. > You might want to see > http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR > if you have not already. > > Alan Isaac > Thanks again Alan. I know I am abusing the term "sparkline" because I am not embedding the visualization within text, but I am not sure what else to call it. I do think that showing the time series not bound within a set of axes, without labels, underscores that the time series is a "quick hit", just like the histograms are. The main focus should be on the scatter plot, with the marginal visualizations there to aid in quick assessment of distribution and behavior over time. For true sparklines, here is http://bitworking.org/news/Sparklines_in_data_URIs_in_Python another nice example in Python . ----- Josh Hemann Statistical Advisor http://www.vni.com/ Visual Numerics jhemann at vni dizzot com -- View this message in context: http://old.nabble.com/How-to-overlay-an-image-on-a-multi-plot--tp28111498p28147118.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Gökhan S. <gok...@gm...> - 2010-04-05 23:48:15
|
On Mon, Apr 5, 2010 at 3:17 PM, Mauro Cavalcanti <mau...@gm...> wrote: > Dear Gökhan, > > Thanks for your reply, but unfortunately it was not entirely helpful. > > The rectangle_selector.py exemple indeed seems to do what I want, by > means of a callback function, however in the example program this > function should print the rectangle coordinates to the screen but it > does nothing. > > Check the shell where you called the script. It updates when select a region and release the mouse. > BTW, where is the documentation for the matplotlib.widgets classes? I > could find none. > Just browse the actual source .../lib/matplotlib/widgets.py. Classes are methods are nicely documented. I would suggest you to use IPython to access the docstrings with ease. import matplotlib.widgets as w w? w.<TAB> > > Best regards, > > 2010/4/5 Gökhan Sever <gok...@gm...>: > > > > > > On Mon, Apr 5, 2010 at 6:39 AM, Mauro Cavalcanti <mau...@gm...> > wrote: > >> > >> Dear ALL, > >> > >> Good morning... Here is a question that may already have been asked > >> (and answered), but not to my knowledge. Matplotlib's figure windows > >> come with that handy navigation bar, which includes a Pan/Zoom button > >> and a Zoom-to-rectangle button. Once a zoom rectangle is defined on a > >> figure, is it possible to get the coordinates of it (that is, the > >> lower and upper corner coordinates which define the zoom rectangle)? > >> If so, how can this be done? > >> > >> Thanks in advance for any reply. > >> > >> With best regards, > >> > >> -- > >> Dr. Mauro J. Cavalcanti > >> P.O. Box 46521, CEP 20551-970 > >> Rio de Janeiro, RJ, BRASIL > >> E-mail: mau...@gm... > >> Web: http://sites.google.com/site/maurobio > >> Linux Registered User #473524 * Ubuntu User #22717 > > > > Hi, > > > > Search for zoom_window.py and rectangle_selector.py in your matplotlib > > examples directory. > > > > -- > > Gökhan > > > > > > -- > Dr. Mauro J. Cavalcanti > P.O. Box 46521, CEP 20551-970 > Rio de Janeiro, RJ, BRASIL > E-mail: mau...@gm... > Web: http://sites.google.com/site/maurobio > Linux Registered User #473524 * Ubuntu User #22717 > -- Gökhan |
|
From: Alan G I. <ala...@gm...> - 2010-04-05 22:25:27
|
On 4/5/2010 5:08 PM, Josh Hemann wrote: > Here is the new graphic. > > http://old.nabble.com/file/p28144782/Full5%252B8%252B2_vs_Bulk1%252B2.png > Nice. You might want to see http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR if you have not already. Alan Isaac |
|
From: Josh H. <jh...@vn...> - 2010-04-05 21:08:46
|
OK, I am in business. I read through the code that Alan linked to which helped me understand what to do, which does not involve overlaying any images. So, this thread is a dead end with respect to the original question. Here is the new graphic. http://old.nabble.com/file/p28144782/Full5%252B8%252B2_vs_Bulk1%252B2.png In a publication I think I would need to mention the date range for the sparklines. I like this, it is visually dense (marginal time series behavior, marginal density, and relationship between two variables) but does not seem cluttered. I'll post code tonight... ----- Josh Hemann Statistical Advisor http://www.vni.com/ Visual Numerics jhemann at vni dizzot com -- View this message in context: http://old.nabble.com/How-to-overlay-an-image-on-a-multi-plot--tp28111498p28144782.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Josh H. <jh...@vn...> - 2010-04-05 18:58:16
|
Alan, Thanks much for that link. I started playing with this code and after some hacking I might get what I need. If I cobble this together successfully I'll post the results and the code. Josh ----- Josh Hemann Statistical Advisor http://www.vni.com/ Visual Numerics jhemann at vni dizzot com -- View this message in context: http://old.nabble.com/How-to-overlay-an-image-on-a-multi-plot--tp28111498p28143553.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Eric F. <ef...@ha...> - 2010-04-05 18:54:38
|
Michael Droettboom wrote: > All of those calls to "open" are being generated from the pytz import -- > which is why pytz seems like the likely candidate. Is it possible you > have pytz installed as a compressed egg, or on a remote disk, or > something that may be causing a file reading penalty? Mike, The pytz import time, at nearly 1/3 of the total mpl import time, is crazy even on linux, given that it adds only a tiny bit of functionality, and as far as I can see, even that is only rarely used. Therefore I have committed a change so that it is imported only if and when it is required. Our examples still work, after I modified one that was trying to import timezone from mpl.dates (although it was not actually using timezone). This probably illustrates the way in which this change may break some user code: user programs requiring pytz.timezone and pytz.tzinfo will have to import them directly instead of getting them from mpl.dates. I hope this is acceptable; importing them from mpl.dates seems like bad practice anyway, since mpl.dates was not using them or modifying them but was just passing them on from pytz. I suspect pytz could be redesigned so that it would not be so horrendously slow to import, but I am not going to tackle that. After the change: efiring@manini:~$ time python -c "import pylab" real 0m0.441s user 0m0.372s sys 0m0.064s Before the change: efiring@manini:~$ time python -c "import pylab" real 0m0.626s user 0m0.480s sys 0m0.124s Again, this is recent linux on a 3-year-old laptop. Eric > > As Eric said, make sure you time the "import pytz" in a clean Python > session -- if a module is already imported in the Python interpreter, it > won't be reimported. > > Mike > > |