Re: [Matplotlib-users] axes_grid1 and colorbar ticks

2011-11-16 Thread Yoshi Rokuko
+--- Jae-Joon Lee ---+ > This seems to be a bug that need to be fixed. > Meanwhile, use "locator" parameter as below. > > cbar = grid.cbar_axes[0].colorbar(im, locator=ticks) that works, thank you! best regards, yoshi -

Re: [Matplotlib-users] Meridians not show using Mercator projection

2011-11-16 Thread Jeff Whitaker
On 11/16/11 6:16 PM, Gökhan Sever wrote: > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import numpy as np > > m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, > llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=36.2) > > m.drawcoastlines(linewidt

Re: [Matplotlib-users] Matplotlib colors

2011-11-16 Thread Tony Yu
On Wed, Nov 16, 2011 at 5:35 PM, Jonno wrote: > I want to: > 1. Have matplotlib assign the linecolor for a plot > 2. Read the linecolor with .get_color() > 3. Create another plot with the linecolor set to a lighter version of > the previous linecolor. > > Ie: > > a, = plot(x,y) > a.get_color() =

Re: [Matplotlib-users] axes_grid1 and colorbar ticks

2011-11-16 Thread Jae-Joon Lee
This seems to be a bug that need to be fixed. Meanwhile, use "locator" parameter as below. cbar = grid.cbar_axes[0].colorbar(im, locator=ticks) Regards, -JJ On Thu, Nov 17, 2011 at 5:35 AM, Yoshi Rokuko wrote: > does someone knows how to specify ticks for a colorbar > inside axesgrid? the fol

Re: [Matplotlib-users] Meridians not show using Mercator projection

2011-11-16 Thread Eric Firing
On 11/16/2011 03:16 PM, Gökhan Sever wrote: > Hi, > > Using the example code shown below I can't get meridians plotted on the > screen: > > from mpl_toolkits.basemap import Basemap > import matplotlib.pyplot as plt > import numpy as np > > m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, >

Re: [Matplotlib-users] newline characters in tick labels

2011-11-16 Thread magurling
Benjamin Root-2 wrote: > > Seems to work fine for me using GTKAgg. > I added these lines: import matplotlib matplotlib.use('GTKAgg') I still get the "\n" printed literally in the label (an actual carriage return shows up as an empty rectangle). -- View this message in context: http://old.na

[Matplotlib-users] Matplotlib colors

2011-11-16 Thread Jonno
I want to: 1. Have matplotlib assign the linecolor for a plot 2. Read the linecolor with .get_color() 3. Create another plot with the linecolor set to a lighter version of the previous linecolor. Ie: a, = plot(x,y) a.get_color() = 'b' b, = plot(x,y, color = "#xx") Since I'm only using the st

Re: [Matplotlib-users] Separate formatting for tick labels

2011-11-16 Thread Jae-Joon Lee
Try something like this. ax = subplot(111) LabelsList = ['Prospero', 'Miranda', 'Caliban', 'Ariel'] ax.set_xticks(range(len(LabelsList)))xlabels = ax.set_xticklabels( LabelsList, rotation=35, horizontalalignment='right', fontstyle='italic', fontsize='10') ticklabels = ax.get_xticklabels()ticklabel

Re: [Matplotlib-users] Build on VS2008 - warnings

2011-11-16 Thread Mads Ipsen
On 15/11/2011 14:45, Michael Droettboom wrote: I'd love to see the compiler logs and try to fix what I can. I don't have a Windows install to test, but maybe I can resolve the more obvious ones. Mike On 11/08/2011 05:49 AM, Mads Ipsen wrote: Hi, Thanks to the help from Christoph, I have be

[Matplotlib-users] Meridians not show using Mercator projection

2011-11-16 Thread Gökhan Sever
Hi, Using the example code shown below I can't get meridians plotted on the screen: from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np m = Basemap(projection='merc',lon_0=-79, lat_0=25.5, llcrnrlon=-93, urcrnrlon=-63, llcrnrlat=14, urcrnrlat=3

Re: [Matplotlib-users] MODIS data and true-color plotting

2011-11-16 Thread Gökhan Sever
On Sun, Nov 13, 2011 at 12:40 PM, Gökhan Sever wrote: > Hello groups, > > I have two questions about working with MODIS data. > > 1-) Is there any light Pythonic HDF-EOS wrapper to handle HDF-EOS data > other than PyNIO [http://www.pyngl.ucar.edu/Nio.shtml] Although, I have > managed to install th

[Matplotlib-users] axes_grid1 and colorbar ticks

2011-11-16 Thread Yoshi Rokuko
does someone knows how to specify ticks for a colorbar inside axesgrid? the following does not work as expected: from mpl_toolkits.axes_grid1 import AxesGrid ticks = [.01, .25, .5, .75, .99] grid = AxesGrid() [...] grid.cbar_axes[i].colorbar(im, ticks=ticks) i'm thankfull for any pointers, yoshi

Re: [Matplotlib-users] Web & matplotlib

2011-11-16 Thread Daryl Herzmann
Hello, For what it is worth, I do the folllowing on my matplotlib scripts run from apache on RHEL6. import os os.environ[ 'HOME' ] = '/tmp/' os.environ[ 'USER' ] = 'nobody' import matplotlib matplotlib.use( 'Agg' ) This seems to keep matplotlib from bombing out when it attempts to read dot file

Re: [Matplotlib-users] newline characters in tick labels

2011-11-16 Thread Benjamin Root
On Tue, Nov 15, 2011 at 11:55 PM, magurling wrote: > > > Benjamin Root-2 wrote: > > > > Actually, that's how I do it, if I remember correctly. What is your > > platform and mpl version? > > > > I have Ubuntu 11.04, Python 2.7.1+, mpl 1.1.0. I've seen examples in the > mpl > gallery of two-liner l