cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

6-Contributor

## Polar plot axial gridlines

How to have angular and radial gridlines in polar plot? Can someone please share an example of how to do it prime

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:OM_10154742)

The native Prime plots don't offer grid lines and the badly implemented third party chart component does not allow polar plots, as far as I am aware (I may be wrong because I don't use it).

So you are on your own and if you want grid lines, you have to create them yourself.

Attached is a little program which does exactly that. The grid is a second trace an can be formatted as needed.

Remark: For normal polar plots you would chose r1=0 of course.

It makes sense to adapt the numbers on the axis of the polar plot to the values chosen for the grid (or vice versa). You can change the second angle in the plot (18 in the pic) and the first, second and last value of the radii (-2. -1 and 3 in the plot).
I use the worksheet variables which are defined above the call to RGrid in the plot, but unfortunately the second value for the radii which is r.1+(r.2-r.1)/n.r is automatically changed to fix scalar whenever I change the value of r.1. I would call it a bug.
You will see the effect if you change r.1 from -2 to 0 and then back to -2.

3 REPLIES 3
24-Ruby V
(To:OM_10154742)

The native Prime plots don't offer grid lines and the badly implemented third party chart component does not allow polar plots, as far as I am aware (I may be wrong because I don't use it).

So you are on your own and if you want grid lines, you have to create them yourself.

Attached is a little program which does exactly that. The grid is a second trace an can be formatted as needed.

Remark: For normal polar plots you would chose r1=0 of course.

It makes sense to adapt the numbers on the axis of the polar plot to the values chosen for the grid (or vice versa). You can change the second angle in the plot (18 in the pic) and the first, second and last value of the radii (-2. -1 and 3 in the plot).
I use the worksheet variables which are defined above the call to RGrid in the plot, but unfortunately the second value for the radii which is r.1+(r.2-r.1)/n.r is automatically changed to fix scalar whenever I change the value of r.1. I would call it a bug.
You will see the effect if you change r.1 from -2 to 0 and then back to -2.

23-Emerald III
(To:OM_10154742)

Here's another implementation.

Which also allows to create grids such as:

Success!
Luc

24-Ruby IV
(To:OM_10154742)

It would be nice to start with the ability to draw not one, but two axes.

Announcements
Top Tags