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
---
**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
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
::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
> 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
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
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('
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.
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