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
(8) |
3
(10) |
4
|
5
(4) |
6
|
7
(5) |
8
(6) |
9
(4) |
10
(12) |
11
(7) |
12
(2) |
13
(2) |
14
(5) |
15
(9) |
16
(4) |
17
(7) |
18
(2) |
19
(12) |
20
(8) |
21
(11) |
22
(11) |
23
(2) |
24
(18) |
25
(18) |
26
(6) |
27
(7) |
28
(10) |
29
(7) |
30
(31) |
31
(10) |
|
Hi all, I am creating a GUI using wxPython and Matplotlib. In it, I am trying to delete an axis in a figure and then adding another axis to the same figure. In essence, I am attempting to dynamically update the figure. I am using pylab.figure. I am using the figure.delaxes function to delete the desired axes. That works fine. I am then changing the geometry of the rest of the axes to update the display. Afterwards, I am trying to append a new axes to the end after updating the other axes (once again using change_geometry). Pseudocode: - delete the selected axis using figure.delaxes(axis) - update the rest of the axes using change_geometry - when it is time to add a new axis -update the current axes using change_geometry -add a subplot to the end This approach works fine if the axes that was deleted was the axis on the end (the last one). If the deleted axis was in the middle or beginning then the figure.add_subplot(...) does not add an axis to the figure. Instead, it returns the previous axis. So if there were two axes left when one axis in the middle was deleted, ie. [axis1, axis2], figure.add_subplot would return axis2 and so the axes list would still be [axis1, axis2] This occurs both in the GUI and when run interactively via PyCrust. Any thoughts on to why this would happen? python 2.7 matplotlib version: 1.1.0 OS X 10.6.8
Gotcha ya working perfectly now thank you for the help! Benjamin Root-2 wrote: > > On Thursday, August 2, 2012, surfcast23 wrote: > >> >> Wouldn't >> >> X= np.ones((1, 45)) >> Y= np.zeros((32, 1)) >> >> change the existing values of the elements to ones and zeros? >> >> > I was just demonstrating what np.broadcast_arrays() does. Take your x and > y arrays and put them through this function and put the outputs into > plot_wireframe(). Ignore the ones() and zeros(). > > Ben Root > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Size-of-array-elements-when-using-Axes3D.plot_wireframe%28X%2C-Y%2C-Z%2C-*args%2C-**kwargs%29-tp34243823p34249265.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Friday, August 3, 2012, surfcast23 wrote: > > I tested it out and it does change all the values to ones and zeros. Is > there > a way to broadcast and keep the original values that were in the arrays? > Thanks for the help > > > Don't use ones() and zeros(). It was just a way to swtup a demonstration since I dont have your data. Use your data instead of my ones() and zeros(). Also, it would be more useful to post your latest version of your code that is causing problems so that we can double-check it, rather than guessing what the problem is. Cheers! Ben Root
I tested it out and it does change all the values to ones and zeros. Is there a way to broadcast and keep the original values that were in the arrays? Thanks for the help Benjamin Root-2 wrote: > > On Thursday, August 2, 2012, surfcast23 wrote: > >> >> Okay thank you! The Matlab code I am basing this on takes arrays of >> different >> shapes with different sized elements ie >> x = 1 512 >> y = 101 1 >> and I guess automatically makes the the same shape. Can you point me in >> the >> direction of documentation that will explain how I can do this in Python? >> >> > Ok, I just double-checked the source for plot_wireframe(). It does not > perform any broadcasting (which I consider to be a bug). > > Until it is fixed, you will have to do the broadcasting yourself: > > X= np.ones((1, 45)) > Y= np.zeros((32, 1)) > x, y = np.broadcast_arrays(X, Y) > > Which produces x and y with the same shapes, and their values duplicated > in > the direction the array was "expanded". > > Pass those into plot_wireframe(). > > Ben Root > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Size-of-array-elements-when-using-Axes3D.plot_wireframe%28X%2C-Y%2C-Z%2C-*args%2C-**kwargs%29-tp34243823p34249203.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Thursday, August 2, 2012, surfcast23 wrote: > > Wouldn't > > X= np.ones((1, 45)) > Y= np.zeros((32, 1)) > > change the existing values of the elements to ones and zeros? > > I was just demonstrating what np.broadcast_arrays() does. Take your x and y arrays and put them through this function and put the outputs into plot_wireframe(). Ignore the ones() and zeros(). Ben Root
sorry misssed this line "Which produces x and y with the same shapes, and their values duplicated in the direction the array was "expanded"." surfcast23 wrote: > > Wouldn't > > X= np.ones((1, 45)) > Y= np.zeros((32, 1)) > > change the existing values of the elements to ones and zeros? > > > Benjamin Root-2 wrote: >> >> On Thursday, August 2, 2012, surfcast23 wrote: >> >>> >>> Okay thank you! The Matlab code I am basing this on takes arrays of >>> different >>> shapes with different sized elements ie >>> x = 1 512 >>> y = 101 1 >>> and I guess automatically makes the the same shape. Can you point me in >>> the >>> direction of documentation that will explain how I can do this in >>> Python? >>> >>> >> Ok, I just double-checked the source for plot_wireframe(). It does not >> perform any broadcasting (which I consider to be a bug). >> >> Until it is fixed, you will have to do the broadcasting yourself: >> >> X= np.ones((1, 45)) >> Y= np.zeros((32, 1)) >> x, y = np.broadcast_arrays(X, Y) >> >> Which produces x and y with the same shapes, and their values duplicated >> in >> the direction the array was "expanded". >> >> Pass those into plot_wireframe(). >> >> Ben Root >> >> ------------------------------------------------------------------------------ >> 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 >> >> > > -- View this message in context: http://old.nabble.com/Size-of-array-elements-when-using-Axes3D.plot_wireframe%28X%2C-Y%2C-Z%2C-*args%2C-**kwargs%29-tp34243823p34249160.html Sent from the matplotlib - users mailing list archive at Nabble.com.
Wouldn't X= np.ones((1, 45)) Y= np.zeros((32, 1)) change the existing values of the elements to ones and zeros? Benjamin Root-2 wrote: > > On Thursday, August 2, 2012, surfcast23 wrote: > >> >> Okay thank you! The Matlab code I am basing this on takes arrays of >> different >> shapes with different sized elements ie >> x = 1 512 >> y = 101 1 >> and I guess automatically makes the the same shape. Can you point me in >> the >> direction of documentation that will explain how I can do this in Python? >> >> > Ok, I just double-checked the source for plot_wireframe(). It does not > perform any broadcasting (which I consider to be a bug). > > Until it is fixed, you will have to do the broadcasting yourself: > > X= np.ones((1, 45)) > Y= np.zeros((32, 1)) > x, y = np.broadcast_arrays(X, Y) > > Which produces x and y with the same shapes, and their values duplicated > in > the direction the array was "expanded". > > Pass those into plot_wireframe(). > > Ben Root > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Size-of-array-elements-when-using-Axes3D.plot_wireframe%28X%2C-Y%2C-Z%2C-*args%2C-**kwargs%29-tp34243823p34249151.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Thursday, August 2, 2012, surfcast23 wrote: > > Okay thank you! The Matlab code I am basing this on takes arrays of > different > shapes with different sized elements ie > x = 1 512 > y = 101 1 > and I guess automatically makes the the same shape. Can you point me in the > direction of documentation that will explain how I can do this in Python? > > Ok, I just double-checked the source for plot_wireframe(). It does not perform any broadcasting (which I consider to be a bug). Until it is fixed, you will have to do the broadcasting yourself: X= np.ones((1, 45)) Y= np.zeros((32, 1)) x, y = np.broadcast_arrays(X, Y) Which produces x and y with the same shapes, and their values duplicated in the direction the array was "expanded". Pass those into plot_wireframe(). Ben Root
Okay thank you! The Matlab code I am basing this on takes arrays of different shapes with different sized elements ie x = 1 512 y = 101 1 and I guess automatically makes the the same shape. Can you point me in the direction of documentation that will explain how I can do this in Python? Benjamin Root-2 wrote: > > On Thursday, August 2, 2012, surfcast23 wrote: > >> >> >> >> surfcast23 wrote: >> > >> > In the documentation it says that Axes3D.plot_wireframe(X, Y, Z, *args, >> > **kwargs) takes 2D arrays as the first two arguments. Do the arrays >> have >> > to have the same size dimensions? >> > >> > >> >> Any one know? > > > Working from memory, the first two have to at least be "broadcastable" > into > the shape of Z. But absolutely, if x, y, and z are 2d, they have to be > the > same shape. It makes no sense otherwise. > > Cheers! > Ben Root > > ------------------------------------------------------------------------------ > 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 > > -- View this message in context: http://old.nabble.com/Size-of-array-elements-when-using-Axes3D.plot_wireframe%28X%2C-Y%2C-Z%2C-*args%2C-**kwargs%29-tp34243823p34248914.html Sent from the matplotlib - users mailing list archive at Nabble.com.
On Aug 2, 2012, at 5:25 PM, John Hunter wrote: > > I also extend my heartfelt thanks to Perry Greenfield and STScI. They > have been supporting matplotlib since 2004 with ideas, code and > developer resources. They employ Michael currently, and are part of > the reason why he is able to take on the leadership of this large > project. > John, it has been our great fortune have joined the matplotlib effort. It saved us an enormous effort. It has been an incredible pleasure working with you. I'm not sure you realize how very much Mike and I hope you can rejoin the matplotlib effort. It will always be there for you. Perry