Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
axes.spines
#1
axes[0,0].spines['bottom'].set_color('black')
axes[0,1].spines['bottom'].set_color('black')
axes[1,0].spines['bottom'].set_color('black')
axes[1,1].spines['bottom'].set_color('black')

axes[0,0].spines['left'].set_color('black')
axes[0,1].spines['left'].set_color('black')
axes[1,0].spines['left'].set_color('black')
axes[1,1].spines['left'].set_color('black')

Hi, appreciate the group's assistance - i'm trying more efficiently code the above into 1 or 2 lines

Instead of calling a single axes such as [0,0] - - is it possible to select multiple at once?

Instead of a line of code for .spines['left'] and .spines['bottom'] -- is it possible to do at once?

So ideal code would be something like axes[all].spines['left' and 'bottom'].set_color('black')

Thank you very much!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple user defined plots with secondary axes using for loop maltp 1 1,443 Apr-30-2022, 10:19 AM
Last Post: maltp
  plotting 3d axes estera 0 1,791 Nov-26-2021, 11:36 AM
Last Post: estera
  How to set which sides are axes in 3d plot? pyhouton 0 1,395 Dec-07-2019, 07:10 PM
Last Post: pyhouton
  plotting 2 different set of data in a single plot with shared axes. upasana 4 3,658 Mar-21-2018, 01:43 PM
Last Post: upasana
  plot points in loglog axes Tibas 0 2,241 Mar-06-2018, 06:56 PM
Last Post: Tibas
  Importing - KeyError: u'axes.prop_cycle is not a valid rc parameter. GMPE 1 5,992 Feb-12-2018, 12:28 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020