Jerzy Karczmarczuk-2 wrote:
>
> What do you really want?
>
I just wanted the axis line to end at the last y tick
> I would suggest using an explicit axis, e.g.
>
> plt.axis([0,0.10,-25,80])
>
> (or between -30 and 100, or 'tight', etc.)
>
I've never used an explicit axis. What will axis
Tony Yu-3 wrote:
>
> `yticks()` just sets the ticks, which shows up correctly in both plots. It
> sounds like what you want to specify is the axis limit. You can add the
> following (e.g. after the call to `yticks`):
>
>plt.ylim(ymin=-30)
>
Thanks Tony for clearing up my misunderstanding
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
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 labels, but none that are rotated. Perhaps I didn't
look closely enough
Can a tick label be on two separate lines? For example:
LabelsList = ['Howard', 'Vince', 'Bob', 'Naboo the Enigma']
xlabels = ax.set_xticklabels( LabelsList, rotation=35,
horizontalalignment='right', fontstyle='italic', fontsize='10')
How can I put "Naboo the Enigma" on two lines? I've tried to
Is there a way to format tick labels separately? For example:
LabelsList = ['Prospero', 'Miranda', 'Caliban', 'Ariel']
xlabels = ax.set_xticklabels( LabelsList, rotation=35,
horizontalalignment='right', fontstyle='italic', fontsize='10')
will give me italicized x tick labels; however, what if I
I updated matplotlib to 1.1.0; both methods work now. I would say "Thanks
Paul and Francesco" but I just read the mailing list etiquette.
--
View this message in context:
http://old.nabble.com/legend-border%2C-frameon-keyword-tp32807933p32828355.html
Sent from the matplotlib - users mailing list
gt; On Fri, Nov 11, 2011 at 8:53 AM, Paul Ivanov wrote:
>> On Tue, Nov 8, 2011 at 4:49 PM, magurling wrote:
>>>
>>> I want a legend without the black border. I've tried a few things that
>>> have
>>> been suggested on this forum and elsewhere t
Thanks Francesco, but I've also tried to use the "draw_frame(False)" method
with no luck.
montefra wrote:
>
> Hi,
>
> I usually do like this
>
> l = ax.legend( (rects1[0], rects2[0]), ('set1', 'set2'))
> l.draw_frame(False)
>
>
I want a legend without the black border. I've tried a few things that have
been suggested on this forum and elsewhere to no avail. According to what
I've seen, it should be as simple as:
import matplotlib.pyplot as plt
import numpy as np
N = 5
Means1 = (20, 35, 30, 35, 27)
Means2 = (25, 32, 34,
10 matches
Mail list logo