Re: [Matplotlib-users] violin plot

2014-08-27 Thread Arnaldo Russo
Hi Neal,
I don't know if you need exclusively matplotlib tools to apply your violin
plot, but seaborn package [1, 2] do this very well.
I hope you enjoy it!
Cheers,
Arnaldo.

[1]
http://web.stanford.edu/~mwaskom/software/seaborn/examples/violinplots.html
[2] https://github.com/mwaskom/seaborn


---
*Arnaldo D'Amaral Pereira Granja Russo*
Lab. de Estudos dos Oceanos e Clima
Instituto de Oceanografia - FURG




2014-08-27 12:15 GMT-03:00 Neal Becker :

> I'm pleased to see violinplot added to mpl-1.4.  One question.  I might
> like to
> annotate with some statistic.  Like boxplot can show quantiles.  I might
> like to
> show either quantiles, or some other statistic (3 sigma) on my violinplot.
> After all, violinplot is advertised as an improved boxplot, but it seems
> to be
> missing this feature.
>
> --
> -- Those who don't understand recursion are doomed to repeat it
>
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Christoph Gohlke
Thank you. Works for me as expected: `pip install matplotlib` installed 
matplotlib, pyparsing, python-dateutil, and six. Since numpy is not 
(yet) available as wheels on PyPI it needs to be installed before by 
other means or built from source by pip.

Christoph


On 8/27/2014 10:55 AM, Thomas Caswell wrote:
> Didn't know you could do that
>
> I have (I think) uploaded all of the wheels we have to pypi.  I don't
> have a windows or mac machine to test on, can anyone provide feed back
> if it worked as intended?
>
> Tom
>
> On Wed, Aug 27, 2014 at 12:20 PM, Christoph Gohlke  wrote:
>> Somewhat related to this: are the Windows and Mac wheels going to be
>> uploaded to PyPI so pip doesn't try to install/build from the source
>> distribution by default?
>>
>> Christoph
>>
>> On 8/27/2014 5:33 AM, Thomas Caswell wrote:
>>> Is the hash it reports reproducible?  My first guess at what is going
>>> on here is that the hash is doing it's job correctly and reporting
>>> that your file became corupted  during download.  Try again at it
>>> should work.
>>>
>>> Tom
>>>
>>> On Wed, Aug 27, 2014 at 5:55 AM, Werner  wrote:
 Just FYI,

 I tried to install with pip but got the following error.

 C:\Python34\Scripts>pip install -U matplotlib
 Downloading/unpacking matplotlib
  Hash of the package
 https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745f
 eac1a30b210940c (from https://pypi.python.org/simple/matplotlib/)
 (b3547692387bce383d7a001a8e03ce87) doesn't match the e
 xpected hash 1daf7f2123d94745feac1a30b210940c!
 Cleaning up...

 Werner

 P.S.
 I installed using the .exe installer without problems.

 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>>
>>
>> --
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Thomas Caswell
Didn't know you could do that

I have (I think) uploaded all of the wheels we have to pypi.  I don't
have a windows or mac machine to test on, can anyone provide feed back
if it worked as intended?

Tom

On Wed, Aug 27, 2014 at 12:20 PM, Christoph Gohlke  wrote:
> Somewhat related to this: are the Windows and Mac wheels going to be
> uploaded to PyPI so pip doesn't try to install/build from the source
> distribution by default?
>
> Christoph
>
> On 8/27/2014 5:33 AM, Thomas Caswell wrote:
>> Is the hash it reports reproducible?  My first guess at what is going
>> on here is that the hash is doing it's job correctly and reporting
>> that your file became corupted  during download.  Try again at it
>> should work.
>>
>> Tom
>>
>> On Wed, Aug 27, 2014 at 5:55 AM, Werner  wrote:
>>> Just FYI,
>>>
>>> I tried to install with pip but got the following error.
>>>
>>> C:\Python34\Scripts>pip install -U matplotlib
>>> Downloading/unpacking matplotlib
>>> Hash of the package
>>> https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745f
>>> eac1a30b210940c (from https://pypi.python.org/simple/matplotlib/)
>>> (b3547692387bce383d7a001a8e03ce87) doesn't match the e
>>> xpected hash 1daf7f2123d94745feac1a30b210940c!
>>> Cleaning up...
>>>
>>> Werner
>>>
>>> P.S.
>>> I installed using the .exe installer without problems.
>>>
>>> --
>>> Slashdot TV.
>>> Video for Nerds.  Stuff that matters.
>>> http://tv.slashdot.org/
>>> ___
>>> Matplotlib-users mailing list
>>> Matplotlib-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-- 
Thomas Caswell
tcasw...@gmail.com

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Christoph Gohlke
Somewhat related to this: are the Windows and Mac wheels going to be 
uploaded to PyPI so pip doesn't try to install/build from the source 
distribution by default?

Christoph

On 8/27/2014 5:33 AM, Thomas Caswell wrote:
> Is the hash it reports reproducible?  My first guess at what is going
> on here is that the hash is doing it's job correctly and reporting
> that your file became corupted  during download.  Try again at it
> should work.
>
> Tom
>
> On Wed, Aug 27, 2014 at 5:55 AM, Werner  wrote:
>> Just FYI,
>>
>> I tried to install with pip but got the following error.
>>
>> C:\Python34\Scripts>pip install -U matplotlib
>> Downloading/unpacking matplotlib
>> Hash of the package
>> https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745f
>> eac1a30b210940c (from https://pypi.python.org/simple/matplotlib/)
>> (b3547692387bce383d7a001a8e03ce87) doesn't match the e
>> xpected hash 1daf7f2123d94745feac1a30b210940c!
>> Cleaning up...
>>
>> Werner
>>
>> P.S.
>> I installed using the .exe installer without problems.
>>
>> --
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] violin plot

2014-08-27 Thread Neal Becker
I'm pleased to see violinplot added to mpl-1.4.  One question.  I might like to 
annotate with some statistic.  Like boxplot can show quantiles.  I might like 
to 
show either quantiles, or some other statistic (3 sigma) on my violinplot.  
After all, violinplot is advertised as an improved boxplot, but it seems to be 
missing this feature.

-- 
-- Those who don't understand recursion are doomed to repeat it


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Basemap shiftgrid

2014-08-27 Thread mmc
Hi Thomas

I have managed to get my data to shift in line with my longitude and latitudes, 
however now I cannot get it to read out more than one plot.
I am running this is a loop as I want to get 34 plots (of 34 separate years of 
the same variable) however once it runs through the loop once and I get a plot, 
it stops and I get an error saying

"lon0 outside of range of lonsin"

Am I able to do this in a loop or are there other things which maybe causing 
this?

From: Thomas Caswell [via matplotlib] 
[mailto:ml-node+s1069221n43859...@n5.nabble.com]
Sent: 27 August 2014 13:37
To: McCrystall, Michelle R.
Subject: Re: Basemap shiftgrid

Is this related to https://github.com/matplotlib/basemap/issues/163 ?

On Wed, Aug 27, 2014 at 5:41 AM, ChaoYue <[hidden 
email]> wrote:

> Hi Michelle,
>
> I might not fully understand your problem, could you have a look at this
> thread and see if it helps?
>
> http://matplotlib.1069221.n5.nabble.com/Fwd-Strange-behaviour-on-plotting-data-on-Ronbinson-projection-using-Basemap-td43222.html#a43233
>
> Cheers,
>
> Chao
>
>
> On Wed, Aug 27, 2014 at 9:58 AM, mmc [via matplotlib] <[hidden email]>
> wrote:
>>
>> Hi All,
>>
>> I am having problems plotting data in Basemap. I have tried some of the
>> different projections such as Robinson and Equidistant Cylindrical, however
>> kept running into the error
>>
>> WARNING: x coordinate not monotonically increasing - contour plot
>> may not be what you expect.  If it looks odd, your can either
>> adjust the map projection region to be consistent with your data, or
>> (if your data is on a global lat/lon grid) use the shiftgrid
>> function to adjust the data to be consistent with the map projection
>> region (see examples/contour_demo.py).
>>
>>
>> Having read some other forums, I see that it is due to the fact that the
>> longitude is based on 0-360 rather that -180 to 180. I have been trying to
>> rectify this with shiftgrid.
>>
>> I have used shiftgrid and have moved my longitudes to -180 to 180 however
>> I keep running up with the error:
>>
>>
>> ValueError: lon0 outside of range of lonsin
>>
>>
>> I also manage to get one plot out, which has the right projection I want
>> (I am looking over the Atlantic) however the data isnt shifting in line with
>> the longitudes. Would anyone know why this is the case?
>>
>> I have am using shiftgrid as below and the Basemap projection of
>> Equidistant cylindrical (I have also tried Robinson however end up with
>> similar result of data not moving in line with the longitude)
>>
>> MSLP = aso_mslp.data
>> MSLP_background = np.mean(MSLP, axis = 0)
>>
>> # shifting grid to run from -180 to 180 rather than 0-360
>> MSLP_background,lon = shiftgrid(180., MSLP_background, lon,
>> start=False)
>>
>> #setting the map in order to plot the data
>> map = Basemap(projection ='cyl', llcrnrlat=-90, urcrnrlat=90,
>> llcrnrlon=-180, urcrnrlon=180, resolution='c')
>>
>> Thanks
>> Michelle
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851.html
>> To start a new topic under matplotlib - users, email [hidden email]
>> To unsubscribe from matplotlib, click here.
>> NAML
>
>
>
>
> --
> please visit:
> http://www.globalcarbonatlas.org/
> ***
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> 
>
> 
> View this message in context: Re: Basemap shiftgrid
>
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>



--
Thomas Caswell
[hidden email]

--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


If you reply to this email, your message will be added to the discussion below:
http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851p43859.html
To unsubscribe from Basemap shiftgrid, click 
here.
NAML

Re: [Matplotlib-users] Basemap shiftgrid

2014-08-27 Thread Thomas Caswell
Is this related to https://github.com/matplotlib/basemap/issues/163 ?

On Wed, Aug 27, 2014 at 5:41 AM, ChaoYue  wrote:
> Hi Michelle,
>
> I might not fully understand your problem, could you have a look at this
> thread and see if it helps?
>
> http://matplotlib.1069221.n5.nabble.com/Fwd-Strange-behaviour-on-plotting-data-on-Ronbinson-projection-using-Basemap-td43222.html#a43233
>
> Cheers,
>
> Chao
>
>
> On Wed, Aug 27, 2014 at 9:58 AM, mmc [via matplotlib] <[hidden email]>
> wrote:
>>
>> Hi All,
>>
>> I am having problems plotting data in Basemap. I have tried some of the
>> different projections such as Robinson and Equidistant Cylindrical, however
>> kept running into the error
>>
>> WARNING: x coordinate not monotonically increasing - contour plot
>> may not be what you expect.  If it looks odd, your can either
>> adjust the map projection region to be consistent with your data, or
>> (if your data is on a global lat/lon grid) use the shiftgrid
>> function to adjust the data to be consistent with the map projection
>> region (see examples/contour_demo.py).
>>
>>
>> Having read some other forums, I see that it is due to the fact that the
>> longitude is based on 0-360 rather that -180 to 180. I have been trying to
>> rectify this with shiftgrid.
>>
>> I have used shiftgrid and have moved my longitudes to -180 to 180 however
>> I keep running up with the error:
>>
>>
>> ValueError: lon0 outside of range of lonsin
>>
>>
>> I also manage to get one plot out, which has the right projection I want
>> (I am looking over the Atlantic) however the data isnt shifting in line with
>> the longitudes. Would anyone know why this is the case?
>>
>> I have am using shiftgrid as below and the Basemap projection of
>> Equidistant cylindrical (I have also tried Robinson however end up with
>> similar result of data not moving in line with the longitude)
>>
>> MSLP = aso_mslp.data
>> MSLP_background = np.mean(MSLP, axis = 0)
>>
>> # shifting grid to run from -180 to 180 rather than 0-360
>> MSLP_background,lon = shiftgrid(180., MSLP_background, lon,
>> start=False)
>>
>> #setting the map in order to plot the data
>> map = Basemap(projection ='cyl', llcrnrlat=-90, urcrnrlat=90,
>> llcrnrlon=-180, urcrnrlon=180, resolution='c')
>>
>> Thanks
>> Michelle
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851.html
>> To start a new topic under matplotlib - users, email [hidden email]
>> To unsubscribe from matplotlib, click here.
>> NAML
>
>
>
>
> --
> please visit:
> http://www.globalcarbonatlas.org/
> ***
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> 
>
> 
> View this message in context: Re: Basemap shiftgrid
>
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>



-- 
Thomas Caswell
tcasw...@gmail.com

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Thomas Caswell
Is the hash it reports reproducible?  My first guess at what is going
on here is that the hash is doing it's job correctly and reporting
that your file became corupted  during download.  Try again at it
should work.

Tom

On Wed, Aug 27, 2014 at 5:55 AM, Werner  wrote:
> Just FYI,
>
> I tried to install with pip but got the following error.
>
> C:\Python34\Scripts>pip install -U matplotlib
> Downloading/unpacking matplotlib
>Hash of the package
> https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745f
> eac1a30b210940c (from https://pypi.python.org/simple/matplotlib/)
> (b3547692387bce383d7a001a8e03ce87) doesn't match the e
> xpected hash 1daf7f2123d94745feac1a30b210940c!
> Cleaning up...
>
> Werner
>
> P.S.
> I installed using the .exe installer without problems.
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-- 
Thomas Caswell
tcasw...@gmail.com

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mpl-1.4 openblas

2014-08-27 Thread Thomas Caswell
Neal,

This is not coming out of the matplotlib build scripts directly as we
do not use openblas.

I don't know enough of the numpy dependencies to be sure, but suspect
that what is happening is as part of building mpl you are also
(re)building numpy which is the source of that error.  If that is the
case, this question is better directed to the numpy lists.

Tom

On Wed, Aug 27, 2014 at 7:43 AM, Neal Becker  wrote:
> Using pip (so default build),
> while building mpl-1.4 on fedora-20 linux, I noticed:
>
> openblas_info:
>   libraries  not found in ['/usr/local/lib64', '/usr/local/lib',
> '/usr/lib64', '/usr/lib', '/usr/lib/']
>   NOT AVAILABLE
>
> openblas is installed.  Should I be concerned?
>
> --
> -- Those who don't understand recursion are doomed to repeat it
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-- 
Thomas Caswell
tcasw...@gmail.com

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] mpl-1.4 openblas

2014-08-27 Thread Neal Becker
Using pip (so default build),
while building mpl-1.4 on fedora-20 linux, I noticed:

openblas_info:
  libraries  not found in ['/usr/local/lib64', '/usr/local/lib', 
'/usr/lib64', '/usr/lib', '/usr/lib/']
  NOT AVAILABLE

openblas is installed.  Should I be concerned?

-- 
-- Those who don't understand recursion are doomed to repeat it


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2014-08-27 Thread mmc
Hi Jeff, 

I have a similar problem as Anton where I am trying to shiftgrid and get the
same error of

 "lon0 outside of range of lonsin"

when the second plot is trying to run through. 

Also the data does not follow with the longitude, in other words the map is
in the right projection (over the Atlantic) however the data associated does
not move as longitude has been shifted. Is there a simple way to rectify
this?

Thanks
Michelle





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/shiftgrid-cyclic-point-not-included-error-tp24866p43855.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] 1.4 install on Windows 8.1 with pip gives bad hash

2014-08-27 Thread Werner
Just FYI,

I tried to install with pip but got the following error.

C:\Python34\Scripts>pip install -U matplotlib
Downloading/unpacking matplotlib
   Hash of the package 
https://pypi.python.org/packages/source/m/matplotlib/matplotlib-1.4.0.tar.gz#md5=1daf7f2123d94745f
eac1a30b210940c (from https://pypi.python.org/simple/matplotlib/) 
(b3547692387bce383d7a001a8e03ce87) doesn't match the e
xpected hash 1daf7f2123d94745feac1a30b210940c!
Cleaning up...

Werner

P.S.
I installed using the .exe installer without problems.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Basemap shiftgrid

2014-08-27 Thread ChaoYue
Hi Michelle,

I might not fully understand your problem, could you have a look at this
thread and see if it helps?

http://matplotlib.1069221.n5.nabble.com/Fwd-Strange-behaviour-on-plotting-data-on-Ronbinson-projection-using-Basemap-td43222.html#a43233

Cheers,

Chao


On Wed, Aug 27, 2014 at 9:58 AM, mmc [via matplotlib] <
ml-node+s1069221n43851...@n5.nabble.com> wrote:

> Hi All,
>
> I am having problems plotting data in Basemap. I have tried some of the
> different projections such as Robinson and Equidistant Cylindrical, however
> kept running into the error
>
> WARNING: x coordinate not monotonically increasing - contour plot
> may not be what you expect.  If it looks odd, your can either
> adjust the map projection region to be consistent with your data, or
> (if your data is on a global lat/lon grid) use the shiftgrid
> function to adjust the data to be consistent with the map projection
> region (see examples/contour_demo.py).
>
>
> Having read some other forums, I see that it is due to the fact that the
> longitude is based on 0-360 rather that -180 to 180. I have been trying to
> rectify this with shiftgrid.
>
> I have used shiftgrid and have moved my longitudes to -180 to 180 however
> I keep running up with the error:
>
>
> ValueError: lon0 outside of range of lonsin
>
>
> I also manage to get one plot out, which has the right projection I want
> (I am looking over the Atlantic) however the data isnt shifting in line
> with the longitudes. Would anyone know why this is the case?
>
> I have am using shiftgrid as below and the Basemap projection of
> Equidistant cylindrical (I have also tried Robinson however end up with
> similar result of data not moving in line with the longitude)
>
> MSLP = aso_mslp.data
> MSLP_background = np.mean(MSLP, axis = 0)
>
> # shifting grid to run from -180 to 180 rather than 0-360
> MSLP_background,lon = shiftgrid(180., MSLP_background, lon,
> start=False)
>
> #setting the map in order to plot the data
> map = Basemap(projection ='cyl', llcrnrlat=-90, urcrnrlat=90,
> llcrnrlon=-180, urcrnrlon=180, resolution='c')
>
> Thanks
> Michelle
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
> http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851.html
>  To start a new topic under matplotlib - users, email
> ml-node+s1069221n...@n5.nabble.com
> To unsubscribe from matplotlib, click here
> 
> .
> NAML
> 
>



-- 
please visit:
http://www.globalcarbonatlas.org/
***
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851p43853.html
Sent from the matplotlib - users mailing list archive at Nabble.com.--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] z as colour on Basemap "plot" line

2014-08-27 Thread smeyer
I solved the problem by converting the z-value list to a np.array

/Sten



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/z-as-colour-on-Basemap-plot-line-tp43827p43852.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Basemap shiftgrid

2014-08-27 Thread mmc
Hi All, 

I am having problems plotting data in Basemap. I have tried some of the
different projections such as Robinson and Equidistant Cylindrical, however
kept running into the error

WARNING: x coordinate not monotonically increasing - contour plot
may not be what you expect.  If it looks odd, your can either
adjust the map projection region to be consistent with your data, or
(if your data is on a global lat/lon grid) use the shiftgrid
function to adjust the data to be consistent with the map projection
region (see examples/contour_demo.py).


Having read some other forums, I see that it is due to the fact that the
longitude is based on 0-360 rather that -180 to 180. I have been trying to
rectify this with shiftgrid. 

I have used shiftgrid and have moved my longitudes to -180 to 180 however I
keep running up with the error:


ValueError: lon0 outside of range of lonsin


I also manage to get one plot out, which has the right projection I want (I
am looking over the Atlantic) however the data isnt shifting in line with
the longitudes. Would anyone know why this is the case?

I have am using shiftgrid as below and the Basemap projection of Equidistant
cylindrical (I have also tried Robinson however end up with similar result
of data not moving in line with the longitude)

MSLP = aso_mslp.data
MSLP_background = np.mean(MSLP, axis = 0)

# shifting grid to run from -180 to 180 rather than 0-360
MSLP_background,lon = shiftgrid(180., MSLP_background, lon, start=False)

#setting the map in order to plot the data
map = Basemap(projection ='cyl', llcrnrlat=-90, urcrnrlat=90,
llcrnrlon=-180, urcrnrlon=180, resolution='c')

Thanks
Michelle



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Basemap-shiftgrid-tp43851.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users