Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7952509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:52:52+00:00 2026-06-04T02:52:52+00:00

I am trying to produce a graph and I am having some issues annotating

  • 0

I am trying to produce a graph and I am having some issues annotating it.

My graph has a log scale on the x-axis, showing time. What I want to be able to do is keep the existing (but not predictable) numeric tick labels at 100 units, 1000 units, 10000 units, etc but also add custom tick labels to the x-axis that make it clear where more “human readable” time intervals occur—for instance I want to be able to label ‘one week’, ‘one month’, ‘6 months’, etc.

I can use matplotlib.pyplot.annotate() to mark the points but it doesn’t really do what I want. I don’t really want text and arrows on top of my graph, I just want to add a few extra custom tick marks. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:52:54+00:00Added an answer on June 4, 2026 at 2:52 am

    If you really want to add extra ticks, you can get the existing ones using axis.xaxis.get_majorticklocs(), add whatever you want to add, and then set the ticks using axis.xaxis.set_ticks(<your updated array>).

    An alternative would be to add vertical lines using axvline. The advantage is that you don’t have to worry about inserting your custom tick into the existing array, but you’ll have to annotate the lines manually.

    Yet another alternative would be to add a linked axis with your custom ticks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to produce a line chart using Flot, but I want the data
I am trying to produce some example graphics using ggplot2, and one of the
I'm trying to produce some graphs using GNUplot with a makefile. I would like
I'm trying to access information within a Graph object in Mathematica 8. For some
I'm trying to produce a report that has multiple grouping but does not just
I'm trying to use a Webview to add some text around a graph produced
I'm trying to add some conditional open graph tags to my app, using current_page
I'm trying to produce a timeline for my real-time embedded code. I need to
I'm trying to produce this XML statement (minus the formatting and specific values): <swatchcolor
I'm trying to produce random integers (uniformly distributed). I found this snippet on an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.