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 6887067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:50:20+00:00 2026-05-27T05:50:20+00:00

I came across some unexpected inconsistencies when further developing the solution to an earlier

  • 0

I came across some unexpected inconsistencies when further developing the solution to an earlier question:

How can I show % values on the y axis of a plot?

This seemed different enough to merit a new post.

Starting with the same data:

data = {{{2010, 8, 3}, 
0.}, {{2010, 8, 31}, -0.052208}, {{2010, 9, 30}, 
0.008221}, {{2010, 10, 29}, 0.133203}, {{2010, 11, 30}, 
0.044557}, {{2010, 12, 31}, 0.164891}, {{2011, 1, 31}, 
0.055141}, {{2011, 2, 28}, 0.114801}, {{2011, 3, 31}, 
0.170501}, {{2011, 4, 29}, 0.347566}, {{2011, 5, 31}, 
0.461358}, {{2011, 6, 30}, 0.244649}, {{2011, 7, 29}, 
0.41939}, {{2011, 8, 31}, 0.589874}, {{2011, 9, 30}, 
0.444151}, {{2011, 10, 31}, 0.549095}, {{2011, 11, 30}, 
0.539669}};

I defined a way to make FrameTicks with percentages built on the contributions and insights offered in the last post:

myFrameTicks = 
Table[
  {k/10., ToString@(10 k) <> "%"}, 
  {
    k, 
    IntegerPart[Floor[Min@data[[All, 2]], .1]*10], 
    IntegerPart[Ceiling[Max@data[[All, 2]], .1]*10]
   }
 ];

Now look at two plots of the same data using the same FrameTicks:

DateListPlot[data, FrameTicks -> {{myFrameTicks, None}, {Automatic, None}}]

Mathematica graphics

ListPlot[data[[All, 2]], FrameTicks -> {{myFrameTicks, None}, {Automatic, None}}]

Mathematica graphics

So, why don’t both of these plots show the frame ticks as percentage (e.g., 60%) like the first one does?

I might have missed something obvious (not the first time). Also, this approach doesn’t appear to work when used with ListLinePlot or BarChart, both of which seem to accept a FrameTicks attribute.

  • 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-05-27T05:50:20+00:00Added an answer on May 27, 2026 at 5:50 am

    DateListPlot defaults to Frame->True. ListPlot defaults to Frame->False. It is displaying Ticks, not FrameTicks.

    Try setting the Frame to true:

    DateListPlot[data, 
      FrameTicks -> {{myFrameTicks, None}, {Automatic, None}}]
    
    ListPlot[data[[All, 2]], 
      Frame -> True, 
      FrameTicks -> {{myFrameTicks, None}, {Automatic, None}}]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across some unexpected behavior when passing a large millisecond value to setTimeout()
I was refactoring some code earlier and I came across an implementation of an
I recently came across some functions where you can pass multiple enums like this:
While developing my application i came across some comparison stuff here was it: string
While formulating an answer to another SO question , I came across some strange
When writing some rspec today, I came across some unexpected behavior with comparing Date
I came across some code today where a string is compared to two values
I came across some Enumerators that inherited uint . I couldn't figure out why
I came across some javascript at work today that used jQuery to fetch two
I came across some legacy code that contains a function like this: LPCTSTR returnString()

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.