Re: [Matplotlib-users] stem plot with horizontal offset (BaseValue)

2015-04-02 Thread ssinfod
It seems the 'bottom' parameter is the best for me. Here is the code: from pylab import * x = linspace(0.1, 2*pi, 10) markerline, stemlines, baseline = stem(x, cos(x), '-.', bottom=.5) setp(markerline, 'markerfacecolor', 'b') setp(baseline, 'color','r', 'linewidth', 2) show() Thanks for your in

[Matplotlib-users] SciPy 2015 Conference Updates - LAST CALL for talks - 4/10 extension, John Hunter Plotting Contest, registration open, keynotes announced,

2015-04-02 Thread Courtenay Godshall (Enthought)
--- **LAST CALL FOR SCIPY 2015 TALK AND POSTER SUBMISSIONS - EXTENSION TO 4/10* --- SciPy 2015 will include 3 major topic tracks and 7 mini-symposia tra

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread John Leeman
Jody and Ben, That does the business! I had hunted for awhile, but didn’t find that solution. Thank you for your help! Cheers, John Leeman > On Apr 2, 2015, at 1:02 PM, Benjamin Root wrote: > > ::Looks again:: > > Ok, I see what you did here: > > cmap = plt.get_cmap('rainbow_r’) > start=0

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Benjamin Root
::Looks again:: Ok, I see what you did here: cmap = plt.get_cmap('rainbow_r’) start=0.2 stop = 1. colors = cmap(np.linspace(start, stop, cmap.N)) # Create a new colormap from those colors color_map = LinearSegmentedColormap.from_list('Upper Half', colors) I missed this part the first time throug

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
> On 2 Apr 2015, at 9:50 AM, Benjamin Root wrote: > > No, that's not what he is asking for. John wants the norm to go from -1 to 4, > but he wants the colorbar to display only the 0 to 4 portion. Your approach > (setting vmin=0) would change the normalization and change the colors. Hmm, wel

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Benjamin Root
No, that's not what he is asking for. John wants the norm to go from -1 to 4, but he wants the colorbar to display only the 0 to 4 portion. Your approach (setting vmin=0) would change the normalization and change the colors. The axes limits do not appear to be scaled by the values. They are set to

Re: [Matplotlib-users] Color Bar Limits

2015-04-02 Thread Jody Klymak
Hi John, I got this off stack exchange, apologies to the original contributor... Cheers, Jody import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap x = np.arange(100) y = np.random.rand(100) z = 4 * np.random.rand(100) cmap = plt.get_cmap('

[Matplotlib-users] Color Bar Limits

2015-04-02 Thread John Leeman
Hi all, I’m plotting some scatter points colored by a third variable, but want to use a limited subset of a colormap. In the example below, the color axis data ranges from 0-4, but I want to not use the red portion of the bar. Doing the first part is just accomplished by setting the vmin/vmax.

Re: [Matplotlib-users] [matplotlib-devel] 1.4.3 does not build on Ubuntu 14 with python3

2015-04-02 Thread Jens Nielsen
I have opened a Pull request ( https://github.com/matplotlib/matplotlib/pull/4305) to improve the error message and avoid the comparison between a string and version number. ons. 1. apr. 2015 kl. 18.05 skrev Christian Ambros : > Hi, > > I installed the libfreetype6-dev package and than re-start