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

  • Home
  • SEARCH
  • 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 9214573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:59:55+00:00 2026-06-18T01:59:55+00:00

How to mark 90 percentile in gnu plot. sample needed plot [][] fle.txt using

  • 0

How to mark 90 percentile in gnu plot. sample needed

plot [][] "fle.txt" using 1:2 with lines

This is how i plot the graph i want to mark the 90% in the graph
this is my data set

time(seconds)  frequency  cumulativeFrequency
10             2          2
11             6          8
12             8          16
13             10         26
14             7          33
15             5          38
16             5          43
17             4          47
18             2          49
  • 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-18T01:59:56+00:00Added an answer on June 18, 2026 at 1:59 am

    I can’t see any way to do this in gnuplot by itself, but it’s not hard to do using python —

    # percent90.py
    import sys
    def to_num(iterable):
        for line in iterable:
            columns = line.split()  # split into columns
            if not columns:  # empty line
                continue
            try:
                yield float(columns[1])  # This is a good number -- Yield it and keep going
            except ValueError:  # Not a number on the line
                pass            # just keep going -- do nothing
            except IndexError:
                print line
    
    with open(sys.argv[1]) as fin:
         data = sorted(to_num(fin))
    
    top_10 = data[int(len(data)*0.9):]  #top 10 percent of the data
    print(top_10[0])
    

    which you can call something like:

    python percent90.py path/to/datafile
    

    This will tell you where to place your mark. As for marking it, I would probably do something like this in gnuplot:

    YVAL = `python percent90.py path/to/datafile`
    set arrow 1 from graph 0,first YVAL to graph 1,first YVAL ls 1 nohead front
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mark up that toggles the hover css style using this rule. When
When you mark something with the Autowire annotation, you are saying you want this
The mark in Vim takes you to your last cursor position. I want to
I want to mark all maxima along a given axis of an array (which
I like using question mark at the end of method/function names in other languages.
I use this to mark code I need to come back to: #warning Do
I want to mark up a phone number as callable link in an HTML
I have the following mark up <ul> <li>this is bullet list</li> <li>this is another
I want to mark a property in Delphi as deprecated for removal later. According
I have this html mark up: <td> <label for=fadsf> fadsf</label> </td> <td> <a class=editLink

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.