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
(17) |
3
(9) |
4
(5) |
5
(5) |
6
(2) |
7
|
8
(7) |
9
(6) |
10
(1) |
11
(4) |
12
(12) |
13
(7) |
14
(1) |
15
|
16
|
17
(12) |
18
(11) |
19
(6) |
20
(6) |
21
(2) |
22
(5) |
23
(1) |
24
(4) |
25
(6) |
26
(3) |
27
(2) |
28
|
29
(2) |
30
(12) |
31
(8) |
|
|
|
From: Sterling S. <sm...@fu...> - 2013-07-29 16:48:30
|
Chao, From your description, it is clear that you are using a very customized application of axes placement and design. The only method that I see for replacing your current setup with Subplots (I use the upper case to denote the instances of the class, which do respond to the left/right/wspace parameters) is the following (untested): {{{ fig,axs = plt.subplots(2,3) for i,ax in enumerate(axs.flat): ax.plot(time,data) ymin,ymax = ax.get_ylim() ax.set_ylim(ymin=ymin,ymax=ymin+2*(ymax-ymin)) labels = ax.get_yticklabels() for l in labels: if float(l.get_text()) > ymax: l.set_visible(False) ax2 = ax.twinx() ymin,ymax = ax2.get_ylim() ax2.set_ylim(ymin=ymax-2*(ymax-ymin),ymax=ymax) labels = ax2.get_yticklabels() for l in labels: if float(l.get_text()) < ymin: l.set_visible(False) }}} Some of this is inspired by http://matplotlib.org/examples/api/two_scales.html and similar examples/applications. Hope that helps, Sterling On Jul 27, 2013, at 6:10AM, ChaoYue wrote: > Hi, thanks. > > the attached is what I achieved so far. Looks quite nice. > > each subplot visible now actually contains two mat.axes.Axes object (with bottom and top spines invisible) > which is created by using the fig.add_axes, before the place occupied by the two axes now is actually > only one single subplot ojbect, which is created by using fig,axs = plt.subplots(2,3). something like this: > > for ax in axs.flatten(): > #some way to find the position of the two new axes > sub1 = fig.add_axes(....) > sub2 = fig.add_axes(....) > fig.delaxes(ax) > > Now the problem is that all the original subplots have been removed, replaced by 2X6 mat.axes.Axes, > But they don't respond to any operation in the interacitve window (like, you can use your mouse to select > the left/righ/wspace etc....) > > I hope I am clear. thanks! > > cheers, > > Chao > > On Fri, Jul 26, 2013 at 5:55 PM, Sterling Smith [via matplotlib] <[hidden email]> wrote: > Chao, > > You are right, fig.add_subplot does not support precise positioning. Why don't you send a picture of a sample layout you have obtained with add_axes? > > -Sterling > > On Jul 26, 2013, at 1:26AM, ChaoYue wrote: > > > Dear Sterling, > > > > thanks for your answer. The idea is that I would like to add a subplot with precise position, as in the method of fig.add_axes? > > Does fig.add_subplot support this, I tried fig.add_subplot(position=(0.2,0.2,0.1,0.1)) but it does not work... > > > > thanks! > > > > Chao > > > > On Thu, Jul 25, 2013 at 8:09 PM, Sterling Smith [via matplotlib] <[hidden email]> wrote: > > > Chao, > > > > plt.subplots returns a figure instance. Can you use the add_subplot method of that figure instance to make your new axes? If so, then I think that they should respond to the new requests for left/right/bottom/wspace space. > > > > -Sterling > > > > On Jul 25, 2013, at 10:06AM, Chao YUE wrote: > > > > > Dear all, > > > > > > First I make some subplots using the plt.subplots command, > > > then I use mat.figure.Figure.delaxes to delete the axes, and add some small new ones > > > in the same space by using mat.figure.Figure.add_axes, but I find after rendering the > > > figure in the interative window, I cannot adjust the left/right/bottom/wspace etc in a > > > interactive way, the old subplots that are generated using plt.subplots command will > > > move, and the new ones generated using mat.figure.Figure.add_axes just don't > > > move at all, so what should I do if I want the new ones also move? Because > > > the interative window is really useful when you want to have figures quickly. > > > > > > thanks a lot for any hints. > > > > > > cheers, > > > > > > Chao > > > > > > -- > > > *********************************************************************************** > > > Chao YUE > > > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > > > UMR 1572 CEA-CNRS-UVSQ > > > Batiment 712 - Pe 119 > > > 91191 GIF Sur YVETTE Cedex > > > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > > ************************************************************************************ > > > ------------------------------------------------------------------------------ > > > See everything from the browser to the database with AppDynamics > > > Get end-to-end visibility with application monitoring from AppDynamics > > > Isolate bottlenecks and diagnose root cause in seconds. > > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_______________________________________________ > > > Matplotlib-users mailing list > > > > [hidden email] > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Matplotlib-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > > > If you reply to this email, your message will be added to the discussion below: > > http://matplotlib.1069221.n5.nabble.com/how-to-make-mat-figure-Figure-add-axes-generated-axes-adjustable-with-the-interactive-tool-tp41610p41611.html > > To start a new topic under matplotlib - users, email [hidden email] > > To unsubscribe from matplotlib, click here. > > > NAML > > > > > > > > -- > > *********************************************************************************** > > Chao YUE > > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > > UMR 1572 CEA-CNRS-UVSQ > > Batiment 712 - Pe 119 > > 91191 GIF Sur YVETTE Cedex > > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > > > > View this message in context: Re: how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool? > > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_______________________________________________ > > Matplotlib-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > If you reply to this email, your message will be added to the discussion below: > http://matplotlib.1069221.n5.nabble.com/how-to-make-mat-figure-Figure-add-axes-generated-axes-adjustable-with-the-interactive-tool-tp41610p41615.html > To start a new topic under matplotlib - users, email [hidden email] > To unsubscribe from matplotlib, click here. > NAML > > > > -- > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > ************************************************************************************ > > eg1.jpg (319K) Download Attachment > > View this message in context: Re: how to make mat.figure.Figure.add_axes generated axes adjustable with the interactive tool? > Sent from the matplotlib - users mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk_______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Frédéric P. <par...@gm...> - 2013-07-29 14:34:14
|
Currently, one call figures with their number in matplotlib. If you have a code which draw a lot a different figures at different places with some of them being optional, this is not very convenient. One convenient way to call figure would be to use a dictionnary of figures. Of course I could create some wrapper around matplotlib.figure function but it would be far more convenient if such feature would be standard in matplotlib. Is there any plan to implement such a feature? Best regards, Frédéric Parrenin |