[Matplotlib-users] Spines and styles

Juan Nunez-Iglesias jni.soma at gmail.com
Mon Oct 31 19:48:52 EDT 2016


Hmmm:

Bad key "axes.spine.top" on line 12 in
/Users/nuneziglesiasj/projects/elegant-scipy/style/elegant.mplstyle.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution

I'm on 1.5.3...

On Tue, Nov 1, 2016 at 10:43 AM, Thomas Caswell <tcaswell at gmail.com> wrote:

> mpl.rcParams['axies.spine.left'] = True
>
> and such.  The syntax for rcparams/style file is correct.
>
> Yes, a documentation PR would be (is always)) welcome :)
>
> Tom
>
> On Mon, Oct 31, 2016 at 7:10 PM Juan Nunez-Iglesias <jni.soma at gmail.com>
> wrote:
>
>> Thanks Tom!
>>
>> These don't appear in the example rcparams file in the documentation,
>> here:
>> http://matplotlib.org/users/customizing.html
>>
>> Would a PR be welcomed with example settings?
>>
>> To clarify, would this be a correctly-formatted setting?
>>
>> axes.spine.left = True
>> axes.spine.bottom = True
>> axes.spine.top = False
>> axes.spine.right = False
>>
>> and correspondingly in the style file:
>>
>> axes.spine.left: true
>> axes.spine.bottom: true
>> axes.spine.top: false
>> axes.spine.right: false
>>
>> ?
>>
>> Thanks,
>>
>> Juan.
>>
>> On Tue, Nov 1, 2016 at 12:53 AM, Thomas Caswell <tcaswell at gmail.com>
>> wrote:
>>
>> The 'axes.spine.SIDE' rcparams.
>>
>> This went in for 1.5.0 via https://github.com/matplotlib/matplotlib/pull/
>> 4218
>>
>> Tom
>>
>> On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <jni.soma at gmail.com>
>> wrote:
>>
>> Hi all,
>>
>> Is there a way to remove the top and right axis spines in a Matplotlib
>> Style file?
>>
>> Thanks,
>>
>> Juan.
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users at python.org
>> https://mail.python.org/mailman/listinfo/matplotlib-users
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20161101/106ffd12/attachment-0001.html>


More information about the Matplotlib-users mailing list