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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:46:42+00:00 2026-05-24T00:46:42+00:00

I want a radial(polar) plot using gnuplot (i.e in circular co-ordinate system(r,theta). Here I

  • 0

I want a radial(polar) plot using gnuplot (i.e in circular co-ordinate system(r,theta).

Here I have used the values:

Theta Max-strain
0     3400
60    5300
120   4700
180   3800
240   4100
300   3100
360   3400

How to get such a plot using gnu-plot?

  • 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-24T00:46:44+00:00Added an answer on May 24, 2026 at 12:46 am

    I tried to recreate the plot of your question and this is what I came up with:

    unset border
    set polar
    set angles degrees #set gnuplot on degrees instead of radians
    
    set style line 10 lt 1 lc 0 lw 0.3 #redefine a new line style for the grid
    
    set grid polar 60 #set the grid to be displayed every 60 degrees
    set grid ls 10
    
    set xrange [-6000:6000] #make gnuplot to go until 6000
    set yrange [-6000:6000]
    
    set xtics axis #disply the xtics on the axis instead of on the border
    set ytics axis
    
    set xtics scale 0 #"remove" the tics so that only the y tics are displayed
    set xtics ("" 1000, "" 2000, "" 3000, "" 4000, "" 5000, "" 6000) #set the xtics only go from 0 to 6000 with increment of1000 but do not display anything. This has to be done otherwise the grid will not be displayed correctly.
    set ytics 0, 1000, 6000 #make the ytics go from the center (0) to 6000 with incrment of 1000
    
    set size square 
    
    set key lmargin
    
    set_label(x, text) = sprintf("set label '%s' at (6500*cos(%f)), (6500*sin(%f))     center", text, x, x) #this places a label on the outside
    
    #here all labels are created
    eval set_label(0, "0")
    eval set_label(60, "60")
    eval set_label(120, "120")
    eval set_label(180, "180")
    eval set_label(240, "240")
    eval set_label(300, "300")
    
    
    set style line 11 lt 1 lw 2 pt 2 ps 2 #set the line style for the plot
    
    #and finally the plot
    plot "-" u 1:2 t "Max strain" w lp ls 11
    0 3400
    60 5300
    120 4700
    180 3800
    240 4100
    300 3100
    360 3400
    e
    

    Plot of the script above

    As you can see, the major difference is that the angle 0 is not on top but on the right (which is mathematically correct). You can change this however by modifying the using deceleration in the plot and the set_label function.

    As you can see in the script not everything is really crisp and shiny. If someone finds improvements please let me know!

    One last bit of “advice”: It is not always reasonable to try to reproduce a plot from some tool with gnuplot. Often the strength of gnuplot is to plot data in the most simple way to be easily reproducible. Maybe you can kick some lines out of that script above and still be happy with it.

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

Sidebar

Related Questions

I want to create a Java application bundle for Mac without using Mac. According
I want to setup a cron job to rsync a remote system to a
I want to log onto Stack Overflow using OpenID, but I thought I'd set
I was testing glsl and shader wasn't doing what I want. I have this
Want to know what the stackoverflow community feels about the various free and non-free
Want my FireFox at work to be in sync with my FireFox at my
I want to loop over the contents of a text file and do a
I want to assign the decimal variable "trans" to the double variable "this.Opacity". decimal
I want to create a client side mail creator web page. I know the
I want to reference a COM DLL in a .NET project, but I also

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.