Re: [Matplotlib-users] List of markers

2014-11-14 Thread zhangtao
In your case don't use colorbar() function, You can add a customized colorbar. See these examples: http://matplotlib.org/examples/api/colorbar_only.html -- View this message in context: http://matplotlib.1069221.n5.nabble.com/List-of-m

Re: [Matplotlib-users] Problem with ticklabel

2014-11-14 Thread zhangtao
I think that "1e4" is a offset text, and not a part of ax2's yticklabels, so any color or font settings for yticklabels will not affect it. It's seems the offset text only uses matplotlib's default rcParams to draw, so my solution is to change rcParams. Try add these 4 lines before your plot cod

Re: [Matplotlib-users] Easiest way to create a chloropleth in Python

2014-11-14 Thread Benjamin Root
Sorry for the delay. Here is an example I came across today using geopandas and pysal: http://nbviewer.ipython.org/github/geopandas/geopandas/blob/master/examples/choropleths.ipynb Cheers! Ben Root On Fri, Oct 24, 2014 at 3:59 PM, Christian Alis wrote: > Hi Ben, > > Yes, indeed. I'm referring t

Re: [Matplotlib-users] Matplotlib hangs due to numpy.ma.power()

2014-11-14 Thread Thomas Caswell
Can you provide a reproducible example? There is not really enough here to sort out what is going wrong or why it is going wrong. Ideally the example should be self contained (code + synthetic data). What versions of mpl + numpy + python are you using everywhere? Tom On Fri Nov 14 2014 at 7:25

Re: [Matplotlib-users] Picking on a scatter plot. Copy of positions needed?

2014-11-14 Thread V. Armando Solé
On 14/11/2014 16:02, Thomas Caswell wrote: > The positions are stored in offsets, the array property is the color > mapping. > Thanks a lot! Armando -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers

Re: [Matplotlib-users] Picking on a scatter plot. Copy of positions needed?

2014-11-14 Thread V. Armando Solé
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coor

Re: [Matplotlib-users] Picking on a scatter plot. Copy of positions needed?

2014-11-14 Thread V. Armando Solé
On 14/11/2014 15:49, Benjamin Root wrote: > It is possible. Those examples were merely showing different ways to > do similar things (and there are more ways to do it, btw). The > techniques can be used for different artist types. I guess the > important question is, do you need the *exact* coor

Re: [Matplotlib-users] Picking on a scatter plot. Copy of positions needed?

2014-11-14 Thread Benjamin Root
It is possible. Those examples were merely showing different ways to do similar things (and there are more ways to do it, btw). The techniques can be used for different artist types. I guess the important question is, do you need the *exact* coordinates of the artist, or just the coordinates where

[Matplotlib-users] Picking on a scatter plot. Copy of positions needed?

2014-11-14 Thread V. Armando Sole
Hello, Looking at the picking demo: http://matplotlib.org/examples/event_handling/pick_event_demo.html I see that one can recover the coordinates from the picked artist in the case of images, and lines. However, in case 3 of the example (scatter plot) the x and y data have to be supplied in or

[Matplotlib-users] Problem with ticklabel

2014-11-14 Thread fcb525
Most of my issues have been answered through previous posts, but this is such a specific problem, that I can't find the answer anywhere. I'm new to matplotlib and therefore learning some of the basic things. My code is: import matplotlib import matplotlib.pyplot as plt import matplotlib.pylab as p

[Matplotlib-users] Matplotlib hangs due to numpy.ma.power()

2014-11-14 Thread Torsten Bronger
Hallöchen! I've had a very odd observation today: I call matplotlib 1.3.1 from Django 1.7 code running on Apache under Ubuntu 14.04. The relevant code is: figure = Figure(frameon=False, figsize=(4, 3)) canvas = FigureCanvasAgg(figure) axes = figure.add_subplot(111) ... canvas