Menu

extracting plotting algorithm

2004-06-14
2004-06-15
  • Nobody/Anonymous

    Hi, I am very impressed with this software, but am writing my code in swt.  Could you please tell me how I can extract your plotting algorithm...so that I can write my own UI (renderer).  Something along the lines of:  passing in the bounds of the graph and a bunch of X, Y values, and getting back points that I can simply draw on the canvas.

    thanks a billion in advance

    -Lisa

     
    • Yann RICHET

      Yann RICHET - 2004-06-15

      Hi,

      If you wish to spend jsut a little time to port jmathplot on swt, you can try swingwt which may be (?) sufficient to forward jmathplot swing calls to swt...

      If you prefer to rewrite it entirely in swt (which may be a better solution I think) you need
      - to change public void plot(Graphics comp, Color c) methods in *Plot classes (extends Plot classes in plots package)
      - to change public void plot(Graphics comp) methods in plotObjects package (extends Plotable)
      - to change JPanel calls in Plot*Panel classes
      - to change PlotToolBar, DataToolBar, DatasFrame classes

      I'm very interested in your work.
      If you want, I'll be very happy to publish it in an OS compatible licence (BSD or LGPL maybe) on jmathplot website.

      Yann.

      PS : I'll be unreachable before july,12

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.