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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:04:00+00:00 2026-05-26T11:04:00+00:00

I have to plot an histogram in logarithmic scale on both axis using gnuplot.

  • 0

I have to plot an histogram in logarithmic scale on both axis using gnuplot. I need bins to be equally spaced in log10. Using a logarithmic scale on the y axis isn’t a problem. The main problem is creating the bin on the x axis. For example, using 10 bins in log10, first bins will be [1],[2],[3]….[10 – 19][20 – 29]…..[100 190] and so on. I’ve searched on the net but I couldn’t find any practical solution. If realizing it in gnuplot is too much complicated could you suggest some other software/language to do it?

As someone asked I will explain more specifically what I need to do. I have a (huge) list like this:

1   14000000
2   7000000
3   6500000
.
.
.
.
6600    1
8900    1
15000   1
19000   1

It shows, for example, that 14 milions of ip addresses have sent 1 packet, 7 milions 2 packets…. 1 ip address have sent 6600 packets, … , 1 ip address have sent 19000 packets. As you can see the values on both axes are pretty high so I cannot plot it without a logarithmic scale.

The first things I tried because I needed to do it fast was plotting this list as it is with gnuplot setting logscale on both axes using boxes. The result is understandable but not too appropriate. In fact, the boxes became more and more thin going right on the x axis because, obviously, there are more points in 10-100 than in 1-10! So it became a real mess after the second decade.

  • 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-26T11:04:01+00:00Added an answer on May 26, 2026 at 11:04 am

    Have you tried Matplotlib with Python? Matplotlib is a really nice plotting library and when used with Python’s simple syntax, you can plot things quite easily:

    import matplotlib.pyplot as plot
    
    figure = plot.figure()
    axis = figure.add_subplot(1 ,1, 1)
    axis.set_yscale('log')
    
    # Rest of plotting code
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this histogram which counts the array d in equally log-spaced bins. max_val=np.log10(max(d))
I have a normal distribution plot and a histogram plot with x axis in
I want to plot a simple histogram, using raw data. ie, I have a
I am using gnuplot to draw a histogram of a series of RAM measurements
I have a plot like this: https://i.stack.imgur.com/zdike.png I need the data coordinates of points
I have a plot which has timestamps on the x-axis and some signal data
While I try to plot histogram in R by defining a set of bins
I'm currently trying to plot a histogram with an overlay (given by my_fun) using
I'm trying to plot a 2D histogram in Python using these code from math
I've just started using LevelScheme , and have issues with getting the histogram to

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.