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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:40:19+00:00 2026-05-28T05:40:19+00:00

I have a set of CSV data where it is a range of data

  • 0

I have a set of CSV data where it is a range of data from 2000 – 2000000 bytes, say, and I want to plot every single one of these points. I however don’t want it to say 2e6 for my data but rather just 2, so I can set my x-axis title to “megabytes”.

That is, how do automatically override the visible text on the x axis bar (via some sort of formula relating to the underlying data?) using gnuplot?

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

    You can arithmetically manipulate data in the using directive. If you have a data file Data.csv:

    3.7567e+06
    7.7169e+06
    9.8955e+06
    6.0108e+06
    2.1852e+06
    

    you can plot this with this script:

    set boxwidth 0.6 relative
    set style fill solid
    set ylabel "Size in MB"
    plot "Data.csv" u 0:($1/1e6) with boxes
    

    Note the ($1/1e6) using directive. The $1 references the first column of the data file. The brackets are mandatory!

    You end up with a plot like this:

    enter image description here

    If you have data ranging though many orders of magnitude, maybe using a logarithmic scaling would be interesting to think about.

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

Sidebar

Related Questions

Using jmeter, I have a variable passed from CSV file (using CSV Data Set
I have a mysql database set as utf-8, and csv data set as utf-8,
I have a set of .csv files that I want to process. It would
I have some CSV data files that I want to import into mySQL. I
I have some data in CSV format that I want to pull into an
I have a web form used for importing data from a CSV file. It
I have a csv data set containing a date field which my may or
I have this code which extracts data from a csv file and then reformats
I have a set of 10 CSV files, which normally have a an entry
I have a CSV file with set of records on it. While I use

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.