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-26 15:54:06
|
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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: ChaoYue <cha...@gm...> - 2013-07-26 08:26:46
|
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] < ml-...@n5...> 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] <http://user/SendEmail.jtp?type=node&node=41611&i=0> > > 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] <http://user/SendEmail.jtp?type=node&node=41611&i=1> > 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 > ml-...@n5... > To unsubscribe from matplotlib, click here<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=Y2hhb3l1ZWpveUBnbWFpbC5jb218MnwxMzg1NzAzMzQx> > . > NAML<http://matplotlib.1069221.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.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: http://matplotlib.1069221.n5.nabble.com/how-to-make-mat-figure-Figure-add-axes-generated-axes-adjustable-with-the-interactive-tool-tp41610p41614.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Paul H. <pmh...@gm...> - 2013-07-25 21:01:42
|
On Thu, Jul 25, 2013 at 12:16 PM, Jeffrey Spencer <jef...@gm...>wrote: > I want to use IPA vowel labels in my figures and to do that I need to load > the package in latex \usepackage{tipa}. Is this possible as searching > online besides using the new backend "pgf" I haven't seen how to manually > select latex packages to load when using tex. Is this possible? > You can set the tex preample without using the "pgf" backend. Here's how I'm setup: impot matplotlib matplotlib.rcParams['text.usetex'] Out[12]: True matplotlib.rcParams['text.latex.preamble'] Out[13]: ['\\usepackage{siunitx}', '\\sisetup{detect-all}', '\\usepackage{helvet}', '\\usepackage{sansmath}', '\\sansmath'] |
From: Jeffrey S. <jef...@gm...> - 2013-07-25 19:16:26
|
I want to use IPA vowel labels in my figures and to do that I need to load the package in latex \usepackage{tipa}. Is this possible as searching online besides using the new backend "pgf" I haven't seen how to manually select latex packages to load when using tex. Is this possible? Also a side note is everytime when running ipython qtconsole and if I select text.usetex = True in my .matplotlibrc or by running rcParams.update() the kernal always seems to force a restart. It seems it gets snagged in the external call to latex. It still works fine but a message pops up constantly telling you the kernal needs to be restarted. |
From: Sterling S. <sm...@fu...> - 2013-07-25 18:07:32
|
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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Chao Y. <cha...@gm...> - 2013-07-25 17:06:27
|
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 ************************************************************************************ |
From: Gurinder S. G. <gsg...@gm...> - 2013-07-25 11:59:07
|
Thanks for replying Ben , i am using Matplotlib v_1.2.1 (installed using source) and am following embedding_in_gtk3.py, basic_anim.py and simple_anim.py. basically i am trying to merge embedding_in_gtk3.py with simple_anim.py so that i have an gtk3 Main window and inside it i am plotting continuous graph. I have done this using plt.show() function but at that time i was using gtk2.0 so i couldn’t integrate the plot inside my gtk3 window. So when ever i clicked plot button , it would pop off another window and start plot. (I dont want this) Thanks for the reply Regards, Gurinder Singh Gill On Wed, Jul 24, 2013 at 7:15 PM, Benjamin Root <ben...@ou...> wrote: > > > > On Wed, Jul 24, 2013 at 3:09 AM, Gurinder Singh Gill <gsg...@gm...>wrote: > >> I am using python 2.7 and matplotlib animations example . >> when i am using gtk2 as a reference the plots works fine >> but when i change the backend to gtk3 i start getting errors . >> can someone help with that >> how to work with animations / blit in gtk3 >> >> > It would be helpful to know which version of matplotlib you are using, > which example you are referring to (I can guess, but I would rather know > for sure) and/or a minimal self-contained example that demonstrates the > problem you are having. > > Cheers! > Ben Root > |
From: Michiel de H. <mjl...@ya...> - 2013-07-25 10:02:42
|
Depending on the backend, you may be able to use f = plt.figure() f.canvas.flush_events() Also, I would suggest to clear the image each time you go through the loop, otherwise you'll end up with a huge number of images on top of each other. Best, -Michiel. ________________________________ From: zsero <zso...@gm...> To: mat...@li... Sent: Thursday, July 25, 2013 12:05 AM Subject: [Matplotlib-users] How to update matplotlib's imshow() window interactively? I'm working on some computer vision algorithm and I'd like to show how a numpy array changes in each step. What works now is that if I have a simple imshow( array ) at the end of my code, the window displays and shows the final image. However what I'd like to do is to update and display the imshow window as the image changes in each iteration. So for example I'd like to do: import numpy as np import matplotlib.pyplot as plt import time array = np.zeros( (100, 100), np.uint8 ) for i in xrange( 0, 100 ): for j in xrange( 0, 50 ): array[j, i] = 1 #_show_updated_window_briefly_ plt.imshow( array ) time.sleep(0.1) The problem is that this way, the Matplotlib window doesn't get activated, only once the whole computation is finished. I've tried both native matplotlib and pyplot, but the results are the same. For plotting commands I found an .ion() switch, but here it doesn't seem to work. Q1. What is the best way to continuously display updates to a numpy array (actually a uint8 greyscale image)? Q2. Is it possible to do this with an animation function, like in the dynamic image example? I'd like to call a function inside a loop, thus I don't know how to achieve this with an animation function. ________________________________ View this message in context: How to update matplotlib's imshow() window interactively? 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: Sivaram N. <nsi...@gm...> - 2013-07-24 18:40:20
|
I'm trying to plot 6 plots onto A4 papersize dimensions as 3x2 images. While I've got the plots, the y axis scale is puzzling me. The data is index ticker data(it doesn't go negative at all) but the scale goes from -1000 to max index for the 2nd to 6th plot. I had to use something like ax3.axis([x[1], x[-1], 0.8 * y_min, 1.1 * y_max]) to fix it. You can see the difference in the 2nd plot versus the rest. The code is here http://pastebin.com/mhUHSpLe and the image here http://imgur.com/frNjth3 sivaram p.s this is my first try using matplotlib -- |
From: zsero <zso...@gm...> - 2013-07-24 15:06:01
|
I'm working on some computer vision algorithm and I'd like to show how a numpy array changes in each step.What works now is that if I have a simple imshow( array ) at the end of my code, the window displays and shows the final image.However what I'd like to do is to update and display the imshow window as the image changes in each iteration.So for example I'd like to do:The problem is that this way, the Matplotlib window doesn't get activated, only once the whole computation is finished.I've tried both native matplotlib and pyplot, but the results are the same. For plotting commands I found an .ion() switch, but here it doesn't seem to work.Q1. What is the best way to continuously display updates to a numpy array (actually a uint8 greyscale image)?Q2. Is it possible to do this with an animation function, like in the dynamic image example? I'd like to call a function inside a loop, thus I don't know how to achieve this with an animation function. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/How-to-update-matplotlib-s-imshow-window-interactively-tp41599.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Benjamin R. <ben...@ou...> - 2013-07-24 13:45:52
|
On Wed, Jul 24, 2013 at 3:09 AM, Gurinder Singh Gill <gsg...@gm...>wrote: > I am using python 2.7 and matplotlib animations example . > when i am using gtk2 as a reference the plots works fine > but when i change the backend to gtk3 i start getting errors . > can someone help with that > how to work with animations / blit in gtk3 > > It would be helpful to know which version of matplotlib you are using, which example you are referring to (I can guess, but I would rather know for sure) and/or a minimal self-contained example that demonstrates the problem you are having. Cheers! Ben Root |
From: Gurinder S. G. <gsg...@gm...> - 2013-07-24 07:09:40
|
I am using python 2.7 and matplotlib animations example . when i am using gtk2 as a reference the plots works fine but when i change the backend to gtk3 i start getting errors . can someone help with that how to work with animations / blit in gtk3 |
From: Mark B. <ma...@gm...> - 2013-07-23 04:40:41
|
Hello List, I want to make dashes that alternate in color, red, white, blue. Or black, yellow, red, etc. I thought I could overlay different dashes (first draw the black, then the yellow then the red dashes), but the 'dashes' command always starts with a colored dash. What I need is the opposite, start with a blank, then a dash. Or have an offset of xx points and then start the dashed line. Does matplotlib have such a feature? Thanks, Mark |
From: Paul H. <pmh...@gm...> - 2013-07-22 20:06:09
|
Guilherme, Check out my implementation of windroses here: https://github.com/phobson/python-metar/blob/master/metar/graphics.py#L138 On Mon, Jul 22, 2013 at 11:54 AM, Guilherme Araújo Martins < ga...@gl...> wrote: > Hello guys. > I'm having a problem with a matplot graphic and I guess it can be easy for > Python experts to solve. Hope I'm not out of topic here. > > Basically, I'm using this code... > http://matplotlib.org/examples/pylab_examples/polar_bar.html > > ... but I want to turn it in something like this graphic over here... > http://www.weathersa.co.za/web/images/articles/windrose.png > > You see, where more than one bar pointing the same direction will be put > one over the other (the biggest in the base and the smallest at the top). I > assumed I had to put some function at this part of the code: > > bars = ax.bar(theta, radii, width=width, bottom=0.0) > > Turning Bottom into a function call somewhat related to the radii (bar > size) if both bars have the same theta (angle). Point is I'm having some > trouble doing that. I'm totally stuck, actually. > > If not a complete solution, some tip would be apreciated. > > Thank you very much! > > > ------------------------------------------------------------------------------ > 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: Jody K. <jk...@uv...> - 2013-07-22 19:37:19
|
Hi Guilherme On Jul 22, 2013, at 20:54 PM, Guilherme Araújo Martins <ga...@gl...> wrote: > Basically, I'm using this code... > http://matplotlib.org/examples/pylab_examples/polar_bar.html > > ... but I want to turn it in something like this graphic over here... > http://www.weathersa.co.za/web/images/articles/windrose.png > > You see, where more than one bar pointing the same direction will be put one over the other (the biggest in the base and the smallest at the top). I assumed I had to put some function at this part of the code: > > bars = ax.bar(theta, radii, width=width, bottom=0.0) > > Turning Bottom into a function call somewhat related to the radii (bar size) if both bars have the same theta (angle). Point is I'm having some trouble doing that. I'm totally stuck, actually. For each direction, just plot the largest one first, and the smallest one last and set_alpha = 1. Cheers, Jody -- Jody Klymak http://web.uvic.ca/~jklymak/ |
From: Guilherme A. M. <ga...@gl...> - 2013-07-22 19:23:28
|
Hello guys. I'm having a problem with a matplot graphic and I guess it can be easy for Python experts to solve. Hope I'm not out of topic here. Basically, I'm using this code... http://matplotlib.org/examples/pylab_examples/polar_bar.html ... but I want to turn it in something like this graphic over here... http://www.weathersa.co.za/web/images/articles/windrose.png You see, where more than one bar pointing the same direction will be put one over the other (the biggest in the base and the smallest at the top). I assumed I had to put some function at this part of the code: bars = ax.bar(theta, radii, width=width, bottom=0.0) Turning Bottom into a function call somewhat related to the radii (bar size) if both bars have the same theta (angle). Point is I'm having some trouble doing that. I'm totally stuck, actually. If not a complete solution, some tip would be apreciated. Thank you very much! |
From: Sterling S. <sm...@fu...> - 2013-07-22 17:09:02
|
On Jul 20, 2013, at 3:04PM, Tommy Grav wrote: > On Jul 20, 2013, at 11:19 AM, Michiel de Hoon <mjl...@ya...> wrote: > > Ok, so with a long list of print statements I have tracked it down to > the statement > > import matplotlib._png as _png > > in image.py. Tommy, Instead of a lot of print statements, you can use python -v if you are starting from a python interpreter. -Sterling |
From: Brian B. <fo...@gm...> - 2013-07-22 15:18:58
|
Greetings all, I have this problem now as well. I use a Mac with Canopy installed and it was working fine until I recently updated my packages and got the new matplotlib. The code which reproduces this error for me is very simple: {{{ x = scipy.random.normal(0,1,100) f = figure(num=1) f.clear() ax = f.add_subplot(111) ns,bns,plt0 = ax.hist(x,bins=10,log=True) plt1 = ax.bar(bns[0:-1],ns,width=bns[1:]-bns[0:-1],color='r',log=True) draw() }}} The code works fine if one comments out the ax.bar usage but fails otherwise. I have tried multiple different kwargs or removing the second "log=True" and all result in the same TypeError. Regards, Brian On Apr 18, 2013, at 12:42 PM, Michael Droettboom <md...@st...> wrote: > Can you please provide a complete, minimal and self-contained script > that reproduces the error? The example below has many undefined > variables etc. > > Cheers, > Mike > > On 04/16/2013 07:09 PM, Christophe Pettus wrote: >> # preamble code collecting data >> >> ind = np.arange(len(table_name)) >> >> width = 0.35 >> >> fig = plot.figure(figsize=DEFAULT_FIGURE_SIZE) >> ax = fig.add_subplot(111, axisbg='#fafafa', alpha=0.9) >> >> ax.set_title('Largest Tables') >> >> ax.set_xlabel('Size (log scale)') >> >> ax.set_xscale('log') >> ax.grid(True) >> >> ax.xaxis.set_major_formatter(FuncFormatter(magnitude_ticks)) >> >> dbar = ax.barh(ind, data_size, width, linewidth=0, color='blue', label='Main Data') # exception here >> ibar = ax.barh(ind, index_toast_size, width, left=data_size, linewidth=0, color='red', label='Toast/Indexes') >> ax.set_yticks(ind + width/2) >> ax.set_yticklabels(table_name, fontproperties=xx_small_font) >> >> ax.legend(loc='lower right', prop=x_small_font) >> >> plot.tight_layout() >> >> plot.savefig(REPORT_DIR_PATH + '/table_sizes.pdf') >> >> plot.close() > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Mag G. <mag...@gm...> - 2013-07-21 06:29:40
|
http://instanterectionpill.com/httpva/nokcycbm.ceephnjld Mag Gam 7/21/2013 7:29:27 AM |
From: Michiel de H. <mjl...@ya...> - 2013-07-21 05:04:22
|
See pull request 2233: https://github.com/matplotlib/matplotlib/pull/2233 This pull request adds a .stop() method to timers in the MacOSX backend. Best, -Michiel. ________________________________ From: Michiel de Hoon <mjl...@ya...> To: Brendan Barnwell <bre...@br...>; "mat...@li..." <mat...@li...> Sent: Friday, July 19, 2013 10:44 AM Subject: Re: [Matplotlib-users] timer objects in macosx backend Hi Brendan, Justin, Thanks for your reply. I agree then that a .stop() method is needed. This is not very difficult; I'll try and implement it over the weekend. Best, -Michiel. ________________________________ From: Brendan Barnwell <bre...@br...> To: mat...@li... Sent: Friday, July 19, 2013 3:54 AM Subject: Re: [Matplotlib-users] timer objects in macosx backend On 2013-07-18 06:56, Justin Lazear wrote:> Hi Michiel, > > On my system, deleting the timer has no effect and the timer continues > to send events. The __del__ method seems to call the same unimplemented > _timer_stop method. Regardless, something else has a reference to the > timer (MPL event loop maybe?) and __del__ is not being called once the > timer has been started. It's not clear to me what should be stopping the > timer in that case. > > Does del t stop the timer on your system? If so, could we hunt down what > is happening after you delete the name t that is causing the timer to stop? > > I would personally prefer an explicit .stop() method, since I would > prefer not to rely on the garbage collector's behavior being consistent > (hard to make sure nothing else is holding a reference to timer) when > there is a very well-defined function that does what I want. Relying on "del t" can't be the right solution, since like you note, it only deletes the name, not the object. If you create multiple references to a timer and only del some of them, e.g.: t = fig.canvas.new_timer() x = t del t Then the object's __del__ will definitely not be called yet. It makes sense to have a way to stop the timer directly, regardless of how many names are pointing to it. -- Brendan Barnwell "Do not follow where the path may lead. Go, instead, where there is no path, and leave a trail." --author unknown ------------------------------------------------------------------------------ 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 ------------------------------------------------------------------------------ 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: Scott L. <sl...@sp...> - 2013-07-20 22:17:26
|
On Jul 20, 2013, at 6:04 PM, Tommy Grav <tg...@ma...> wrote: > On Jul 20, 2013, at 11:19 AM, Michiel de Hoon <mjl...@ya...> wrote: > >> Hi Tommy, >> >> Look inside the pyplot.py module. I don't have the code in front of me now, but I guess it's a module that loads a bunch of other modules, and one of those wants to use X11. This should not depend on whether the developers‘ tools are present. >> -michiel > > Ok, so with a long list of print statements I have tracked it down to > the statement > > import matplotlib._png as _png > > in image.py. So there seems to be a bad binding in the _png.so file. Is there > a way to figure out which bindings this file has? otool -L path/to/_png.so will "Display the names and version numbers of the shared libraries that the object file uses" I think otool is installed when you install Xcode. |
From: Tommy G. <tg...@ma...> - 2013-07-20 22:04:39
|
On Jul 20, 2013, at 11:19 AM, Michiel de Hoon <mjl...@ya...> wrote: > Hi Tommy, > > Look inside the pyplot.py module. I don't have the code in front of me now, but I guess it's a module that loads a bunch of other modules, and one of those wants to use X11. This should not depend on whether the developers‘ tools are present. > -michiel Ok, so with a long list of print statements I have tracked it down to the statement import matplotlib._png as _png in image.py. So there seems to be a bad binding in the _png.so file. Is there a way to figure out which bindings this file has? |
From: Michiel de H. <mjl...@ya...> - 2013-07-20 15:20:06
|
Hi Tommy, Look inside the pyplot.py module. I don't have the code in front of me now, but I guess it's a module that loads a bunch of other modules, and one of those wants to use X11. This should not depend on whether the developers‘ tools are present. -michiel ------------------------------ On Sat, Jul 20, 2013 9:16 AM EDT Tommy Grav wrote: > >On Jul 20, 2013, at 9:09 AM, Michiel de Hoon <mjl...@ya...> wrote: > >> >> The MacOSX backend itself does not use X11. So I would suggest to check which modules get loaded when you import pyplot, and see which one of those causes X11 to open. > >Thanks. How do I check which modules get loaded? When I import pyplot a window pops up that explains that X11 is no longer part of the Mac OS X distribution and the python shell exits to the prompt. > >Also are there anything I need to do to make MacOSX available to matplotlib. I have installed XCode, but I notice that there is no longer a /Developer directory at the root level (all developer code resources are not part of XCode application). Could this be causing matplotlib to not find the MacOSX environment? Or am I missing a path or keyword in my bash environment perhaps? > >Cheers > Tommy >------------------------------------------------------------------------------ >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: Tommy G. <tg...@ma...> - 2013-07-20 13:16:39
|
On Jul 20, 2013, at 9:09 AM, Michiel de Hoon <mjl...@ya...> wrote: > > The MacOSX backend itself does not use X11. So I would suggest to check which modules get loaded when you import pyplot, and see which one of those causes X11 to open. Thanks. How do I check which modules get loaded? When I import pyplot a window pops up that explains that X11 is no longer part of the Mac OS X distribution and the python shell exits to the prompt. Also are there anything I need to do to make MacOSX available to matplotlib. I have installed XCode, but I notice that there is no longer a /Developer directory at the root level (all developer code resources are not part of XCode application). Could this be causing matplotlib to not find the MacOSX environment? Or am I missing a path or keyword in my bash environment perhaps? Cheers Tommy |
From: Michiel de H. <mjl...@ya...> - 2013-07-20 13:09:18
|
The MacOSX backend itself does not use X11. So I would suggest to check which modules get loaded when you import pyplot, and see which one of those causes X11 to open. -Michiel ------------------------------ On Fri, Jul 19, 2013 4:14 PM EDT Tommy Grav wrote: >I just installed matplotlib on a new MacBook Pro > >ActivePython 2.7.2.5 (ActiveState Software Inc.) based on >Python 2.7.2 (default, Jun 24 2011, 12:20:15) >[GCC 4.2.1 (Apple Inc. build 5664)] on darwin >Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ >'1.7.1' >>> import matplotlib >>> matplotlib.__version__ >'1.2.1' >>> matplotlib.matplotlib_fname() >'/Users/tgrav/.matplotlib/matplotlibrc' >>> > >That works fine. However, when I try to do > >import matplotlib.pyplot as plt > >it tries to open X11, which I have not installed and would like to >try to avoid. The matplotlibrc file has > >backend : MacOSX > >Anyone know why it is still trying to open X11 and how I can avoid that? > > >------------------------------------------------------------------------------ >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 |