Spines and styles

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
jni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Spines and styles

jni
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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spines and styles

tcaswell
The 'axes.spine.SIDE' rcparams.


Tom

On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <[hidden email]> 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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
jni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spines and styles

jni
Thanks Tom!

These don't appear in the example rcparams file in the documentation, here:

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 <[hidden email]> wrote:
The 'axes.spine.SIDE' rcparams.


Tom

On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <[hidden email]> 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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spines and styles

tcaswell
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 <[hidden email]> wrote:
Thanks Tom!

These don't appear in the example rcparams file in the documentation, here:

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 <[hidden email]> wrote:
The 'axes.spine.SIDE' rcparams.


Tom

On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <[hidden email]> 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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users


_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
jni
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spines and styles

jni
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
or from the matplotlib source distribution

I'm on 1.5.3...

On Tue, Nov 1, 2016 at 10:43 AM, Thomas Caswell <[hidden email]> 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 <[hidden email]> wrote:
Thanks Tom!

These don't appear in the example rcparams file in the documentation, here:

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 <[hidden email]> wrote:
The 'axes.spine.SIDE' rcparams.


Tom

On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <[hidden email]> 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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Spines and styles

tcaswell
Sorry, it is spines (plural) 

On Mon, Oct 31, 2016 at 7:49 PM Juan Nunez-Iglesias <[hidden email]> wrote:
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
or from the matplotlib source distribution

I'm on 1.5.3...

On Tue, Nov 1, 2016 at 10:43 AM, Thomas Caswell <[hidden email]> 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 <[hidden email]> wrote:
Thanks Tom!

These don't appear in the example rcparams file in the documentation, here:

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 <[hidden email]> wrote:
The 'axes.spine.SIDE' rcparams.


Tom

On Mon, Oct 31, 2016 at 6:33 AM Juan Nunez-Iglesias <[hidden email]> 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
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users



_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Loading...