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
|
|
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
>>>>
>>>>
>>>
>>
>
|
|
From: Adam H. <hug...@gm...> - 2014-09-22 17:28:47
|
I guess I could change my API a bit to allow for data that would better fit ax.plot3d. I suppose plot3d is really what I'm trying to make, where I'd just pass 5 evenly spaced curves from my dataset. If you think of a hacky solution even, can you shoot me a message? Thanks for your help and the heads up about the graphics bugs. On Mon, Sep 22, 2014 at 12:39 PM, Benjamin Root <ben...@ou...> wrote: > Sorry, that isn't possible in the current design. Instead, I would suggest > making a line plot on top of surface mimicking this. Although, depending on > the shape of the surface, this may not work out well as mplot3d may not > properly compose such a scene of mixed objects. > > Also, as a side note, be careful saving figures with zero linewidths as > certain vector backends (e.g., pdf, ps) don't properly respect such > linewidths. I think most of such bugs were fixed for v1.4.0, but there were > a few additional bugs that are going into the upcoming v1.4.1 release. > > Cheers! > Ben Root > > On Mon, Sep 22, 2014 at 12:29 PM, Adam Hughes <hug...@gm...> > wrote: > >> Thanks benjamin. Not sure how I overlooked this! >> >> You wouldn't happen to know how to remove the cstrides while keeping the >> rstrides in tact? By strides, I guess I don't mean strides per-se, but the >> contour lines themselves that run over the surface. >> >> On Mon, Sep 22, 2014 at 9:55 AM, Benjamin Root <ben...@ou...> wrote: >> >>> I think you can just set the linewidth to zero like in these examples: >>> >>> http://matplotlib.org/examples/mplot3d/surface3d_demo.html >>> http://matplotlib.org/examples/mplot3d/surface3d_demo3.html >>> >>> Cheers! >>> Ben Root >>> >>> On Sat, Sep 20, 2014 at 7:44 PM, Adam Hughes <hug...@gm...> >>> wrote: >>> >>>> Also, is it possible to change the stride color/opacity? Not for this >>>> plot in particular, but for surface plots, I'd rather not have dense black >>>> strides on my surface. Can't find the right keyword call through the 3d >>>> API. Sorry if I'm overlooking something obvious in the docs >>>> >>>> On Sat, Sep 20, 2014 at 7:31 PM, Adam Hughes <hug...@gm...> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I was using wireframe to plot my spectroscopy data, and noticed if I >>>>> choose a large R-stride, I somewhat unexpectedly get this really helpful >>>>> evenly spaced spectral plot (attached). >>>>> >>>>> The only issue is that there's still the cstride connecting some of >>>>> the peaks. I'd like to get rid of this, but it seems that at least one >>>>> cstride is necessary. Anyone have any hacking ideas on how to get rid of >>>>> this? >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Slashdot TV. Video for Nerds. Stuff that Matters. >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&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-22 16:39:39
|
Sorry, that isn't possible in the current design. Instead, I would suggest making a line plot on top of surface mimicking this. Although, depending on the shape of the surface, this may not work out well as mplot3d may not properly compose such a scene of mixed objects. Also, as a side note, be careful saving figures with zero linewidths as certain vector backends (e.g., pdf, ps) don't properly respect such linewidths. I think most of such bugs were fixed for v1.4.0, but there were a few additional bugs that are going into the upcoming v1.4.1 release. Cheers! Ben Root On Mon, Sep 22, 2014 at 12:29 PM, Adam Hughes <hug...@gm...> wrote: > Thanks benjamin. Not sure how I overlooked this! > > You wouldn't happen to know how to remove the cstrides while keeping the > rstrides in tact? By strides, I guess I don't mean strides per-se, but the > contour lines themselves that run over the surface. > > On Mon, Sep 22, 2014 at 9:55 AM, Benjamin Root <ben...@ou...> wrote: > >> I think you can just set the linewidth to zero like in these examples: >> >> http://matplotlib.org/examples/mplot3d/surface3d_demo.html >> http://matplotlib.org/examples/mplot3d/surface3d_demo3.html >> >> Cheers! >> Ben Root >> >> On Sat, Sep 20, 2014 at 7:44 PM, Adam Hughes <hug...@gm...> >> wrote: >> >>> Also, is it possible to change the stride color/opacity? Not for this >>> plot in particular, but for surface plots, I'd rather not have dense black >>> strides on my surface. Can't find the right keyword call through the 3d >>> API. Sorry if I'm overlooking something obvious in the docs >>> >>> On Sat, Sep 20, 2014 at 7:31 PM, Adam Hughes <hug...@gm...> >>> wrote: >>> >>>> Hi, >>>> >>>> I was using wireframe to plot my spectroscopy data, and noticed if I >>>> choose a large R-stride, I somewhat unexpectedly get this really helpful >>>> evenly spaced spectral plot (attached). >>>> >>>> The only issue is that there's still the cstride connecting some of the >>>> peaks. I'd like to get rid of this, but it seems that at least one cstride >>>> is necessary. Anyone have any hacking ideas on how to get rid of this? >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Slashdot TV. Video for Nerds. Stuff that Matters. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&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-22 16:29:10
|
Thanks benjamin. Not sure how I overlooked this! You wouldn't happen to know how to remove the cstrides while keeping the rstrides in tact? By strides, I guess I don't mean strides per-se, but the contour lines themselves that run over the surface. On Mon, Sep 22, 2014 at 9:55 AM, Benjamin Root <ben...@ou...> wrote: > I think you can just set the linewidth to zero like in these examples: > > http://matplotlib.org/examples/mplot3d/surface3d_demo.html > http://matplotlib.org/examples/mplot3d/surface3d_demo3.html > > Cheers! > Ben Root > > On Sat, Sep 20, 2014 at 7:44 PM, Adam Hughes <hug...@gm...> > wrote: > >> Also, is it possible to change the stride color/opacity? Not for this >> plot in particular, but for surface plots, I'd rather not have dense black >> strides on my surface. Can't find the right keyword call through the 3d >> API. Sorry if I'm overlooking something obvious in the docs >> >> On Sat, Sep 20, 2014 at 7:31 PM, Adam Hughes <hug...@gm...> >> wrote: >> >>> Hi, >>> >>> I was using wireframe to plot my spectroscopy data, and noticed if I >>> choose a large R-stride, I somewhat unexpectedly get this really helpful >>> evenly spaced spectral plot (attached). >>> >>> The only issue is that there's still the cstride connecting some of the >>> peaks. I'd like to get rid of this, but it seems that at least one cstride >>> is necessary. Anyone have any hacking ideas on how to get rid of this? >>> >> >> >> >> ------------------------------------------------------------------------------ >> Slashdot TV. Video for Nerds. Stuff that Matters. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> >> > |
|
From: Xiaobo Y. <xia...@gm...> - 2014-09-22 16:17:23
|
Hi,
I want to show some points on a world map. But the color of a point is
linked to the value at the point. Any idea why the code below does not give
what I want (same color, no legend)?
Many thanks,
Tom
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
lats = [47.8, -54.85, 47.0544, 44.18, 47.42, 46.55]
lons = [11.02, -68.32, 12.9583, 10.7, 10.98, 7.99]
scores = [4.93657698397, -31.0626756529, 35.2049971001, 23.1060270438,
12.5139213403, 17.3946319493]
map = Basemap(projection = 'mill')
map.drawcoastlines()
map.drawmapboundary()
for lat, lon, score in zip(lats, lons, scores):
print('Score at (%f, %f) is %f' % (lat, lon, score))
x, y = map(lon, lat) # Notice x = lon, y = lat
map.scatter(x, y, marker = 'o',
s = 500,
c = score,
cmap = plt.get_cmap('rainbow'))
plt.legend()
plt.show()
|
|
From: Benjamin R. <ben...@ou...> - 2014-09-22 15:47:58
|
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 15:43:07
|
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: Benjamin R. <ben...@ou...> - 2014-09-22 15:27:51
|
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 > > |