Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Little Help With Graphs
#6
just to mention that instead of the two lines on the top

# plot x axis ticks and labels on top
plt.rcParams['xtick.bottom'] = plt.rcParams['xtick.labelbottom'] = False
plt.rcParams['xtick.top'] = plt.rcParams['xtick.labeltop'] = True
you can do

# invert the y axis
plt.gca().invert_yaxis()
plt.gca().xaxis.set_label_position('top')
plt.gca().xaxis.set_ticks_position('top')
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Little Help With Graphs - by ericvrocha - Oct-13-2019, 10:31 PM
RE: Little Help With Graphs - by Larz60+ - Oct-14-2019, 12:35 AM
RE: Little Help With Graphs - by ericvrocha - Oct-14-2019, 01:13 AM
RE: Little Help With Graphs - by buran - Oct-14-2019, 05:48 AM
RE: Little Help With Graphs - by newbieAuggie2019 - Oct-14-2019, 07:31 AM
RE: Little Help With Graphs - by buran - Oct-14-2019, 12:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Plot several graphs on the same row Menthix 1 1,059 Mar-18-2022, 05:47 PM
Last Post: deanhystad
  grouped bar graphs tobiasfw 1 1,430 Feb-22-2022, 02:25 PM
Last Post: deanhystad
  How to merge strings through graphs Den 6 3,487 Jun-29-2020, 07:07 AM
Last Post: Den
  Tranforming into .exe with Matplotlib (graphs) ericvrocha 0 2,942 Oct-14-2019, 06:54 PM
Last Post: ericvrocha
  Drawing graphs with matplotlib JRod 5 4,751 Jul-31-2017, 10:00 AM
Last Post: JRod

Forum Jump:

User Panel Messages

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