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
(3) |
2
|
3
|
4
(1) |
5
(3) |
6
(1) |
7
(4) |
8
(6) |
9
(5) |
10
(2) |
11
(3) |
12
(6) |
13
|
14
|
15
(9) |
16
(11) |
17
(4) |
18
(3) |
19
(1) |
20
(2) |
21
(2) |
22
(13) |
23
(4) |
24
(2) |
25
(7) |
26
(1) |
27
(3) |
28
(1) |
29
(2) |
30
(3) |
|
|
|
|
From: Fabrice C. <kap...@ya...> - 2014-09-30 22:14:35
|
Dear list, I would like to display a 2D image in a mplot3d axe in order to combine it with a surface3D or a bar3d plot for instance. The effect I am looking for is similar to what can be seen in the bottom XY plane of http://matplotlib.org/1.4.0/examples/mplot3d/contourf3d_demo2.html, except that I would like to have a custom image instead of the filled contours. I googled the subject and found only messages dating at best from 2010. These messages mentioned that the imshow() method did not work on a mplot3d. Indeed it does not. The only alternatives offered by the googled answer to my problem were to switch to VTK or Mayavi. For one thing, I never managed to install VTK on my PC, and I already have other matplotlib figures in my wxpython application so I would really like to stick to matplotlib. Does anyone have pointers as to how I could display a 2D image in mplot3d? Do I need to create a new artist in order to replace the non-functionning imshow? I see that patch collections work fine in mplot3D. Would it be feasible to load an image and have it displayed as a patch collection (1 patch for each pixel)? Any advice would be highly appreciated, Fabrice --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com |
From: Eric F. <ef...@ha...> - 2014-09-30 18:44:54
|
On 2014/09/30, 2:41 AM, Jesper Larsen wrote: > Hi matplotlib users, > > Is it possible to disable antialiasing for a colorbar? If not directly > is it the possible to "postprocess" the axes instance to se antialiasing > for relevant elements? The colorbar returns a Colorbar object, the "solids" attribute of which is a Quadmesh; so you should be able to execute cbar.solids.set_antialiased(False) to turn off antialiasing. With a bit of testing, however, I am not seeing any difference, so I'm not sure what is going on, and I don't have time now to investigate. Eric > > The reason I am asking is because I would like to produce a paletted png > (using PIL) of the colorbar without the risk of removing any important > colors in the process (in essence the output from matplotlib needs to > have less than 256 colors for this to work). > > Best regards, > Jesper > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Jesper L. <jes...@gm...> - 2014-09-30 12:42:00
|
Hi matplotlib users, Is it possible to disable antialiasing for a colorbar? If not directly is it the possible to "postprocess" the axes instance to se antialiasing for relevant elements? The reason I am asking is because I would like to produce a paletted png (using PIL) of the colorbar without the risk of removing any important colors in the process (in essence the output from matplotlib needs to have less than 256 colors for this to work). Best regards, Jesper |
From: Christophe B. <pro...@gm...> - 2014-09-29 11:39:09
|
Hello. Concretly, I have one figure with some plots. I only want to have the coordinates of the mouse when it is clicked over this figure. On the other hand, when I click on the button, I have the button event, but also the mouse one. Maybe, one solution would be to know that the button has been clicked such as to ignore mouse event in that case. C Le 29 sept. 2014 03:51, "Benjamin Root" <ben...@ou...> a écrit : > I am sorry, I am not sure that I understand what you are trying to do. Why > do you want the same action to happen whenever you click the mouse button > (anywhere in the figure), and whenever you click the mouse button (when you > are over the button)? The two areas overlap, so it would always trigger the > action twice when clicking on the button. > > Why are you attaching the callback to mouse button clicking when it is > already attached to the Button? > > Ben Root > > P.S. - please keep the coverstation on-list. > > > On Sun, Sep 28, 2014 at 5:36 PM, Christophe Bal <pro...@gm...> > wrote: > >> Hello. >> >> I want to use both mouse event, that works without the button, and also a >> button but adding this ones makes the mouse event also working on this >> button. >> >> The problem would be to connect the mouse event only with the first axe. >> Can I do that ? Sorry but for the moment, I'm a real noob. >> >> 2014-09-28 21:53 GMT+02:00 Benjamin Root <ben...@ou...>: >> >>> Does this example help? >>> http://matplotlib.org/examples/widgets/buttons.html >>> >>> With the Button widget, you won't need to do any mpl_connect calls, the >>> widget takes care of that for you. Also, as a side note, the >>> "button_press_event" does not refer to the button widgets, it refers to the >>> mouse button. >>> >>> Cheers! >>> Ben Root >>> >>> >>> On Sat, Sep 27, 2014 at 6:30 PM, Christophe Bal <pro...@gm...> >>> wrote: >>> >>>> Hello. >>>> >>>> In the following code, I would like to add two buttons. Is there an >>>> easy way to do that ? >>>> >>>> Christophe >>>> >>>> >>>> ================================ >>>> >>>> import matplotlib.pyplot as plt >>>> from matplotlib.widgets import Button >>>> >>>> fig = plt.figure() >>>> >>>> plt.axes(xlim = (0, 3), ylim = (0, 3)) >>>> >>>> def onclick(event): >>>> print(event.xdata, event.ydata) >>>> >>>> fig.canvas.mpl_connect('button_press_event', onclick) >>>> >>>> plt.show() >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>> >> > |
From: Benjamin R. <ben...@ou...> - 2014-09-29 01:51:42
|
I am sorry, I am not sure that I understand what you are trying to do. Why do you want the same action to happen whenever you click the mouse button (anywhere in the figure), and whenever you click the mouse button (when you are over the button)? The two areas overlap, so it would always trigger the action twice when clicking on the button. Why are you attaching the callback to mouse button clicking when it is already attached to the Button? Ben Root P.S. - please keep the coverstation on-list. On Sun, Sep 28, 2014 at 5:36 PM, Christophe Bal <pro...@gm...> wrote: > Hello. > > I want to use both mouse event, that works without the button, and also a > button but adding this ones makes the mouse event also working on this > button. > > The problem would be to connect the mouse event only with the first axe. > Can I do that ? Sorry but for the moment, I'm a real noob. > > 2014-09-28 21:53 GMT+02:00 Benjamin Root <ben...@ou...>: > >> Does this example help? >> http://matplotlib.org/examples/widgets/buttons.html >> >> With the Button widget, you won't need to do any mpl_connect calls, the >> widget takes care of that for you. Also, as a side note, the >> "button_press_event" does not refer to the button widgets, it refers to the >> mouse button. >> >> Cheers! >> Ben Root >> >> >> On Sat, Sep 27, 2014 at 6:30 PM, Christophe Bal <pro...@gm...> >> wrote: >> >>> Hello. >>> >>> In the following code, I would like to add two buttons. Is there an easy >>> way to do that ? >>> >>> Christophe >>> >>> >>> ================================ >>> >>> import matplotlib.pyplot as plt >>> from matplotlib.widgets import Button >>> >>> fig = plt.figure() >>> >>> plt.axes(xlim = (0, 3), ylim = (0, 3)) >>> >>> def onclick(event): >>> print(event.xdata, event.ydata) >>> >>> fig.canvas.mpl_connect('button_press_event', onclick) >>> >>> plt.show() >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > |
From: Benjamin R. <ben...@ou...> - 2014-09-28 19:53:34
|
Does this example help? http://matplotlib.org/examples/widgets/buttons.html With the Button widget, you won't need to do any mpl_connect calls, the widget takes care of that for you. Also, as a side note, the "button_press_event" does not refer to the button widgets, it refers to the mouse button. Cheers! Ben Root On Sat, Sep 27, 2014 at 6:30 PM, Christophe Bal <pro...@gm...> wrote: > Hello. > > In the following code, I would like to add two buttons. Is there an easy > way to do that ? > > Christophe > > > ================================ > > import matplotlib.pyplot as plt > from matplotlib.widgets import Button > > fig = plt.figure() > > plt.axes(xlim = (0, 3), ylim = (0, 3)) > > def onclick(event): > print(event.xdata, event.ydata) > > fig.canvas.mpl_connect('button_press_event', onclick) > > plt.show() > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Christophe B. <pro...@gm...> - 2014-09-27 22:30:23
|
Hello. In the following code, I would like to add two buttons. Is there an easy way to do that ? Christophe ================================ import matplotlib.pyplot as plt from matplotlib.widgets import Button fig = plt.figure() plt.axes(xlim = (0, 3), ylim = (0, 3)) def onclick(event): print(event.xdata, event.ydata) fig.canvas.mpl_connect('button_press_event', onclick) plt.show() |
From: Nicolas P. R. <Nic...@in...> - 2014-09-27 09:02:51
|
Now in Nature as well: http://www.nature.com/news/how-to-dodge-the-pitfalls-of-bad-illustrations-1.15999 Nicolas > > Hi all, > > I'm very pleased to announce the publication of a paper I've written with Michael Droettboom and Philip E. Bourne. > > Ten Simple Rules for Better Figures > Nicolas P. Rougier, Michael Droettboom, Philip E. Bourne > PLOS Computational Biology > URL: http://www.ploscompbiol.org/article/info:doi/10.1371/journal.pcbi.1003833 > > > All the figures have been made using matplotlib and sources are available from: > > https://github.com/rougier/ten-rules > > We even managed to use the XKCD filter ! > Thanks a lot for this great library. > |
From: Benjamin R. <ben...@ou...> - 2014-09-27 01:23:56
|
This appears to be an ipython issue as you stated that you could load basemap normally. I would suggest asking this question on the ipython mailing list. Also, as an aside, you will generally get faster responses if you actually include information in your question. Links rot over time, and so the discussion and the original question become disconnected. I can't tell you how many times I have been frustrated by being unable to find useful information from a mailing list posting 5 years ago because part of the answer was up on a geocities posting or something. Cheers! Ben Root On Mon, Sep 22, 2014 at 10:53 PM, sachidanand gowda <mav...@gm...> wrote: > Hi all, > > I am stuck with getting basemap up and running > > http://stackoverflow.com/questions/25985808/error-importing-basemap-keyerror-dap > > kindly look at the error i have posted on stackoverflow and let me know > what are the next set of steps that i need to follow > > Thanks, > Sachi > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: oyster <lep...@gm...> - 2014-09-26 08:58:03
|
hi, all following is a simple plot. however, if I turn on xkcd(), the legend shows Chinese as "??". I think this is because the Chinese characters can not be found in a western font. Is there a way to fix this? thanks [code begin] #coding=utf-8 import math from pylab import * x=range(0, int(2*math.pi*1000)) x=[i/1000.0 for i in x] y1=[math.sin(i) for i in x] xkcd() p=plot(x, y1) legend(p, [u'sin曲线']) rcParams['font.sans-serif'] = ['SimHei'] #set the default font to a Chinese Font #show() savefig('%s.png' % __file__) |
From: bhargav v. <coo...@gm...> - 2014-09-25 20:53:13
|
Hello, I was currently looking into the new plot directive Sphinx extension that comes with matplotlib. My purpose is to use it for documentation of examples for my source code. However, I wish to just have html figure links only to PNG and Hires PNG files and no link for the PDF files. I looked into the plot_directive.py and saw that the plot_formats are set to have default value of [‘png’, ‘hires.png’, ‘pdf’] which can not be configured , at least I was not able to do the same. Can any one suggest if I can choose the plot formats whose link I would like to show when I use the plot directive Sphinx Extension. Are there any plans to make the "plot formats” configurable ? Regards Bhargav. |
From: Adam H. <hug...@gm...> - 2014-09-25 02:10:56
|
https://github.com/matplotlib/matplotlib/issues/3562 On Wed, Sep 24, 2014 at 6:17 PM, Adam Hughes <hug...@gm...> wrote: > Agreed. I will do so, thanks. If you are able to figure it out, I would > be super grateful. I must have spend 5 hours beating my head over this... > > I'll fill it out tonight. > > On Wed, Sep 24, 2014 at 9:07 PM, Benjamin Root <ben...@ou...> wrote: > >> I always wonder why people go through such lengths to implement such >> features, but never bother to offer them back into the mainline code or at >> least suggest such a feature. Think you could make a feature request for >> this on github? I bet I could figure out how to integrate it into the mesh >> code without the need for any hacks if I spend a free moment on it. >> >> Ben Root >> >> On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hug...@gm...> >> wrote: >> >>> Hi, >>> >>> I'm following up on an answered stack overflow thread: >>> >>> >>> http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 >>> >>> They show how to create a colormap for a wireframe plot. I noticed that >>> this solution fails when the X and Y data are not the same shape. This >>> inherently comes down to _segments3d being a 3 dimensional array when X, Y >>> are the same dimension, but a 1D array when X,Y are different dimensions. >>> >>> So for example, a set of 10 curves, each with 100 points would have the >>> dimensions: >>> >>> X ---> 10 >>> Y ---> 100 >>> Z ----> 10 x 100 >>> >>> I've tried hacking on this all day and just can't get a solution to >>> bypass the numpy ravels() and rolls()! >>> >>> Any ideas? >>> >>> Thanks >>> >>> >>> ------------------------------------------------------------------------------ >>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >>> >> > |
From: Adam H. <hug...@gm...> - 2014-09-25 01:18:07
|
Agreed. I will do so, thanks. If you are able to figure it out, I would be super grateful. I must have spend 5 hours beating my head over this... I'll fill it out tonight. On Wed, Sep 24, 2014 at 9:07 PM, Benjamin Root <ben...@ou...> wrote: > I always wonder why people go through such lengths to implement such > features, but never bother to offer them back into the mainline code or at > least suggest such a feature. Think you could make a feature request for > this on github? I bet I could figure out how to integrate it into the mesh > code without the need for any hacks if I spend a free moment on it. > > Ben Root > > On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hug...@gm...> > wrote: > >> Hi, >> >> I'm following up on an answered stack overflow thread: >> >> >> http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 >> >> They show how to create a colormap for a wireframe plot. I noticed that >> this solution fails when the X and Y data are not the same shape. This >> inherently comes down to _segments3d being a 3 dimensional array when X, Y >> are the same dimension, but a 1D array when X,Y are different dimensions. >> >> So for example, a set of 10 curves, each with 100 points would have the >> dimensions: >> >> X ---> 10 >> Y ---> 100 >> Z ----> 10 x 100 >> >> I've tried hacking on this all day and just can't get a solution to >> bypass the numpy ravels() and rolls()! >> >> Any ideas? >> >> Thanks >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
From: Adam H. <hug...@gm...> - 2014-09-25 01:17:29
|
Awesome, thanks! On Wed, Sep 24, 2014 at 9:12 PM, Benjamin Root <ben...@ou...> wrote: > Could always ask it its name: > > >>> import matplotlib.pyplot as plt > >>> from mpl_toolkits.mplot3d import Axes3D > >>> fig, ax = plt.subplots(1, 1, subplot_kw=dict(projection='3d')) > >>> ax.name > '3d' > > > You can do this with any axes type, such as polar axes and such. > > Cheers! > Ben Root > > > On Tue, Sep 23, 2014 at 3:26 PM, Adam Hughes <hug...@gm...> > wrote: > >> Hello, >> >> Is it possible to inspect an AxesSubplot object and infer if it is using >> a 3d projection or not? Couldn't figure it out directly from the API. >> >> Thanks >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
From: Benjamin R. <ben...@ou...> - 2014-09-25 01:13:15
|
Could always ask it its name: >>> import matplotlib.pyplot as plt >>> from mpl_toolkits.mplot3d import Axes3D >>> fig, ax = plt.subplots(1, 1, subplot_kw=dict(projection='3d')) >>> ax.name '3d' You can do this with any axes type, such as polar axes and such. Cheers! Ben Root On Tue, Sep 23, 2014 at 3:26 PM, Adam Hughes <hug...@gm...> wrote: > Hello, > > Is it possible to inspect an AxesSubplot object and infer if it is using a > 3d projection or not? Couldn't figure it out directly from the API. > > Thanks > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Benjamin R. <ben...@ou...> - 2014-09-25 01:08:13
|
I always wonder why people go through such lengths to implement such features, but never bother to offer them back into the mainline code or at least suggest such a feature. Think you could make a feature request for this on github? I bet I could figure out how to integrate it into the mesh code without the need for any hacks if I spend a free moment on it. Ben Root On Wed, Sep 24, 2014 at 8:43 PM, Adam Hughes <hug...@gm...> wrote: > Hi, > > I'm following up on an answered stack overflow thread: > > > http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 > > They show how to create a colormap for a wireframe plot. I noticed that > this solution fails when the X and Y data are not the same shape. This > inherently comes down to _segments3d being a 3 dimensional array when X, Y > are the same dimension, but a 1D array when X,Y are different dimensions. > > So for example, a set of 10 curves, each with 100 points would have the > dimensions: > > X ---> 10 > Y ---> 100 > Z ----> 10 x 100 > > I've tried hacking on this all day and just can't get a solution to bypass > the numpy ravels() and rolls()! > > Any ideas? > > Thanks > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Adam H. <hug...@gm...> - 2014-09-25 00:44:01
|
Hi, I'm following up on an answered stack overflow thread: http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same shape. This inherently comes down to _segments3d being a 3 dimensional array when X, Y are the same dimension, but a 1D array when X,Y are different dimensions. So for example, a set of 10 curves, each with 100 points would have the dimensions: X ---> 10 Y ---> 100 Z ----> 10 x 100 I've tried hacking on this all day and just can't get a solution to bypass the numpy ravels() and rolls()! Any ideas? Thanks |
From: Benjamin R. <ben...@ou...> - 2014-09-24 17:31:50
|
Not at this time, no. There are two reasons for this. First, an Artist object can only be attached to a single Axes object at any given time. Right now, it isn't really possible to "transfer" an Artist from one Axes to another (not impossible, but it certainly isn't a built-in mechanism). The other problem is in the design of mplot3d. It almost completely bypasses the transforms system and uses duck-punching (trademark pending...) to get things working. I have a private branch at home where I am working on augmenting the transforms system to accept 3d projections and simple 3d transforms, but I haven't managed to get it working and I haven't any time for the next few months to work on it any further. The hope is that once I have that in place, I can reimplement mplot3d to use first-class Artists and Axes without any duck-punching. The removal of duck-punching would make what you want to do more possible (not easy, but feasible). But that is probably not for another year unfortunately. My suggestion is to simply extract the relevant data from each artist and create brand new artists on the fly in the 3d axes instead. Depending on the complexity of the plot, it might require some tree-traversal, but if you already have a list of all of the relevant plot elements, then that should be fairly simple. I hope this helps. Sorry for the negatory on simple transfers. Cheers! Ben Root On Wed, Sep 24, 2014 at 12:59 PM, Adam Hughes <hug...@gm...> wrote: > Hi, > > Sorry for all of these left-field questions. We are trying to develop > some custom functionality for a spectroscopy program... > > Given a 3d surface plot, matplotlib makes it easy to add contours along > the projections of the plot. > > > http://matplotlib.org/1.3.1/mpl_toolkits/mplot3d/tutorial.html#d-plots-in-3d > > We were wondering if it was possible to add other things to the > projections instead of contours? For example, imagine I have a standard x > vs. y plot already created in a separate Axes object. Would it be possible > to transfer the data from the x vs. y plot directly onto the projection of > the 3d plot? We've found that sometimes it's useful to put projections on > our 3d plots that aren't necessarily reflecting the 3d-dataset per-se. It > would be nice if a user could generate plots 2d plots separately, and add > them as projections later. > > I know this is a pretty special use case, so if nothing obvious comes to > mind, no problem. > > Thanks > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Adam H. <hug...@gm...> - 2014-09-24 16:59:40
|
Hi, Sorry for all of these left-field questions. We are trying to develop some custom functionality for a spectroscopy program... Given a 3d surface plot, matplotlib makes it easy to add contours along the projections of the plot. http://matplotlib.org/1.3.1/mpl_toolkits/mplot3d/tutorial.html#d-plots-in-3d We were wondering if it was possible to add other things to the projections instead of contours? For example, imagine I have a standard x vs. y plot already created in a separate Axes object. Would it be possible to transfer the data from the x vs. y plot directly onto the projection of the 3d plot? We've found that sometimes it's useful to put projections on our 3d plots that aren't necessarily reflecting the 3d-dataset per-se. It would be nice if a user could generate plots 2d plots separately, and add them as projections later. I know this is a pretty special use case, so if nothing obvious comes to mind, no problem. Thanks |
From: Adam H. <hug...@gm...> - 2014-09-23 19:26:52
|
Hello, Is it possible to inspect an AxesSubplot object and infer if it is using a 3d projection or not? Couldn't figure it out directly from the API. Thanks |
From: Daniele N. <da...@gr...> - 2014-09-23 12:32:56
|
On 23/09/14 13:51, Daniele Nicolodi wrote: > The effect is that the plot title, legend, and tick mark labels are > correctly rendered in Helvetica Light, while axis labels are rendered in > Helvetica Regular. > > I'm I missing something or there is a problem in matplotlib for which > the weight font attribute is not respected for axis labels? I was indeed missing a couple of options in matplotlibrc: axes.labelweight : light axes.titleweight : light however, it is quite confusing that tick labels and legend are affected by the text.weight setting while other parts of the plot are not. I'm wondering if something could be done about it... Cheers, Daniele |
From: Daniele N. <da...@gr...> - 2014-09-23 12:06:51
|
Hello, I would like to create PDFs of plot using the Helvetica font in the Light variant. In my old Mac OS X installation I somehow achieved this, I don't remember exactly how, but probably with an ugly hack that involved making matplotlib aware only of this variant of the font. In my new Mac OS X install I would like to solve this more properly. I have Mac OS X 10.9 and I installed matplotlib 1.3.1 via Mac Ports. I also installed "fondu" to and I converted the Helvetica.dfont bundle into TTF fonts that I places into the mpl-data folder. I deleted the matplotlib font cache file and modified my matplotlibrc configuration file like this: font.family: sans-serif font.sans-serif: Helvetica font.weight: light The effect is that the plot title, legend, and tick mark labels are correctly rendered in Helvetica Light, while axis labels are rendered in Helvetica Regular. I'm I missing something or there is a problem in matplotlib for which the weight font attribute is not respected for axis labels? Thanks. Cheers, Daniele |
From: sachidanand g. <mav...@gm...> - 2014-09-23 02:54:12
|
Hi all, I am stuck with getting basemap up and running http://stackoverflow.com/questions/25985808/error-importing-basemap-keyerror-dap kindly look at the error i have posted on stackoverflow and let me know what are the next set of steps that i need to follow Thanks, Sachi |
From: Benjamin R. <ben...@ou...> - 2014-09-22 21:05:59
|
yes, you should be able to do "conda update matplotlib" or something to that effect. On Mon, Sep 22, 2014 at 3:24 PM, Gabriele Brambilla < gb....@gm...> wrote: > 1.3.1 > > I'm using Anaconda...do you know if do a package exist of Anaconda with > 1.4.0? > > thanks > > Gabriele > > > > 2014-09-22 17:47 GMT+02:00 Benjamin Root <ben...@ou...>: > >> quite likely. To know for sure, run the following in the command-line: >> >> python -c "import matplotlib; print matplotlib.__version__" >> >> >> On Mon, Sep 22, 2014 at 11:42 AM, Gabriele Brambilla < >> gb....@gm...> wrote: >> >>> If it returns this means that I have an older version? >>> >>> Traceback (most recent call last): >>> File "dataMODEL.py", line 99, in <module> >>> ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='b', >>> marker='o >>> ', depthshade=False) >>> File "C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", >>> line 2180 >>> , in scatter >>> patches = Axes.scatter(self, xs, ys, s=s, c=c, *args, **kwargs) >>> File "C:\Anaconda\lib\site-packages\matplotlib\axes.py", line 6312, in >>> scatter >>> >>> collection.update(kwargs) >>> File "C:\Anaconda\lib\site-packages\matplotlib\artist.py", line 739, >>> in update >>> >>> raise AttributeError('Unknown property %s' % k) >>> AttributeError: Unknown property depthshade >>> >>> >>> 2014-09-22 17:27 GMT+02:00 Benjamin Root <ben...@ou...>: >>> >>>> As of version 1.4.0, the 3d scatter plotting function gained the >>>> "depthshade" argument that you can set to false. >>>> >>>> http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#scatter-plots >>>> >>>> Cheers! >>>> Ben Root >>>> >>>> On Mon, Sep 22, 2014 at 11:18 AM, Gabriele Brambilla < >>>> gb....@gm...> wrote: >>>> >>>>> Hi I'm trying to use a 3d scatter plot. >>>>> >>>>> import matplotlib.pyplot as plt >>>>> from mpl_toolkits.mplot3d import Axes3D >>>>> import matplotlib.pyplot as plt >>>>> from matplotlib import cm >>>>> >>>>> fig = plt.figure() >>>>> ax = fig.add_subplot(111, projection='3d') >>>>> ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='k') >>>>> ax.scatter(np.log10(NPd), np.log10(NBd), np.log10(NLd), c='b') >>>>> >>>>> I would like that the dots that appear are all of the same color not >>>>> in shades of black ('k') or shades of blue ('b') but I don't know how to do >>>>> it. >>>>> >>>>> thanks >>>>> >>>>> Gabriele >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS >>>>> Reports >>>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>>>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Matplotlib-users mailing list >>>>> Mat...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>>> >>>>> >>>> >>> >> > |
From: Gabriele B. <gb....@gm...> - 2014-09-22 19:24:48
|
1.3.1 I'm using Anaconda...do you know if do a package exist of Anaconda with 1.4.0? thanks Gabriele 2014-09-22 17:47 GMT+02:00 Benjamin Root <ben...@ou...>: > quite likely. To know for sure, run the following in the command-line: > > python -c "import matplotlib; print matplotlib.__version__" > > > On Mon, Sep 22, 2014 at 11:42 AM, Gabriele Brambilla < > gb....@gm...> wrote: > >> If it returns this means that I have an older version? >> >> Traceback (most recent call last): >> File "dataMODEL.py", line 99, in <module> >> ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='b', >> marker='o >> ', depthshade=False) >> File "C:\Anaconda\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", >> line 2180 >> , in scatter >> patches = Axes.scatter(self, xs, ys, s=s, c=c, *args, **kwargs) >> File "C:\Anaconda\lib\site-packages\matplotlib\axes.py", line 6312, in >> scatter >> >> collection.update(kwargs) >> File "C:\Anaconda\lib\site-packages\matplotlib\artist.py", line 739, in >> update >> >> raise AttributeError('Unknown property %s' % k) >> AttributeError: Unknown property depthshade >> >> >> 2014-09-22 17:27 GMT+02:00 Benjamin Root <ben...@ou...>: >> >>> As of version 1.4.0, the 3d scatter plotting function gained the >>> "depthshade" argument that you can set to false. >>> >>> http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#scatter-plots >>> >>> Cheers! >>> Ben Root >>> >>> On Mon, Sep 22, 2014 at 11:18 AM, Gabriele Brambilla < >>> gb....@gm...> wrote: >>> >>>> Hi I'm trying to use a 3d scatter plot. >>>> >>>> import matplotlib.pyplot as plt >>>> from mpl_toolkits.mplot3d import Axes3D >>>> import matplotlib.pyplot as plt >>>> from matplotlib import cm >>>> >>>> fig = plt.figure() >>>> ax = fig.add_subplot(111, projection='3d') >>>> ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='k') >>>> ax.scatter(np.log10(NPd), np.log10(NBd), np.log10(NLd), c='b') >>>> >>>> I would like that the dots that appear are all of the same color not in >>>> shades of black ('k') or shades of blue ('b') but I don't know how to do it. >>>> >>>> thanks >>>> >>>> Gabriele >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Matplotlib-users mailing list >>>> Mat...@li... >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>>> >>>> >>> >> > |