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
(1) |
2
|
3
(10) |
4
(17) |
5
(7) |
6
(21) |
7
(15) |
8
(6) |
9
(7) |
10
(8) |
11
(6) |
12
(11) |
13
(11) |
14
(13) |
15
(4) |
16
(5) |
17
(8) |
18
(8) |
19
(15) |
20
(3) |
21
(10) |
22
(5) |
23
(7) |
24
(8) |
25
(29) |
26
(26) |
27
(7) |
28
(2) |
29
(3) |
30
(3) |
|
|
|
|
|
|
On 2012年09月08日 3:50 AM, Jody Klymak wrote: > Ack, OK, to answer my own question... > > Somehow ipython was caching the definition of jmkfigure, so changing the > module in the jmkfigure.py file did not actually change the version > ipython was using. Running a new version of ipython, it worked fine. Jody, This is one of the big differences between python and matlab: in matlab, if an m-file has changed within a session, the change is immediately effective. The python "import" statement is very different. If a module has been imported, then a subsequent "import" of it does not re-read the file, even if it has changed. There is a "reload" builtin function that will re-read a file, but it is rarely used. It reloads only the specified module, not modules that use it. Ipython has a recursive dreload (for deep reload) function, but I don't use that, either; I just do what you did, start a new instance of ipython. In ipython, the %run magic is useful for developing and modifying a single module or script at at time, making changes and testing without restarting ipython. Eric > > Sorry for the chatter, and thanks for the pointers.. > Cheers, Jody > > On Sep 8, 2012, at 6:18 AM, Jody Klymak <jk...@uv... > <mailto:jk...@uv...>> wrote: > >> Hi all, >> >> Thats what I thought too: >> >> I have: jmkfigure.py: >> >> =============== >> from pylab import * >> >> def jmkfigure(): >> rc('figure',figsize=(3+3/8,8.5/2),dpi=96) >> rc('font',size=9); >> =========== >> >> and test.py: >> >> ========= >> from pylab import * >> >> from jmkfigure import * >> >> jmkfigure() >> figure(1) >> plot([1,2,3]); >> >> show() >> ============== >> >> >>> run test.py >> >> yields a traceback ending w/: >> >> =========== >> Users/jklymak/teaching/Phy411/project/jmkfigure.py in jmkfigure() >> 1 from pylab import * >> ----> 2 >> 3 def jmkfigure(): >> 4 rc('figure',figsize=(3+3/8,8.5/2),dpi=96) >> 5 rc('font',size=9); >> >> NameError: global name 'rc' is not defined >> ======== >> >> Same error if I just import "rc" from matplot lib.... >> >> Is it some strange set up problem? If I put the same def in test.py >> it works fine... >> >> Thanks, Jody >> >> On Sep 7, 2012, at 22:52 PM, Paul Tremblay <pau...@gm... >> <mailto:pau...@gm...>> wrote: >> >>> in your jmkfile.py you should have >>> >>> from pylab import * >>> >>> Paul >>> >>> >>> On 9/8/12 12:45 AM, Jody Klymak wrote: >>>> Hi All, >>>> >>>> Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. >>>> >>>> Inhttp://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: >>>> """ >>>> If you like to work interactively, and need to create different sets >>>> of defaults for figures (eg one set of defaults for publication, one >>>> set for interactive exploration), you may want to define some >>>> functions in a custom module that set the defaults, eg >>>> >>>> def set_pub(): >>>> rc('font', weight='bold') # bold fonts are easier to see >>>> >>>> Then as you are working interactively, you just need to do >>>> >>>>>>> set_pub() >>>> """ >>>> >>>> Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling >>>> >>>> from jmkfigure import * >>>> >>>> set_pub() >>>> >>>> yields the error: "NameError: global name 'rc' is not defined" >>>> >>>> I tried importing matplotlib and rc into jmkfigure.py, but to no avail. >>>> >>>> I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. >>>> >>>> Thanks for any help, >>>> >>>> Cheers, Jody >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. >>> Discussions >>> will include endpoint security, mobile security and the latest in >>> malware >>> threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> <mailto:Mat...@li...> >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> -- >> Jody Klymak >> http://web.uvic.ca/~jklymak/ >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> <mailto:Mat...@li...> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > Jody Klymak > http://web.uvic.ca/~jklymak/ > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
Ack, OK, to answer my own question... Somehow ipython was caching the definition of jmkfigure, so changing the module in the jmkfigure.py file did not actually change the version ipython was using. Running a new version of ipython, it worked fine. Sorry for the chatter, and thanks for the pointers.. Cheers, Jody On Sep 8, 2012, at 6:18 AM, Jody Klymak <jk...@uv...> wrote: > Hi all, > > Thats what I thought too: > > I have: jmkfigure.py: > > =============== > from pylab import * > > def jmkfigure(): > rc('figure',figsize=(3+3/8,8.5/2),dpi=96) > rc('font',size=9); > =========== > > and test.py: > > ========= > from pylab import * > > from jmkfigure import * > > jmkfigure() > figure(1) > plot([1,2,3]); > > show() > ============== > > >>> run test.py > > yields a traceback ending w/: > > =========== > Users/jklymak/teaching/Phy411/project/jmkfigure.py in jmkfigure() > 1 from pylab import * > ----> 2 > 3 def jmkfigure(): > 4 rc('figure',figsize=(3+3/8,8.5/2),dpi=96) > 5 rc('font',size=9); > > NameError: global name 'rc' is not defined > ======== > > Same error if I just import "rc" from matplot lib.... > > Is it some strange set up problem? If I put the same def in test.py it works fine... > > Thanks, Jody > > On Sep 7, 2012, at 22:52 PM, Paul Tremblay <pau...@gm...> wrote: > >> in your jmkfile.py you should have >> >> from pylab import * >> >> Paul >> >> >> On 9/8/12 12:45 AM, Jody Klymak wrote: >>> Hi All, >>> >>> Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. >>> >>> In http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: >>> """ >>> If you like to work interactively, and need to create different sets >>> of defaults for figures (eg one set of defaults for publication, one >>> set for interactive exploration), you may want to define some >>> functions in a custom module that set the defaults, eg >>> >>> def set_pub(): >>> rc('font', weight='bold') # bold fonts are easier to see >>> >>> Then as you are working interactively, you just need to do >>> >>>>>> set_pub() >>> """ >>> >>> Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling >>> >>> from jmkfigure import * >>> >>> set_pub() >>> >>> yields the error: "NameError: global name 'rc' is not defined" >>> >>> I tried importing matplotlib and rc into jmkfigure.py, but to no avail. >>> >>> I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. >>> >>> Thanks for any help, >>> >>> Cheers, Jody >>> >>> >>> >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > Jody Klymak > http://web.uvic.ca/~jklymak/ > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/
Hi all, Thats what I thought too: I have: jmkfigure.py: =============== from pylab import * def jmkfigure(): rc('figure',figsize=(3+3/8,8.5/2),dpi=96) rc('font',size=9); =========== and test.py: ========= from pylab import * from jmkfigure import * jmkfigure() figure(1) plot([1,2,3]); show() ============== >>> run test.py yields a traceback ending w/: =========== Users/jklymak/teaching/Phy411/project/jmkfigure.py in jmkfigure() 1 from pylab import * ----> 2 3 def jmkfigure(): 4 rc('figure',figsize=(3+3/8,8.5/2),dpi=96) 5 rc('font',size=9); NameError: global name 'rc' is not defined ======== Same error if I just import "rc" from matplot lib.... Is it some strange set up problem? If I put the same def in test.py it works fine... Thanks, Jody On Sep 7, 2012, at 22:52 PM, Paul Tremblay <pau...@gm...> wrote: > in your jmkfile.py you should have > > from pylab import * > > Paul > > > On 9/8/12 12:45 AM, Jody Klymak wrote: >> Hi All, >> >> Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. >> >> In http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: >> """ >> If you like to work interactively, and need to create different sets >> of defaults for figures (eg one set of defaults for publication, one >> set for interactive exploration), you may want to define some >> functions in a custom module that set the defaults, eg >> >> def set_pub(): >> rc('font', weight='bold') # bold fonts are easier to see >> >> Then as you are working interactively, you just need to do >> >>>>> set_pub() >> """ >> >> Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling >> >> from jmkfigure import * >> >> set_pub() >> >> yields the error: "NameError: global name 'rc' is not defined" >> >> I tried importing matplotlib and rc into jmkfigure.py, but to no avail. >> >> I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. >> >> Thanks for any help, >> >> Cheers, Jody >> >> >> >> >> >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Jody Klymak http://web.uvic.ca/~jklymak/
On 2012年09月07日 7:52 PM, Paul Tremblay wrote: > in your jmkfile.py you should have > > from pylab import * Or to be more pythonic, import only what you actually need in a given module, e.g., from matplotlib import rc Eric > > Paul > > > > On 9/8/12 12:45 AM, Jody Klymak wrote: >> Hi All, >> >> Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. >> >> Inhttp://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: >> """ >> If you like to work interactively, and need to create different sets >> of defaults for figures (eg one set of defaults for publication, one >> set for interactive exploration), you may want to define some >> functions in a custom module that set the defaults, eg >> >> def set_pub(): >> rc('font', weight='bold') # bold fonts are easier to see >> >> Then as you are working interactively, you just need to do >> >>>>> set_pub() >> """ >> >> Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling >> >> from jmkfigure import * >> >> set_pub() >> >> yields the error: "NameError: global name 'rc' is not defined" >> >> I tried importing matplotlib and rc into jmkfigure.py, but to no avail. >> >> I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. >> >> Thanks for any help, >> >> Cheers, Jody >> >> >> >> >> >> > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
in your jmkfile.py you should have from pylab import * Paul On 9/8/12 12:45 AM, Jody Klymak wrote: > Hi All, > > Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. > > In http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: > """ > If you like to work interactively, and need to create different sets > of defaults for figures (eg one set of defaults for publication, one > set for interactive exploration), you may want to define some > functions in a custom module that set the defaults, eg > > def set_pub(): > rc('font', weight='bold') # bold fonts are easier to see > > Then as you are working interactively, you just need to do > >>>> set_pub() > """ > > Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling > > from jmkfigure import * > > set_pub() > > yields the error: "NameError: global name 'rc' is not defined" > > I tried importing matplotlib and rc into jmkfigure.py, but to no avail. > > I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. > > Thanks for any help, > > Cheers, Jody > > > > > >
Hi All, Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was fair-ish game to post here. In http://matplotlib.sourceforge.net/examples/pylab_examples/customize_rc.html it says: """ If you like to work interactively, and need to create different sets of defaults for figures (eg one set of defaults for publication, one set for interactive exploration), you may want to define some functions in a custom module that set the defaults, eg def set_pub(): rc('font', weight='bold') # bold fonts are easier to see Then as you are working interactively, you just need to do >>> set_pub() """ Which I thought was great, because I'd like to have some presets for different journals. However, saving the def into a file (jmkfigure.py) and calling from jmkfigure import * set_pub() yields the error: "NameError: global name 'rc' is not defined" I tried importing matplotlib and rc into jmkfigure.py, but to no avail. I appreciate this is a scoping issue with python, but I can't figure out how to set rc from within an external module. Thanks for any help, Cheers, Jody