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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:57:43+00:00 2026-06-01T18:57:43+00:00

How can I set the point size in gnuplot in the units of the

  • 0

How can I set the point size in gnuplot in the units of the plot coordinates?

In other words, the points should get smaller if I increase xrange.

It looks like this is all terminal dependent. Is there a workaround?

  • 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-01T18:57:45+00:00Added an answer on June 1, 2026 at 6:57 pm

    Here’s a small example using inline data …

    plot '-' u 1:2:1 ps variable
      1 2
      2 3
      3 4
      4 5
      5 6
      e
    

    Note that while it is possible to change the pointsize using a column from your datafile, I am not aware of any way to specify how large each point should be since the pointsize (and even the pointtype) is a terminal dependent quantity. The only workaround that I can come up with is to scale the points by a terminal dependent value.

    default_value=1.0
    func(x)=1.0*x  #Change this to change the functional dependence of the pointsize on x.
    scale_point(x)=(GPVAL_TERM=="postscript") ? 1.0*func(x) :\
                   (GPVAL_TERM=="png") ?        2.0*(x) :\
                   default_value
    plot "mydata.dat" u 1:2:(scale_point($1)) w pt ps variable
    

    It’s ugly, but it should get the job done — You could also write a similar function which returns the pointtype to achieve some sort of terminal independence with that as well…

    EDIT

    Note, my points increase in size linearly as x gets bigger, but you can substitute any function you want to make the points get smaller as you see fit.
    What I am saying is that I don’t believe that option exists since as you state “all this is terminal dependent”. I tried to provide a ugly hack to allow you to modify this on a per-plot basis with minimal intervention — allowing for different terminals, etc.

    EDIT 2

    While responding to your comment, I remembered an odd little corner of the gnuplot documentation that may be helpful.

    set style fill transparent solid noborder  #whatever fillstyle you want...
    plot 'mydata' u 1:2:3 w circles
    

    see help circles … I’m not sure when this feature was introduced, probably with gnuplot 4.3, but if you’re using 4.2 then give it a try and let me know how it goes…

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

Sidebar

Related Questions

How can I set a break point in a javascript function and have the
Can someone point me to some tutorial on how to set up a ping
I have a DataList control that displays a set of elements. Can anyone point
How can I set points on a 24h period spreaded by the Gaussian distributions?
i am able to get my bitmap set of points (as an array) using
How can I point at the object of a ExtJS Grid and manually set
I was trying to set point sprites in OpenGL to change size with distance
How can I calculate the size of a circle from a set of arcs?
So, I have a set of position vectors (points, essentially). How can I find
I know that you can set the print margin in Eclipse, but if I

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.