[Matplotlib-users] Color a line segment as a gradient?

2011-09-29 Thread Uri Laserson
Hi all, Does anyone have a good solution for taking a line segment and coloring it according to some gradient (where the start and end colors are the only two things specified for the line coloring)? Thanks! Uri ...

[Matplotlib-users] reducing space between xticks

2011-09-29 Thread Michal
Hello, Please find attached the a bar chart picture. How is it possible to reduce the space between the bars and xticks with the following code: # prepare the bottom array bottom = np.zeros(len(snp_types)) width = .2 # for each line in data for row in range(len(data)):

Re: [Matplotlib-users] matplotlib 3D: equivalent to Matlab patch()?

2011-09-29 Thread Holger Brandsmeier
Hi Ben, in your example > http://matplotlib.sourceforge.net/examples/mplot3d/polys3d_demo.html the essential line is: ax.add_collection3d(poly, zs=zs, zdir='y') according to everything I see this can only draw something that is made out of several axes parallel parts. I don't think how with such

[Matplotlib-users] Basemap shapelib change from 1.0.1 to 1.0.2

2011-09-29 Thread Filipe Pires Alvarenga Fernandes
Hi I noticed that Basemap 1.0.2 will replace the old pyshapelib with the pure python shapelib.py. However, that did break some of my scripts when I use custom shapefiles. Here is a picture from Basemap 1.0.1, http://imageshack.us/photo/my-images/69/basemap101.png/ and here the same script under

Re: [Matplotlib-users] matplotlib 3D: equivalent to Matlab patch()?

2011-09-29 Thread Benjamin Root
On Thu, Sep 29, 2011 at 4:09 AM, Holger Brandsmeier < holger.brandsme...@sam.math.ethz.ch> wrote: > Dear list, > > is there an equivalent function to matlabs patch() function in matplotlib? > http://dali.feld.cvut.cz/ucebna/matlab/techdoc/ref/patch.html > That means a function which does not requ

Re: [Matplotlib-users] matplotlib - fill open path inside U.S. borders + sample map

2011-09-29 Thread Filipe Pires Alvarenga Fernandes
On Wed, Sep 28, 2011 at 16:39, Jeff Whitaker wrote: > On 9/28/11 2:19 PM, Isidora wrote: >> Hi Filipe, >> >> I have just seen your answers.  I am trying to plot on a background GIF map, >> lines like the ones you can see in >> http://www.spc.noaa.gov/products/outlook/day1probotlk_2000_wind.gif.

[Matplotlib-users] matplotlib 3D: equivalent to Matlab patch()?

2011-09-29 Thread Holger Brandsmeier
Dear list, is there an equivalent function to matlabs patch() function in matplotlib? http://dali.feld.cvut.cz/ucebna/matlab/techdoc/ref/patch.html That means a function which does not require its X,Y,Z arguments to come from a prior call to meshgrid? That is at least what I believe to be the re

[Matplotlib-users] Customizing the Navigation toolbar

2011-09-29 Thread Nils Wagner
Hi all, How can I add a printer button to the Navigation toolbar http://matplotlib.sourceforge.net/users/navigation_toolbar.html ? A small example for QT would be awesome. Thanks in advance. Nils -- All the data co

Re: [Matplotlib-users] How to plot heatmap with matplotlib?

2011-09-29 Thread fdu.xia...@gmail.com
On 2011-9-26 16:02, Angus McMorland wrote: On 25 September 2011 06:59, fdu.xia...@gmail.com wrote: Dear all, Heatmap (like those on the page http://www2.warwick.ac.uk/fac/sci/moac/students/peter_cock/r/heatmap/) is a frequently used type of image in microarray data analysis. However, it seems

Re: [Matplotlib-users] Plotting in 3D. how to specify the data?

2011-09-29 Thread rajtendulkar
Dear Ben, Thank you very much your reply. I understood that there is problem the way plot_wireframe() function requires the data. However, I am trying to understand how exactly it needs the data. For example to understand I took this random input data and did the plot - (I took random points be

[Matplotlib-users] matplotlib.cm problem to distinguish data

2011-09-29 Thread Michal
Hello, I have problem to distinguish 10 colours generated with cm.hsv. import matplotlib.cm as cm for row in range(len(data)): bt = plt.bar(range(len(data[row])), data[row], width=width, color=cm.hsv(39*(row)), label=mutations_all[row], bott