Recent changes to polar coordinates in gnuplot 5.1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Recent changes to polar coordinates in gnuplot 5.1

sfeam
The development version of gnuplot (5.1) now contains a set of fixes,
improvements, and additions to the support for polar coordinates.
Please give them a test and report any problems.


- The r axis now has a full set of range, label, and tic properties
        set rrange [min:max]
        set log r
        set rlabel "R-axis"
        set rtics
        set grid [no]rtics [no]mrtics


- New commands
       
  "set ttics" and "set mttics" control placement and labeling of tics
  around the perimeter of a polar plot

  "set border polar" draws a circular solid line at the perimeter


- Use of polar coordinates to position labels, arrows, objects

  You can now use the keyword "polar" when specifying coordinates for
  any position.  For example to place a labeled arrow on a polar plot:
        theta = 15; r = 1.23
        set arrow 1 from polar 0,0 to polar theta, r
        set label 1 at polar theta,r "Current place" offset 1,1


- New demos
        http://gnuplot.sourceforge.net/demo_5.1/ttics.html
        http://gnuplot.sourceforge.net/demo_5.1/solar_path.html


- Internal code reorganization

  There is now a single utility routine polar_to_xy(theta, r, &x, &y)
  to convert from polar coordinates to cartesian coordinates.
  It is used for both data input and plot layout.  If you add new
  code that supports polar coordinates please use this routine.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mouse cursor secondary axes

Plotter-2
Hi,

I wanted to display secondary axes on 'mousing' feature of SVG terminal.
Specifically I have a plot line on x1y2 which I need to see displayed on
the floating cursor readout.

It is displayed on the cursor under the graph when second y2 is used
but not on the text box which follows the cursor.

I looked at modifying the relevant gnuplot_svg.js file to modify fn
gnuplot_svg.updateCoordBox()

this includes the following for y1 coordinatte:
  label_y = plotcoord.y.toFixed(2);


I was expecting a plotcoord.y2 abut this does not seem to be defined. I
started backing and duping code but it was getting more complex than I
expected.

Am I missing something here or did x2y2 not get included when this
feature was added?

Tnanks, Peter.



       

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
gnuplot-beta mailing list
[hidden email]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
Loading...