Python Forum
Only show every nth tick in chart
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Only show every nth tick in chart
#1
Hi guys,

I've plotted a chart using the following basic setup:

df.plot()
However, I only want to have a difference of 300 ticks between the entries on the x-axis, ie.

 df.plot(xticks=(0,300,600,900,...)) 
The problem is that I don't know how to set the tick interval automatically (I have to enter it manually to receive the desired result).

I'd be happy if someone could please help me.

Many thanks in advance!

Best,

Tim
Reply


Messages In This Thread
Only show every nth tick in chart - by tgottsc1 - Feb-01-2021, 01:28 PM
RE: Only show every nth tick in chart - by j.crater - Feb-01-2021, 04:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PIL Image im.show() no show! Pedroski55 2 970 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  Points not plotting with reference to x-tick labels Mark17 2 1,278 Jun-14-2022, 05:38 PM
Last Post: Mark17
  How to get evenly-spaced datetime tick labels regardless of x-values of data points? Mark17 4 5,251 Apr-04-2022, 07:10 PM
Last Post: Mark17
  Floor division problem with plotting x-axis tick labels Mark17 5 2,105 Apr-03-2022, 01:48 PM
Last Post: Mark17
  PIL Image im.show() no show! Pedroski55 6 4,933 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  Complex X Tick Interval JoeDainton123 0 1,475 Oct-05-2020, 07:27 PM
Last Post: JoeDainton123
  Setting Tick Intervals In Sub Plots JoeDainton123 1 1,805 Oct-03-2020, 11:52 PM
Last Post: scidam
  matplotlib barh y tick alignment iFunKtion 2 7,619 Oct-06-2016, 11:46 AM
Last Post: iFunKtion

Forum Jump:

User Panel Messages

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