SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

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
(2)
2
(1)
3
4
(1)
5
(1)
6
(5)
7
(8)
8
(4)
9
10
(1)
11
(1)
12
(2)
13
(7)
14
(3)
15
(4)
16
(4)
17
(3)
18
(4)
19
(5)
20
(2)
21
(13)
22
(6)
23
(5)
24
(5)
25
(1)
26
(14)
27
(2)
28
(5)
29
(3)
30
(3)
31
(4)






Showing results of 119

<< < 1 2 3 4 5 > >> (Page 4 of 5)
This is what my animation function (i.e. the one that gets called by
`FuncAnimation`) looks like:
 import numpy as np
 ...
 def mpl_animation_function(n):
 print "animating timestep: ", n
 
 if n > 0:
 previous_relevant_patch_indices =
np.ravel(patch_indices_per_timestep[n-1])
 for index in previous_relevant_patch_indices:
 (patches[index]).set_visible(False)
 
 relevant_patch_indices = np.ravel(patch_indices_per_timestep[n])
 
 for index in relevant_patch_indices:
 (patches[index]).set_visible(True)
 
 return patches,
`patches` is a pre-generated list of patches (possibly large), that have
already been added to an `axes` instance.
This function is awfully time-consuming as the number of patches becomes
large. 
One idea I had was to parallelize the `for` loop, but likely that won't work
because of issues with the `axes` instance being accessed and modified in
parallel -- so I am afraid of fruitlessly spending time there. Do I have any
other options, or is parallelization possible?
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/What-are-my-options-for-speeding-up-a-custom-function-called-by-FuncAnimation-tp45562.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Sorry Tom -- I missed your message, it seems. I suppose I'll leave the SO
link for now because I got an answer which I accepted. In the future, I'll
post the question here itself.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlib-self-chachedRenderer-fails-assert-self-cachedRenderer-is-not-None-when-calling-draw-artis-tp45494p45561.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Thomas C. <tca...@gm...> - 2015年05月16日 15:57:12
This is coming out of the pandas plotting tools, you might get better
answers on their mailing list.
Tom
On Sat, May 16, 2015 at 11:51 AM Juan Wu <wuj...@gm...> wrote:
> Hi, List experts,
>
> I have a matplotlib problem when I tried to use a tool called HDDM. As
> HDDM is another issue, I here just post my problem with Matplotlib. In
> short, the error alarm appeard when I input fig = plt.figure(). I am a
> beginner with those stuff.
>
> I would appreciate if anyone can give me any good pointers.
>
> Thanks so much,
> Juan
>
> ==================
>
> In [8]: fig = plt.figure()
> <matplotlib.figure.Figure at 0x13293890>
>
> In [9]: ax = fig.add_subplot(111, xlabel='RT', ylabel='count',
> title='RT distributions')
>
> In [10]: for i, subj_data in data.groupby('subj_idx'):
> ...: subj_data.rt.hist(bins=20, histtype='step', ax=ax)
> ...: plt.savefig('hddm_demo_fig_00.pdf')
>
> <matplotlib.figure.Figure at 0x1354cb70>
> Traceback (most recent call last):
>
> File "<ipython-input-15-3b0b3c83094c>", line 2, in <module>
> subj_data.rt.hist(bins=20, histtype='step', ax=ax)
>
> File "C:\Anaconda\lib\site-packages\pandas\tools\plotting.py", line
> 2830, in hist_series
> raise AssertionError('passed axis not bound to passed figure')
>
> AssertionError: passed axis not bound to passed figure
>
> (relevant link:
> https://groups.google.com/forum/#!topic/hddm-users/yBeIRJaHGwo
> there very few experts view and reply questions)
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Juan Wu <wuj...@gm...> - 2015年05月16日 15:50:47
Hi, List experts,
I have a matplotlib problem when I tried to use a tool called HDDM. As
HDDM is another issue, I here just post my problem with Matplotlib. In
short, the error alarm appeard when I input fig = plt.figure(). I am a
beginner with those stuff.
I would appreciate if anyone can give me any good pointers.
Thanks so much,
Juan
==================
In [8]: fig = plt.figure()
<matplotlib.figure.Figure at 0x13293890>
In [9]: ax = fig.add_subplot(111, xlabel='RT', ylabel='count',
title='RT distributions')
In [10]: for i, subj_data in data.groupby('subj_idx'):
 ...: subj_data.rt.hist(bins=20, histtype='step', ax=ax)
 ...: plt.savefig('hddm_demo_fig_00.pdf')
<matplotlib.figure.Figure at 0x1354cb70>
Traceback (most recent call last):
 File "<ipython-input-15-3b0b3c83094c>", line 2, in <module>
 subj_data.rt.hist(bins=20, histtype='step', ax=ax)
 File "C:\Anaconda\lib\site-packages\pandas\tools\plotting.py", line
2830, in hist_series
 raise AssertionError('passed axis not bound to passed figure')
AssertionError: passed axis not bound to passed figure
(relevant link: https://groups.google.com/forum/#!topic/hddm-users/yBeIRJaHGwo
there very few experts view and reply questions)
From: Benjamin R. <ben...@ou...> - 2015年05月15日 22:07:34
I am a huge fan of cycling line styles in conjunction with cycling colors
in general. There is a cycler PR that achieves that goal fairly nicely:
https://github.com/matplotlib/matplotlib/pull/4258
On Fri, May 15, 2015 at 5:59 PM, Eric Firing <ef...@ha...> wrote:
> On 2015年05月15日 11:41 AM, Nathan Goldbaum wrote:
> > Hi all,
> >
> > This is a bit of a case of lazy mailing list, but I'm hoping there might
> > be some experts here who can point me in the right direction.
> >
> > Does anyone know of a good resource to pull a color cycle for line plots
> > that are good for color-blind readers? I'm currently writing a paper
> > that includes a number of plots that include multiple line plots in the
> > same axes, and it would be nice if I'm not alienating a significant
> > fraction of my readers with a poor color choice.
>
> You might want to cycle line types and/or thicknesses along with colors.
> You could also check out the seaborn line color palettes.
>
> http://stanford.edu/~mwaskom/software/seaborn/
>
> Eric
>
> >
> > Thanks very much for your help!
> >
> > -Nathan
> >
> >
> >
> ------------------------------------------------------------------------------
> > One dashboard for servers and applications across Physical-Virtual-Cloud
> > Widest out-of-the-box monitoring support with 50+ applications
> > Performance metrics, stats and reports that give you Actionable Insights
> > Deep dive visibility with transaction tracing using APM Insight.
> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> >
> >
> >
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Eric F. <ef...@ha...> - 2015年05月15日 21:59:36
On 2015年05月15日 11:41 AM, Nathan Goldbaum wrote:
> Hi all,
>
> This is a bit of a case of lazy mailing list, but I'm hoping there might
> be some experts here who can point me in the right direction.
>
> Does anyone know of a good resource to pull a color cycle for line plots
> that are good for color-blind readers? I'm currently writing a paper
> that includes a number of plots that include multiple line plots in the
> same axes, and it would be nice if I'm not alienating a significant
> fraction of my readers with a poor color choice.
You might want to cycle line types and/or thicknesses along with colors. 
 You could also check out the seaborn line color palettes.
http://stanford.edu/~mwaskom/software/seaborn/
Eric
>
> Thanks very much for your help!
>
> -Nathan
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Thomas C. <tca...@gm...> - 2015年05月15日 21:50:11
See https://github.com/matplotlib/matplotlib/pull/2871 and the links there
in. This colormap should be in 1.4.x as `'Wistia'`.
http://matplotlib.org/users/colormaps.html has some references.
There is an open PR to add a color-blind filter an any artist
https://github.com/matplotlib/matplotlib/pull/3279 but I am not sure of
it's state.
Tom
On Fri, May 15, 2015 at 5:43 PM Nathan Goldbaum <nat...@gm...>
wrote:
> Hi all,
>
> This is a bit of a case of lazy mailing list, but I'm hoping there might
> be some experts here who can point me in the right direction.
>
> Does anyone know of a good resource to pull a color cycle for line plots
> that are good for color-blind readers? I'm currently writing a paper that
> includes a number of plots that include multiple line plots in the same
> axes, and it would be nice if I'm not alienating a significant fraction of
> my readers with a poor color choice.
>
> Thanks very much for your help!
>
> -Nathan
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Nathan G. <nat...@gm...> - 2015年05月15日 21:41:26
Hi all,
This is a bit of a case of lazy mailing list, but I'm hoping there might be
some experts here who can point me in the right direction.
Does anyone know of a good resource to pull a color cycle for line plots
that are good for color-blind readers? I'm currently writing a paper that
includes a number of plots that include multiple line plots in the same
axes, and it would be nice if I'm not alienating a significant fraction of
my readers with a poor color choice.
Thanks very much for your help!
-Nathan
From: Benjamin R. <ben...@ou...> - 2015年05月14日 13:06:53
Nick,
Just to be clear, cartopy is intended to supersede basemap, but there are
still many advantages at the moment to basemap over cartopy. The codebase
is much more mature, and it is much easier to install than cartopy. I still
regularly use basemap because I don't need the more advanced features of
cartopy (yet).
This isn't to discourage you from cartopy, just simply to help put the
utility of the projects in the right context.
Cheers!
Ben Root
On Wed, May 13, 2015 at 6:20 PM, Nick Eubank <nic...@gm...> wrote:
> Thanks Don. The consensus seems to be that I need to move to Cartopy,
> which apparently supersedes Basemap.
>
> (Just realized the helpful responses I received weren't cc'd to the list,
> so responding here for the record).
>
> On Wed, May 13, 2015 at 1:47 PM Don Morton <don...@bo...>
> wrote:
>
>> Hi,
>>
>> I only partially know what I'm talking about, but what the heck. Have
>> you considered pyproj (which Basemap is apparently built on)? Pyproj seems
>> to support any kind of projection you could even imagine, and a quick
>> ggogle suggests UTM would be included.
>>
>> I had to learn all about this to some depth in order to teach it last
>> summer to a group in Vienna, and I have slides at
>>
>>
>> https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home
>>
>> and if you go to course slides, 06-PlottingMetData, starting at about
>> Slide 60, I have some examples which lead up to Basemap. My intent was to
>> try to get students to understand the how and why of plotting grids in
>> projections, then moving on to Basemap. This way they might have a better
>> idea of how to deal with Basemap when things go wrong. I think I just
>> confused them, though :)
>>
>> At any rate, I haven't tried it, but I think it would be fairly simple to
>> do what you want, IF you understand some of the low-level aspects. But,
>> maybe UTM is harder than I am imagining.
>>
>> All the best,
>>
>> Don Morton
>>
>>
>>
>> ---
>> Don Morton, Owner/Manager
>> Boreal Scientific Computing LLC
>> Fairbanks, Alaska USA
>> http://www.borealscicomp.com/
>> http://www.borealscicomp.com/Miscellaneous/MortonBio/
>>
>> On Mon, May 11, 2015 at 4:45 PM, Nick Eubank <nic...@gm...>
>> wrote:
>>
>>> Hi All,
>>>
>>> Trying to move from ArcGIS into pure python GIS, but am a little
>>> surprised to find that UTM is not (directly) supported as a projection.
>>> Going through the machinations in the utmtest.py file
>>> <https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
>>> every time I want to plot a map in UTM seems a little unwieldy.
>>>
>>> Please excuse my ignorance, but is there a reason it is so hard to
>>> support / any plans to integrate in the future / any other easier paths to
>>> plotting UTMs I don't know about?
>>>
>>> Thanks,
>>>
>>> Nick
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> One dashboard for servers and applications across Physical-Virtual-Cloud
>>> Widest out-of-the-box monitoring support with 50+ applications
>>> Performance metrics, stats and reports that give you Actionable Insights
>>> Deep dive visibility with transaction tracing using APM Insight.
>>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: abhisek <abh...@gm...> - 2015年05月14日 11:31:56
I'm trying to fit a surface model to a 3D data-set (x,y,z) using
matplotlib.
Where z = f(x,y).
So, I'm going for the quadratic fitting with equation:
f(x,y) = ax^2+by^2+cxy+dx+ey+f 
So far, I have successfully plotted the 3d-fitted-surface using
least-square method.
But, how can I be able to print/get the fitted equation of the
surface(with coefficient values) ?
I little help will be highly appreciated.
thank you.
From: Courtenay G. \(Enthought\) <cgo...@en...> - 2015年05月14日 00:16:32
The talks & posters for the 2015 SciPy Conference were announced today:
http://scipy2015.scipy.org/ehome/115969/292868/?
<http://scipy2015.scipy.org/ehome/115969/292868/?&> &. Early bird
registration deadline was extended (final) to 5/22 - hope we'll see you this
year!
 
 
From: Nick E. <nic...@gm...> - 2015年05月13日 22:20:27
Thanks Don. The consensus seems to be that I need to move to Cartopy, which
apparently supersedes Basemap.
(Just realized the helpful responses I received weren't cc'd to the list,
so responding here for the record).
On Wed, May 13, 2015 at 1:47 PM Don Morton <don...@bo...>
wrote:
> Hi,
>
> I only partially know what I'm talking about, but what the heck. Have you
> considered pyproj (which Basemap is apparently built on)? Pyproj seems to
> support any kind of projection you could even imagine, and a quick ggogle
> suggests UTM would be included.
>
> I had to learn all about this to some depth in order to teach it last
> summer to a group in Vienna, and I have slides at
>
>
> https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home
>
> and if you go to course slides, 06-PlottingMetData, starting at about
> Slide 60, I have some examples which lead up to Basemap. My intent was to
> try to get students to understand the how and why of plotting grids in
> projections, then moving on to Basemap. This way they might have a better
> idea of how to deal with Basemap when things go wrong. I think I just
> confused them, though :)
>
> At any rate, I haven't tried it, but I think it would be fairly simple to
> do what you want, IF you understand some of the low-level aspects. But,
> maybe UTM is harder than I am imagining.
>
> All the best,
>
> Don Morton
>
>
>
> ---
> Don Morton, Owner/Manager
> Boreal Scientific Computing LLC
> Fairbanks, Alaska USA
> http://www.borealscicomp.com/
> http://www.borealscicomp.com/Miscellaneous/MortonBio/
>
> On Mon, May 11, 2015 at 4:45 PM, Nick Eubank <nic...@gm...> wrote:
>
>> Hi All,
>>
>> Trying to move from ArcGIS into pure python GIS, but am a little
>> surprised to find that UTM is not (directly) supported as a projection.
>> Going through the machinations in the utmtest.py file
>> <https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
>> every time I want to plot a map in UTM seems a little unwieldy.
>>
>> Please excuse my ignorance, but is there a reason it is so hard to
>> support / any plans to integrate in the future / any other easier paths to
>> plotting UTMs I don't know about?
>>
>> Thanks,
>>
>> Nick
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
From: Nick E. <nic...@gm...> - 2015年05月13日 22:07:45
Thanks!
On Wed, May 13, 2015 at 3:07 PM Benjamin Root <ben...@ou...> wrote:
> No, it isn't this list. I think it is the Iris list instead:
> https://groups.google.com/forum/#!forum/scitools-iris
>
> On Wed, May 13, 2015 at 1:06 PM, Nick Eubank <nic...@gm...> wrote:
>
>> Not sure if this is the right forum; also posting to Stack Overflow (
>> http://stackoverflow.com/questions/30221047/cartopy-conda-install-error-osx-library-not-loaded-rpath-libproj-0-dylib
>> ). Will re-post any answers from here to SO.
>>
>> Did conda install:
>>
>> conda install -c scitools cartopy
>>
>> Seemed to go find, but now I'm getting the following error:
>>
>> import cartopy.crs as ccrs
>> Traceback (most recent call last):
>>
>> File "<ipython-input-1-762e43a32730>", line 1, in <module>
>> import cartopy.crs as ccrs
>>
>> File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/__init__.py", line 110, in <module>
>> import cartopy.crs
>>
>> File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/crs.py", line 37, in <module>
>> from cartopy._crs import CRS, Geocentric, Geodetic, Globe, PROJ4_RELEASE
>> ImportError: dlopen(/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so, 2): Library not loaded: @rpath/libproj.0.dylib
>> Referenced from: /Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so
>> Reason: image not found
>>
>> Any suggestions?
>>
>> I also tried building from source and got the same problem.
>>
>> I had a prior install of GDAL Complete, if that matters.
>> Thanks!
>>
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
From: Benjamin R. <ben...@ou...> - 2015年05月13日 22:07:26
No, it isn't this list. I think it is the Iris list instead:
https://groups.google.com/forum/#!forum/scitools-iris
On Wed, May 13, 2015 at 1:06 PM, Nick Eubank <nic...@gm...> wrote:
> Not sure if this is the right forum; also posting to Stack Overflow (
> http://stackoverflow.com/questions/30221047/cartopy-conda-install-error-osx-library-not-loaded-rpath-libproj-0-dylib
> ). Will re-post any answers from here to SO.
>
> Did conda install:
>
> conda install -c scitools cartopy
>
> Seemed to go find, but now I'm getting the following error:
>
> import cartopy.crs as ccrs
> Traceback (most recent call last):
>
> File "<ipython-input-1-762e43a32730>", line 1, in <module>
> import cartopy.crs as ccrs
>
> File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/__init__.py", line 110, in <module>
> import cartopy.crs
>
> File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/crs.py", line 37, in <module>
> from cartopy._crs import CRS, Geocentric, Geodetic, Globe, PROJ4_RELEASE
> ImportError: dlopen(/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so, 2): Library not loaded: @rpath/libproj.0.dylib
> Referenced from: /Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so
> Reason: image not found
>
> Any suggestions?
>
> I also tried building from source and got the same problem.
>
> I had a prior install of GDAL Complete, if that matters.
> Thanks!
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Don M. <don...@bo...> - 2015年05月13日 21:16:16
Hi,
I only partially know what I'm talking about, but what the heck. Have you
considered pyproj (which Basemap is apparently built on)? Pyproj seems to
support any kind of projection you could even imagine, and a quick ggogle
suggests UTM would be included.
I had to learn all about this to some depth in order to teach it last
summer to a group in Vienna, and I have slides at
https://sites.google.com/a/borealscicomp.com/zamg-scientific-python-aug-sep-2014/home
and if you go to course slides, 06-PlottingMetData, starting at about Slide
60, I have some examples which lead up to Basemap. My intent was to try to
get students to understand the how and why of plotting grids in
projections, then moving on to Basemap. This way they might have a better
idea of how to deal with Basemap when things go wrong. I think I just
confused them, though :)
At any rate, I haven't tried it, but I think it would be fairly simple to
do what you want, IF you understand some of the low-level aspects. But,
maybe UTM is harder than I am imagining.
All the best,
Don Morton
---
Don Morton, Owner/Manager
Boreal Scientific Computing LLC
Fairbanks, Alaska USA
http://www.borealscicomp.com/
http://www.borealscicomp.com/Miscellaneous/MortonBio/
On Mon, May 11, 2015 at 4:45 PM, Nick Eubank <nic...@gm...> wrote:
> Hi All,
>
> Trying to move from ArcGIS into pure python GIS, but am a little surprised
> to find that UTM is not (directly) supported as a projection. Going through
> the machinations in the utmtest.py file
> <https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
> every time I want to plot a map in UTM seems a little unwieldy.
>
> Please excuse my ignorance, but is there a reason it is so hard to support
> / any plans to integrate in the future / any other easier paths to plotting
> UTMs I don't know about?
>
> Thanks,
>
> Nick
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Sebastian <se...@gm...> - 2015年05月13日 20:29:02
Is there a way to get at all the paths with matplotlib1.3.0?
I use hexbin and create the following output: "hex31mm"
In [42]: type(hex31mm)
Out[42]: matplotlib.collections.PolyCollection
I am trying to replicate my use of the method "get_paths" under "matplotlib
1.1.0" for the function below but with the newer version of "matplotlib
3.0.1"
"get_paths" under matplotlib 3.0.1, yields 802 distinct paths as below:
In [41]: len(hex31mm.get_paths())
Out[41]: 802
BUT "get_paths" under matplotlib 1.3.0, for this same object "hex31mm"
yields only one path as below:
In[1] len(hex31mm.get_paths())
Out[1]: 1
I am sure the information for all paths are part of the object even in
matplotlib 1.3.0 because the hexbin figure that plots up onto the screen is
the same under both matplotlib versions however I require the hexbin
centres, hence my insistance of use on the "get_path" method.
The function I am trying to replicate works fine in matplotlib1.1.0 but not
under matplotlib1.3.0 (is below). It is supposed to return an array (n,2),
and each element of that array is the centre (x,y) of n hexbins:
def get_centres(hexbin_output): paths=hexbin_output.get_paths() v=paths[0].
vertices[:-1] vx,vy=v.T idx=[3,0,5,2] xmin,xmax,ymin,ymax=vx[idx[0]],vx[idx
[1]],vy[idx[2]],vy[idx[3]] half_width_x=abs(xmax-xmin)/2.0 half_width_y=abs(
ymax-ymin)/2.0 centres=[] for i in xrange(len(paths)): cx = paths[i].
vertices[idx[0],0]+half_width_x cy = paths[i].vertices[idx[2],1]+half_width_y
centres.append((cx,cy)) return asarray(centres)
best regards,
- Sebastian
From: Nick E. <nic...@gm...> - 2015年05月13日 17:06:13
Not sure if this is the right forum; also posting to Stack Overflow (
http://stackoverflow.com/questions/30221047/cartopy-conda-install-error-osx-library-not-loaded-rpath-libproj-0-dylib
). Will re-post any answers from here to SO.
Did conda install:
conda install -c scitools cartopy
Seemed to go find, but now I'm getting the following error:
import cartopy.crs as ccrs
Traceback (most recent call last):
 File "<ipython-input-1-762e43a32730>", line 1, in <module>
 import cartopy.crs as ccrs
 File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/__init__.py",
line 110, in <module>
 import cartopy.crs
 File "/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/crs.py",
line 37, in <module>
 from cartopy._crs import CRS, Geocentric, Geodetic, Globe, PROJ4_RELEASE
ImportError: dlopen(/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so,
2): Library not loaded: @rpath/libproj.0.dylib
 Referenced from:
/Users/Nick/anaconda/lib/python2.7/site-packages/cartopy/_crs.so
 Reason: image not found
Any suggestions?
I also tried building from source and got the same problem.
I had a prior install of GDAL Complete, if that matters.
Thanks!
From: nxkryptor n. <nxk...@gm...> - 2015年05月13日 08:38:58
I have a pressure transducer signal along with the crank angle from an
internal combustion engine. A sample data is available here
<https://drive.google.com/file/d/0BwwhEMUIYGyTdmtlT3lwMHFmVzQ/view?usp=sharing>
.
Now, I am trying to plot the spectrogram of this pressure signal using the
code below:
import matplotlib.pyplot as pltimport numpy as np
data = np.genfromtxt('data.dat', skiprows = 1, delimiter='\t')
angle = data[:, 0]
pressure = data[:, 1]
fig = plt.figure(figsize=(5.15, 5.15))
fig.clf()
plot = plt.subplot(111)
cax = plt.specgram(pressure * 100000, NFFT = 512, Fs = 10000)
plot.grid(False, which="major")
plot.set_xlim(right = max(cax[2]))
plot.set_xlabel('Time (s)', labelpad=6)
plot.set_ylabel('Frequency (Hz)', labelpad=6)
y_min, y_max = plot.get_ylim()
plt.gca
cbar = plt.colorbar(orientation='vertical', ax = plot, fraction =
0.046, pad = 0.04) #fraction=0.0458, pad=0.04)
cbar.set_label('Power spectral density (dB)', rotation=-90)
plt.show()
Now *I want the spectrogram to be plotted with angle on the x-axis*. How
can I convert the x-axis to angles as available in the data file?
Regards,
nxkr
From: GoogleWind <goo...@16...> - 2015年05月12日 06:20:13
Hi everyone!
It is cool to use the pcolormesh in matplotlib. However, is there a way to
get the i, j indexes of the clicked cell? I have try event.mouseevent.xdata
and event.mouseevent.x. But they did not return the index I need.
Thanks in advanced for your help.
Dr. Jiacong Huang
Nanjing Institute of Geography & Limnology
Chinese Academy of Sciences
73 East Beijing Road, Nanjing 210008, China
Tel./Fax: +86-25-86882127
Homepage: http://www.escience.cn/people/elake/index.html
---Code to generate pcolormesh-------------------------------
import numpy as np
from matplotlib.pyplot import figure, show
from numpy import ma
n = 12
x = np.linspace(-1.5,1.5,n)
y = np.linspace(-1.5,1.5,n*2)
X,Y = np.meshgrid(x,y);
Qx = np.cos(Y) - np.cos(X)
Qz = np.sin(Y) + np.sin(X)
Qx = (Qx + 1.1)
Z = np.sqrt(X**2 + Y**2)/5;
Z = (Z - Z.min()) / (Z.max() - Z.min())
# The color array can include masked values:
Zm = ma.masked_where(np.fabs(Z) > 100, Z)
fig = figure()
ax = fig.add_subplot(111)
col = ax.pcolormesh(Qx[:5,:4],Qz[:5,:4],Zm[:4,:3])
show()
-------------------------
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/How-to-get-the-value-of-a-cell-in-pcolormesh-tp45499.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Nick E. <nic...@gm...> - 2015年05月12日 00:45:17
Hi All,
Trying to move from ArcGIS into pure python GIS, but am a little surprised
to find that UTM is not (directly) supported as a projection. Going through
the machinations in the utmtest.py file
<https://github.com/matplotlib/basemap/blob/ee6a2f7f95b7a5eff022fcbb2800d7c50b8c97b5/examples/utmtest.py>
every time I want to plot a map in UTM seems a little unwieldy.
Please excuse my ignorance, but is there a reason it is so hard to support
/ any plans to integrate in the future / any other easier paths to plotting
UTMs I don't know about?
Thanks,
Nick
Please include the contents of the SO question here. Those links are very
likely to rot due to over aggressive moderation on SO.
Tom
On Sun, May 10, 2015 at 1:49 PM bmer <bhm...@gm...> wrote:
> Hi all,
>
> I wrote up my question in detail on StackOverflow.
> <
> http://stackoverflow.com/questions/30154473/matplotlib-self-chachedrenderer-fails-assert-self-cachedrenderer-is-not
> >
> , but I figured it would be a good idea to "cross-post" it here, by
> providing a link.
>
> Please feel free to respond here, or there, and thanks for your help!
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/matplotlib-self-chachedRenderer-fails-assert-self-cachedRenderer-is-not-None-when-calling-draw-artis-tp45494.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
Hi all,
I wrote up my question in detail on StackOverflow.
<http://stackoverflow.com/questions/30154473/matplotlib-self-chachedrenderer-fails-assert-self-cachedrenderer-is-not> 
, but I figured it would be a good idea to "cross-post" it here, by
providing a link.
Please feel free to respond here, or there, and thanks for your help!
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/matplotlib-self-chachedRenderer-fails-assert-self-cachedRenderer-is-not-None-when-calling-draw-artis-tp45494.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: arjunascagnetto <arj...@gm...> - 2015年05月08日 16:58:41
yes you've got it. Thanks for the link. Just some days after posting this
question i succeced and i found out the set_3d_proprierties function doing
the magic. Here the clean code.
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
t=np.linspace(0,10,1000)
x=np.sin(t)
y=np.cos(t)
plt.ion()
fig = plt.figure()
ax = fig.gca(projection='3d')
line, = ax.plot(x,y,t)
for i in range(400):
	t=np.linspace(i,i+30,1000)
	ax.set_zlim(i,i+100)
	x=np.sin(t)
	y=np.cos(t)
	line.set_data(x,y)
	line.set_3d_properties(t)
	plt.draw()
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/2D-data-plotted-in-a-3D-plot-by-adding-time-flow-dimension-tp45468p45493.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: diffracteD <abh...@gm...> - 2015年05月08日 14:46:47
Hi.
 Thanks for the suggestion.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/getting-equation-from-a-surface-fit-model-tp45490p45492.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2015年05月08日 12:47:25
This question would be much more suited for the scipy mailing list.
On Fri, May 8, 2015 at 2:19 AM, diffracteD <abh...@gm...> wrote:
> Hi.
> I have a data set like following:
> x = [2.06, 2.07, 2.14, 2.09, 2.2, 2.05, 1.92, 2.06, 2.11, 2.07]
> y = [171.82, 170.8, 159.59, 164.28, 169.98, 162.23, 167.37, 173.81,166.66,
> 155.13]
> z = [-1.41, -1.26, -1.07, -1.07, -1.46, -0.95, -0.08, -1.28, -1.2, -0.86]
>
> Using matplotlib, scipy.linalg.lstsq function I've got a surface-fit model.
> But is it possible to print the "equation of the surface ??"
> Found no clue in documentation page.
>
> Please help !
> thank you.
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/getting-equation-from-a-surface-fit-model-tp45490.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

Showing results of 119

<< < 1 2 3 4 5 > >> (Page 4 of 5)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /