Re: gnuplot wrapper

Posted by marek.gajdos on
URL: http://quantlib.414.s1.nabble.com/no-subject-tp3584p3586.html

Hello Luigi,

>>
>> has quantlib any bindings to gnuplot or xmgrace ?
>
>
> Marek,
>     I'm not really sure of what you mean by "bindings to gnuplot or  
> xmgrace."  Can you elaborate?

Elaborate , hmm ...

for instance:
You price an option for range of volatilities and you are interested how
does it look look. You export it into file or use
your bindings to other softs to create figure (e.g. postscript).

I throught that one could support the production of postscript figures
during run-time and create ".gpt"-gnuplot script file as well.
This can be run, if one wants, in gnuplot environment.

In simple words you'll write:
gnuWrite(x,y,...); which writes output (display or file) with default
properties.
or gnuWrite(const vector<vector<data> > &x, const vector<vector<data> >
&y,...) for several graphs or graphs in several files and so on.
Of course you can set 2D/3D plots, title labels, size of figure/graph,
style of data, style of ticks, ... or you can write own specification.

still more? Then in what sense to elaborate?

>> quantlib.
>>
>> Is there an interest in such updates?
>
> I have some wrapper classes which could be slightly updated to fit into
>
> Yes, there is. I think plotting is outside the scope of the library,
> but  your wrappers could go in an additional module. Would you be
> interested in  managing it?

Well, I've seen there is (unix) support to matlab/octave or gnumeric,
but I usually use gnuplot or xmgrace to create figures into articles.

Managing it? Why not.

Marek.

>
> Later,
>     Luigi
>
> ----------------------------------------
>
> Prediction is very difficult, especially of the future.
> -- Niels Bohr
>
>
>


--
+---------------------------------------------------+
|       Dr. Marek Gajdos                            |
|       Universität Wien                            |
|       Institut für Materialphysik                 |
|       Sensengasse 8/12                            |
|       1090 Wien                                   |
|                                                   |
|   Tel: 0043-1-4277-51403                          |
|   Skype: archimg                                  |
|                                                   |
| [hidden email]                         |
| http://cms.mpi.univie.ac.at/mgajdos               |
+---------------------------------------------------+