[Matplotlib-users] Wrong projection?

2014-10-20 Thread Bill Wang
Hi all! I've tried to plot some (sea ice thickness, snow freeboard etc.) netcdf-data on Antarctic waters but there seems to be something funny here since the plot is kind of cut in half or something. from Scientific.IO.NetCDF import NetCDFFile # Also numpy as np, Basemap etc, matplotlib as plt.

Re: [Matplotlib-users] Wrong projection?

2014-10-20 Thread Gaute Hope
Hi Bill, I've created a class for using the IBCAO with Basemap in the _Arctic_ that might be useful for you, it is located here: http://scipy-central.org/item/75/0/ibcao-international-bathymetric-chart-of-the-arctic-ocean-class-for-python-and-scipy ( https://github.com/gauteh/ibcao_py )

Re: [Matplotlib-users] unable to run simpletest.py

2014-10-20 Thread Tommy Carstensen
Here is a more detailed crash report in addition to the one from the command line: Application Specific Information: Assertion failed: (0), function query, file AbstractSTRtree.cpp, line 285. Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib

[Matplotlib-users] adding legends

2014-10-20 Thread Tommy Carstensen
Does anyone know, how they were able to add the legend titles damped and oscillatory to this plot: http://matplotlib.org/examples/pylab_examples/legend_demo.html Can anyone point me to a good tutorial on matplotlib legends? This one is somewhat limited:

[Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Tommy Carstensen
How does one avoid duplicate legends? www.tommycarstensen.com/python2_matplotlib_basemap_merc_bluemarble_hresolution.jpg Can I make the legend size smaller than the marker size? -- Comprehensive Server Monitoring with

Re: [Matplotlib-users] adding legends

2014-10-20 Thread Marcel Milcent
Indeed, the legends showing in that figure should be 'Model length', 'Data length' and 'Total message length', which were the labels given to each plot command. Maybe there was a mismatch between code and plot there. 2014-10-20 11:59 GMT-02:00 Tommy Carstensen tommy.carsten...@gmail.com: Does

Re: [Matplotlib-users] adding legends

2014-10-20 Thread Fabrice Silva
Le lundi 20 octobre 2014 à 06:59 -0700, Tommy Carstensen a écrit : Does anyone know, how they were able to add the legend titles damped and oscillatory to this plot: http://matplotlib.org/examples/pylab_examples/legend_demo.html Hi, it seems to me that you are looking to some deprecated

Re: [Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Hearne, Mike
For your first question: Use the legend numpoints keyword. I think if you set it to 1, it should solve that problem. For your second question, I'm not sure, but I'll bet if you poke around in the Legend object returned by the function, you'll find something. On Mon, Oct 20, 2014 at 8:04 AM,

Re: [Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Benjamin Root
Legends entries are blindly constructed. Each plotting call that has a legend keyword argument will produce a legend entry if you are automatically building the legend. You can pass a label value of __nolabel__ to prevent an entry if you know you are about to do something that would duplicate the